The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Show avatar on header
Hello,
I'm trying to do this: So when the user is logged in, he will see his avatar, when the user is not logged, it will show a default one. This is the code I made: Code:
<if condition="is_member_of($bbuserinfo, 1, 3)"> <if condition="$show['avatar']"> <a href="member.php?$session[sessionurl]u=$post[userid]"> <img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" width="48" height="48" border="0" /></a> </if> </else> <img src="defaultavatar.gif" alt="Avatar" width="48" height="48" border="0" /> </if> Thank you for your help in advance. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|