Topic-icon jomsocial avatar thumb version

Active Subscriptions:

None
9 years 3 months ago #53450 by n00bster
is there a way to change the avatar source from jomsocial from the original image to the "thumb_" version what jomsocial creates.
i found some code lines in the helper.php file (around line 349), but i do not have such good php skills to change this.
the point is, that the normal used avatar icon is not always a square format (see the image below). jomsocial cropped the "thumb_" image to a real square image, i think it would be better when your cool module uses on the jomsocial avatar source the "thumb_" version instead the original image. also the image size of the smaller "thumb_" versions to use in your module is a better way in my opinion.
File Attachment:
The topic has been locked.
Support Specialist
9 years 3 months ago #53501 by mel
Replied by mel on topic jomsocial avatar thumb version
Could you try making the following code change on your site?

In /modules/mod_sclogin/helper.php around line 352, can you replace
$avatarURL = $jsUser->getAvatar();
with
$avatarURL = $jsUser->getThumbAvatar();

Let me know how this works for you and I will put a ticket in our tracker to address in the next release.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #53502 by n00bster
thank you very much Melissa!
your code change does exactly what i was looking for :)
The topic has been locked.
Support Specialist
9 years 3 months ago #53508 by mel
Replied by mel on topic jomsocial avatar thumb version
Thanks for letting me know. I'll add the issue to our tracker for the next release.
The topic has been locked.