View Full Version : Simple memberinfo avatar problem
NeuroLancer
02-16-2008, 02:06 PM
Hi, im currently in the process of customising the memberinfo template in 3.7.
One thing I need to know is what's usuall the best way to display a users avatar on their memberinfo profile page? how was it done in 3.6? That tiny little thumb has upset some of my users who pride themselves on their avatars.
Thanks!
Edit: yes i know its unsupported... its just a general question that can apply to any vBulletin version.
Lynne
02-16-2008, 02:20 PM
This is the code for 3.6.8:
<if condition="$show['avatar']">
<td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
<else />
<td> </td>
</if>
Searching for avatar in the memberinfo templates comes up with several hits, so I'm not sure which one to compare it to in there.
NeuroLancer
02-16-2008, 02:33 PM
thank you, i tried almost that same code, it doesnt work in the new vb it seems.
ive been using <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
<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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.