MyBB Community Forums

Full Version: $avatar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
as in the "member_profile" template, there is a call on a template called "$avatar".

can someone tell me where I can find this template? I can't seem to figure it out, I assume its a <img> tag and such. I need to apply some styles on it:

style="-webkit-border-radius: 5px; border-radius: 5px;"
That variable is defined in the core.

Line 1490 of member.php
if($memprofile['avatar'])
	{
		$memprofile['avatar'] = htmlspecialchars_uni($memprofile['avatar']);
		$avatar_dimensions = explode("|", $memprofile['avatardimensions']);
		if($avatar_dimensions[0] && $avatar_dimensions[1])
		{
			$avatar_width_height = "width=\"{$avatar_dimensions[0]}\" height=\"{$avatar_dimensions[1]}\"";
		}
		$avatar = "<img src=\"{$memprofile['avatar']}\" alt=\"\" $avatar_width_height />";
	}
	else
	{
		$avatar = '';
	}
Thanks, i got it working Wink
First time messing around with php, lol. Expected more errors.
$avatar = "<img src=\"{$memprofile['avatar']}\" alt=\"\" $avatar_width_height style=\"-webkit-border-radius: 5px; border-radius: 5px;\" />";


[Image: CDrzZDn.png]
Cool