Kunena 7.0.11 & Kunena 6.4.16 – Security Updates Released and K7.1 in RC1 2

The Kunena team has announce the arrival of three simultaneous security release : K6.4.16, K7.0.11 and K7.1 RC2. Just a reminder K6.4.16 receives only securities fixes untill end of 2026, so it's advised for users to upgrade to K7.0.11. K7.0.11 is the last release of the K7.0 because it's replaced by K7.1 branch with the stable release in the corner. The translations for K7.1 on crowdin.com/project/kunena-forum-7-1 needs to be checked or improved becasue it has been generated by TM (Translation Machine).

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

More
11 years 2 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
11 years 2 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.096 seconds