Topic-icon Community builder image

Active Subscriptions:

None
10 years 7 months ago #36848 by diehag
Hi, is there a way to put a defoult image when the user is login?
I use community builder integration, and now when a user without an avatar is login only show the greeting and not the defoult image. Is possible put an image for all the users that not have image?
Thanks.
The topic has been locked.
Support Specialist
10 years 6 months ago #36919 by alzander
Replied by alzander on topic Community builder image
I just looked at our code, and right now, we don't use a default image. I've added it as a task for the the next big SCLogin release to automatically use the default avatar. For now, if you edit the /modules/mod_sclogin/helper.php file, around line 229, you'll see:
if ($avatarURL)
   $avatarURL = JRoute::_('images/comprofiler/' . $avatarURL, false);
After that, you can set a default image with an else statement, like:
if ($avatarURL)
   $avatarURL = JRoute::_('images/comprofiler/' . $avatarURL, false);
else
   $avatarURL = 'http://yoursite.com/link-to-default.jpg';
I hope that helps,
Alex
The topic has been locked.