Kunena 7.0.6 & Kunena 6.4.12 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.6 [K 7.0.6] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0.

The Kunena team is also pleased to announce the twelfth version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Solved JomSocial plugin for avatars, if post user is deleted - shows currently logged in users avatar

More
10 years 9 months ago #167745 by wasimkham
There is a bug in the JomSocial plugin that uses the JS avatars for Kunena. If a creator of a post has deleted their account, the avatar displayed on that post will not be theirs (as it's deleted too) instead the avatar will be whoever's account is currently logged in and viewing. So if I'm viewing a post from a deleted user, it will show my avatar.

The problem is with plugins/kunena/community/avatar.php - _getURL()

This is my edit that fixes it and shows the default avatar is:

Code:
protected function _getURL($user, $sizex, $sizey) { $kunuser = KunenaFactory::getUser($user); // Get CUser object $user = CFactory::getUser($kunuser->userid); if ($kunuser->userid == 0) { $avatar = str_replace(JPATH_ROOT, '', COMMUNITY_PATH_ASSETS) . "default-male-avatar.png"; } else if ($sizex <= 90) { $avatar = $user->getThumbAvatar(); } else { $avatar = $user->getAvatar(); } return $avatar; }

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #167750 by 810
thnx, I have improved it, and will add it on the next version.

Please Log in or Create an account to join the conversation.

Time to create page: 0.219 seconds