By Philippe on Thursday, 10 August 2017
Posted in General
Likes 0
Views 1K
Votes 0
Hello,

I use the Echo template.
I would like that in the listing of Groups and Pages, the Card image is the Avatar image (instead of the Cover image).
How to do ?
Thank you

(See in attachment)
Hey Philippe,

Yep, you could use the code below to get the medium sized avatars (64x64)

[gist]
<?php echo $group->getAvatar(SOCIAL_AVATAR_MEDIUM);?>
[/gist]
·
Thursday, 10 August 2017 22:42
·
0 Likes
·
0 Votes
·
0 Comments
·
In Echo template, it suppose to only show Group cover on the listing page by default.

And I am not encourage to switch to display group avatar on the listing card image is because group avatar image size is not big enough, it will not show the proper image size in the listing page, you can refer on my attached screenshot below.
·
Thursday, 10 August 2017 20:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh ok.
Does EasySocial generate an avatar image with an intermediate size, which could be used for the listing card?
·
Thursday, 10 August 2017 21:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok thank you
·
Saturday, 12 August 2017 00:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

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.
·
Saturday, 12 August 2017 11:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post