By Fagault Eric on Monday, 31 July 2017
Posted in General
Replies 3
Likes 0
Views 170
Votes 0
Hello,
I want to display the avatar of a page.
I know the id of the page.
I looked in the social_avatars table, but I did not see the column that displays the id of the page.

Or is there a simpler solution to display the avatar of a page when we know the id of this page?
Best regards.
Eric
Hello Eric,

This would be a much simpler implementation,

[gist]
<?php
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php');

// Assuming that $id holds the value of your page
$page = ES::page($id);
?>
<img src="<?php echo $page->getAvatar();?>" />
[/gist]
·
Monday, 31 July 2017 22:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much
·
Monday, 31 July 2017 22:20
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Eric
·
Monday, 31 July 2017 22:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post