Keyword

mod_k2_users v2.8.0 ignoring custom avatar width - bug/fix

  • sentron
  • sentron's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 months ago #164756 by sentron
There's a bug in mod_k2_users v2.8.0 which causes it to ignore any custom avatar width set in the module configuration. The bug is helper.php line 180.

Erroneous code:
                $userObject->avatar = K2HelperUtilities::getAvatar($userObject->UID, $userObject->email, $params->get('userImageWidth'));

Corrected code:
                $userObject->avatar = K2HelperUtilities::getAvatar($userObject->UID, $userObject->email, $params->get('userAvatarWidth'));

Please verify and include the fix in the next release. Thanks.

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

  • sentron
  • sentron's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 months ago #164757 by sentron
Even if I make this fix, this has no effect on local avatars. It only seems to apply to gravatars, as seen in K2HelperUtilities.getAvatar function in /com_k2/helpers/utilities.php

Can you please update the K2 component so that the avatar size is used for local avatars as well.

Thanks!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 6 months ago #164779 by Krikor Boghossian
Replied by Krikor Boghossian on topic mod_k2_users v2.8.0 ignoring custom avatar width - bug/fix
Hello,

Is there a link to your site available?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum