By Joe John on Sunday, 12 October 2014
Posted in Technical Issues
Replies 7
Likes 0
Views 823
Votes 0
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.
Thanks for the heads up on this Joe. We'll update this in the next release of EasyBlog
·
Sunday, 12 October 2014 22:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark
Did you forget this fix? Kunena Profile Link is still broken in Version 3.9.22295.
Thanks

Patrick
·
Monday, 16 March 2015 19:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, yeah you are right I might have missed this somehow. Can you download the attached file and try this instead?
·
Tuesday, 17 March 2015 00:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark
I replaced the file in the folder
/administrator/components/com_easyblog/tables

i also cleared the cache from easyblog, joomla, and the browser. but it doesn't work.
·
Tuesday, 17 March 2015 04:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Patrick,

I am sorry for the delay of this reply.

Can you provide us with Joomla backend and FTP access so we can help you to apply the fix directly?
·
Tuesday, 17 March 2015 10:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ezrul

Yes of course. I'll set up the required logins an send you the details ASAP.

Thanks and best regards,
Patrick
·
Thursday, 19 March 2015 00:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Patrick Weiss,

Okay, keep us updated then.
·
Thursday, 19 March 2015 00:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post