Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Profile Link Fix for Kunena 4/5
Pages: [1]   Go Down
  Print  
Author Topic: Profile Link Fix for Kunena 4/5  (Read 922 times)
0 Members and 1 Guest are viewing this topic.
Hayward
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« on: March 09, 2017, 03:42:16 »

Hi all,

In Kunena 4 and 5, the way profile links are built has changed from previous versions, so the JComments Avatar plugin needs to be updated.


In /plugins/jcomments/avatar/avatar.php

Find:
Code:
$comment->profileLink = $uid ? KunenaRoute::_('index.php?option=com_kunena&func=profile&userid=' . $uid) : '';

This needs to be changed to the format for SEO:

/forum/profile/UID-Username

eg. /forum/profile/123-Hayward

I used a pretty hacky hardcoded way for now but if someone could change it to dynamically get the Kunena 4/5 profile path it would be much appreciated.
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Profile Link Fix for Kunena 4/5
 
Jump to: