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: Fix: Kuena avatar plugin
Pages: [1]   Go Down
  Print  
Author Topic: Fix: Kuena avatar plugin  (Read 4015 times)
0 Members and 1 Guest are viewing this topic.
naike
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« on: February 19, 2011, 01:19:20 »

If you're having problems with displaying avatars in the comments, try this.

Open ..\plugins\jcomments\jcomments.avatar.php with any text editor.
Search for this section:
Code:
case 'kunena':
if (count($users)) {
       $db->setQuery('SELECT userid, avatar FROM #__kunena_users WHERE userid in (' . implode(',', $users)  . ')');
       $avatars = $db->loadObjectList('userid');
unset($users);
} else {

$avatars = array();
}
Under this section you will find 2 lines, simply replace them with this:
Code:
$avatarA = $mainframe->getCfg('absolute_path') . DS . 'media' . DS . 'kunena' . DS . 'avatars' . DS;
$avatarL = $mainframe->getCfg('live_site') . '/media/kunena/avatars/';

The result should look like this:
Code:
case 'kunena':
if (count($users)) {
       $db->setQuery('SELECT userid, avatar FROM #__kunena_users WHERE userid in (' . implode(',', $users)  . ')');
       $avatars = $db->loadObjectList('userid');
unset($users);
} else {

$avatars = array();
}

$avatarA = $mainframe->getCfg('absolute_path') . DS . 'media' . DS . 'kunena' . DS . 'avatars' . DS;
$avatarL = $mainframe->getCfg('live_site') . '/media/kunena/avatars/';

Note: The initial code starts on line 196.
Logged
techanto
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« Reply #1 on: April 07, 2011, 15:04:41 »

Hi,

Thanks for this solution.
I confirm, it works!
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Fix: Kuena avatar plugin
 
Jump to: