Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

avatar is broken, after facebook login

10 years 9 months ago
  • Anita's Avatar
    Topic Author
  • Anita
  • Offline
  • Fresh Boarder
  • Posts: 57
  • Thank you received: 12
Licenses:
JomSocial Active Socialize Active

After facebook login with facebook avatar import, the avatar is broken. This is definitely since the last update.
I see a similar topic, but no solution until now.
Thank you.

10 years 9 months ago
Licenses:

Hi Anita,

I already fixed for you. this fixes will be included in Jomsocial next release
/components/com_community/libraries/facebook.com line 119
From

$extension = JString::substr($avatarUrl, JString::strrpos($avatarUrl, '.'));
To
$uri_parts = explode('?',$avatarUrl, 2);
$extension = JString::substr($uri_parts[0], JString::strrpos($uri_parts[0], '.'));

in some reason, avatar imported from facebook containing query string in image file. e.g: filename.jpg?oh=3213213213123
that code will truncate query string from imported image file.

for missing/broken avatar user must re-import again. but in next import will not got broken avatar.

Regards,
Albert

The following user(s) said Thank You: RCTECH, Anita
10 years 9 months ago
  • Anita's Avatar
    Topic Author
  • Anita
  • Offline
  • Fresh Boarder
  • Posts: 57
  • Thank you received: 12
Licenses:
JomSocial Active Socialize Active

Hi Albert :) Fantastic news. It works. Thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW