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 online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

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