View Full Version : How to make a pre-defined avatar automatically show?
se_p800
12-04-2008, 05:59 PM
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
SEOvB
12-04-2008, 06:08 PM
<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>
Edit the image path under default avatar
MrEyes
12-04-2008, 06:30 PM
Edit the image path under default avatar
And add a </if> to the end ;)
SEOvB
12-04-2008, 06:58 PM
And add a </if> to the end ;)
That too :D
Fixed
(stupid mouse)
se_p800
12-04-2008, 07:06 PM
Wow thanks a lot guys I shall give it a try now!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.