By Fagault Eric on Tuesday, 31 October 2017
Posted in General
Likes 0
Views 346
Votes 0
Hello,
I use the avatar of the members in some lines of the file:

"media / com_easysocial / apps / user / friends / themes / default / streams / friends.title.php"

To display the avatar and cover of "friend" members.

$amiavatar = ES::user($results);
echo '<p><div style="position:absolute;margin-left:3%;margin-top:-22%;padding:3px;border:solid 1px #c2c2c2;z-index:10;background:#fff">
<img src="'.$amiavatar->getAvatar().'"/></div> <p><p>';

Since the avatar displays the member's initials when the member has not posted a photo, the avatar is displayed in large size.
How can I display it in the right size?

Best regards.
Eric
Hi Eric,

Perhaps you can add style for the avatar image
style="width: 64px;"
·
Tuesday, 31 October 2017 16:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Fadhli,
thank you very much.
I tried but with too much value (150px) so did not do what I wanted, actually reducing the value it seems to be good.
Best regards.
Eric
·
Tuesday, 31 October 2017 16:53
·
0 Likes
·
0 Votes
·
0 Comments
·
That's great Eric You are most welcome and glad to hear your issue has resolved.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.

Have a nice day ahead
·
Tuesday, 31 October 2017 17:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post