The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi, I have added just one avatar which members only can use. How can I make it so unless the member ads an avatar themselves, this pre-define avatar will always display?
Thanks |
|
#2
|
||||
|
||||
|
Code:
<if condition="$show['avatar']"> <a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" class="whiteborder" /></a> <else /> <!-- Default Avatar --> <a href="member.php?$session[sessionurl]u=$post[userid]"><img src="images/styles/seogreen/misc/noavatar.gif" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" class="whiteborder" /></a> </if> |
|
#3
|
|||
|
|||
|
And add a </if> to the end
|
|
#4
|
||||
|
||||
|
|
|
#5
|
|||
|
|||
|
Wow thanks a lot guys I shall give it a try now!
|
![]() |
|
|