Back to vBulletin 3.0 Template Modifications

No Avatar Selected - Display Appropriate Image
Mod Version: 1.00, by chooah

This modification is in the archives.
vB Version: Rating: (0 vote - 0 average) Installs: 6
Released: 20 Oct 2004 Last Update: Never Downloads: 1
Not Supported  

In PostBit Templates - Postbit


Search for:

<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>

Underneath add:

<if condition="$avatarurl == null"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="INSERT URL TO NO AVATAR SELECTED IMAGE" border="0" /></a></td></if>

This will maintain the flow of your board, by displaying avatars for everybody, but for those that don't have one selected yet, they will get one such as

http://www.ru55ian.net/forum/html/avatars/noavatar.gif

This is my first (and best) bit of coding, I am an absolute NEWBIE so it'll be great if this is useful to anybody!!

Download

No files for download.

Similar Mods

Show "No Avatar" Image If No Avatar is Selected vBulletin 2.x Full Releases
Default avatar if none selected. vBulletin 2.x Template Modifications

vblts.ru supports vBulletin®, 2022-2024