Back to vBulletin 4.x Template Modifications

Default avatar
Mod Version: 1.00, by Allan

vB Version: 4.0.0 Rating: (4 votes - 5.00 average) Installs: 24
Released: 14 Dec 2009 Last Update: Never Downloads: 0
Not Supported Template Edits  

This mod add a default avatar, simply ^^
  • In "postbit" template, find:
PHP Code:
<vb:if condition="$show['avatar']">
                    <
class="postuseravatarlink" href="{vb:link member, {vb:raw post}}">
                        <
vb:if condition="$post.avatarurl">
                            <
img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                        <
vb:else />
                            <
img src="{vb:stylevar imgdir_misc}/unknown.gif" />
                        </
vb:if>
                    </
a>
                </
vb:if> 
  • Replace to:
PHP Code:
<vb:if condition="$show['avatar']">
                    <
class="postuseravatarlink" href="{vb:link member, {vb:raw post}}">
                        <
vb:if condition="$post.avatarurl">
                            <
img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                        
                        </
vb:if>
                    </
a>
<
vb:else />
                            <
img class="postuseravatarlink" align="left" src="{vb:stylevar imgdir_misc}/avatar.png" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                </
vb:if> 
PS: The IB code is no good by default, default avatar is expected but does not

PS2: image (avatar.png) is already included

Download

No files for download.

Similar Mods

Forum Display Enhancements If User Hasn't Got An Avatar Show Default Avatar With Link To Set One Modification Graveyard
[Release -Gamma / RC1 / RC2]Default Avatar for users with no avatar :) vBulletin 3.0 Template Modifications
[Release -Gamma / RC1 / RC2]Default Avatar for users with no avatar :) vBulletin 3.0 Template Modifications

vblts.ru supports vBulletin®, 2022-2024