Default Avatar url
#5
Or, even simplier and properly scaled, use format_avatar() in 1.8 which was made exactly for this:
$avatar = format_avatar($referral['avatar'], $referral['avatardimensions']]); // also select avatardimensions column in your query, you can provide 3rd argument for max dimensions other than default
echo $avatar['image']; // src
echo $avatar['width_height']; // width and height attributes
Reply


Messages In This Thread
Default Avatar url - by Leefish - 2015-08-31, 09:01 AM
RE: Default Avatar url - by Devilshakerz - 2015-08-31, 09:17 AM
RE: Default Avatar url - by Leefish - 2015-08-31, 09:32 AM
RE: Default Avatar url - by Euan T - 2015-08-31, 04:10 PM
RE: Default Avatar url - by Destroy666 - 2015-09-02, 11:53 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)