thank you, i tried almost that same code, it doesnt work in the new vb it seems.
ive been using
Code:
<img src="$prepared[avatarurl]"
in 3.7 but that is for the thumb (it adds &type=thumb to the image). I wonder how to get it working normally.
EDIT: I got it working
Code:
<img src='image.php?type=avatar&u=$userinfo[userid]' $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">
$vbphrase[xs_avatar]</phrase>"
border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />
Edit #2: only displays custom avatars

to me it seems always a hassle getting the avatars to display properly in vBulletin.