UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

Output User Avatar ...

Mist · ·
12:37 AM Saturday, 01 February 2014
None
I am struggling to construct the statement that will output the user avatar in "large square size"

I followed the documentation and so far i constructed the statement this way

 <?php
require_once( JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php' );
$my = Foundry::user();
?>


and then outputed the image src like this

<img src="/<?php echo $my->getAvatar();?>"  alt="" data-src="<?php echo $my->getAvatar();?>" data-src-retina="<?php echo $my->getAvatar();?>" width="90" height="90" />


In documentation is mentioned that there is some $avatarSize arguments available, like: SOCIAL_AVATAR_SMALL, SOCIAL_AVATAR_MEDIUM, SOCIAL_AVATAR_SQUARE, SOCIAL_AVATAR_LARGE

Can you pls help on how to apply this argument ? I would like to apply the "SOCIAL_AVATAR_SQUARE" argument to the above code.

Thanks SO MUCH !
The replies under this section are restricted to logged in users or users with an active subscription with us