View Full Version : Giving members without an Avatar a default Avatar?
rex_b
01-15-2005, 04:06 PM
How would one do this?
TwinsX2Dad
01-15-2005, 07:23 PM
While not as simple as in IPB, a default avatar can be specified as a template condition. Instead of re-explaining it here, Jake does a nice job over at vBulletin.com (http://www.vbulletin.com/forum/showthread.php?t=106143).
rex_b
01-15-2005, 07:28 PM
I figured it out. Just add an <else /> phrase after it tries to find the avatar.
TwinsX2Dad
01-15-2005, 07:54 PM
Cool - after I replied, I looked at Jake's post and realized there was a bit of an omission. To make it look right, you'd need to find this in postbit:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
And replace it with this:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td><else /><td class="alt2"><img src="Your Avatar URL" alt="No Avatar" border="0" /></a></td></if>
Jake's additions left out the table bits.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.