OK - a solution to this is a separate hack:
In
includes/functions_showthread.php:
Find:
PHP Code:
if (empty($avatarurl) OR ($bbuserinfo['userid'] > 0 AND !($bbuserinfo['showavatars'])))
{
$show['avatar'] = false;
}
else
{
$show['avatar'] = true;
}
Add below:
PHP Code:
if($avatarurl)
{
$avatarbits = getimagesize($avatarurl);
$avatarimgsrc = $avatarbits[3];
}
In
postbit /
postbit_legacy:
Find:
Code:
<img src="$avatarurl"
Add after:
Code:
<if condition="$avatarimgsrc">$avatarimgsrc </if>
HTH mate - this puts the width and height properly formatted for the <img src tag - if you want to format it using style, then you would use $avatarbits[0] and $avatarbits[1] for width and ehight respectively and then format your $avatarimgsrc statement accordingly
Code:
$avatarimgsrc = "style="width:$avatarbits[0]px;height:$avatarbits[1]px"