By Elijah on Friday, 27 March 2015
Likes 0
Views 759
Votes 0
I would like to have the users easysocial picture show within a different component based on their user id. is there any code that I can use to accomplish this? or can someone help customize this?

thanks
Hi Elijah,

This code might help (it works for me!)


<?php
$usera = FD::user('2923'); //load user
?>
<div>
<a href="...your site.../community/profile/2923"><img src="<?php echo $usera->getAvatar();?>" style="border:1px solid #000000; margin: 2px;" alt="whatever" title="whatever" /></a>
</div>
·
Friday, 27 March 2015 20:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Elijah,

Unfortunately that was not possible in current system.
·
Friday, 27 March 2015 15:04
·
0 Likes
·
0 Votes
·
0 Comments
·
worked perfect! thanks.
·
Friday, 27 March 2015 20:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Great! Glad to hear it did the trick
·
Friday, 27 March 2015 20:36
·
0 Likes
·
0 Votes
·
0 Comments
·
another question about this, do you know how to pull a different size? I want to add this code to a few locations.
·
Friday, 27 March 2015 20:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Check here... http://docs.easysocial.io/developers/users/users

There's a few sizes on offer small, medium, large, square
·
Friday, 27 March 2015 20:53
·
0 Likes
·
0 Votes
·
0 Comments
·
genius! well, I guess the page helped. but thank , saved me a good chunk of time figuring that out.
·
Friday, 27 March 2015 21:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing this Andy, appreciate it very much
·
Saturday, 28 March 2015 02:10
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post