The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to make a pre-defined avatar automatically show?
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!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|