By Andy on Friday, 19 December 2014
Replies 3
Likes 0
Views 726
Votes 0
I'm trying to put some PHP in a custom module to retrieve a group avatar.

I've done it for user avatar's using the excellent developers guidance notes at http://docs.stackideas.com/developers/users/users

Is there a similar page for Groups.... or can you advise if it's the same basic approach and if so what the code is to get a group avatar if you know the group ID? Thanks!
Hello Andy,

The approach is pretty similar,


<?php
$group = FD::group($id);
?>
<img src="<?php echo $group->getAvatar();?>" />
·
Friday, 19 December 2014 23:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Great. Thanks Mark.

Seasons Wishes to you and the mighty team. Thanks for the miracles and world-class service.
·
Friday, 19 December 2014 23:57
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Saturday, 20 December 2014 00:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post