UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Kunena Routing (profile)

Joe John · ·
5:29 PM Sunday, 12 October 2014
None
You may already know this because its pretty significant for anyone using Kunena.

Anyway I found out that the profile links were broken when using kunena for the profile. From what I can see its because easyblog assumes it is an old out of date version of Kunena.

Kunena came out with version 3 and by the looks of it it switched from using a syntax that varied from "Joomla standards" to one that followed it more closely. On line 429 of administrator/components/com_easyblog/tables/profile.php it has the following line.

$ret	= JRoute::_('index.php?option=com_kunena&func=fbprofile&userid=' . $this->id, false);


However this could not be more wrong with version three it is actually:

$ret	= JRoute::_('index.php?option=com_kunena&view=user&userid=' . $this->id, false);


But just changing this did not fix it in the end, so for it to work i had to do the following:


$app = JFactory::getApplication();
$menu = $app->getMenu();
$menuItem = $menu->getItems( 'link', 'index.php?option=com_kunena&view=user', true );
$ret = JRoute::_('index.php?Itemid=' . $menuItem->id . '&userid=' . $this->id, false);


The reason I feel the first attempt did not work is the fault of JRoute, it does not check your menu items before creating the route (correctly). It could have something to do with plugin ordering but even then, it should not be a problem so I might make a note of that specific issue in the Joomla bug tracker.

Anyway because this issue completely destroyed blog - kunena integration I was forced to do a core hack to fix it. Not knowing how easyblog is built also led me to most likely doing it in a way that is bad for performance.

So in the next release i hope you fix it, if its fixed it should not have a negative impact for me.
The replies under this section are restricted to logged in users or users with an active subscription with us