Facebook Twitter Pinterest Share

vBulletin 3.X Add-ons & Template Modifications All the latest vBulletin 3.X Add-ons & Template Modifications.


New Thread  Post Reply
Daz's Avatar
Daz : To right I fecking bite
Daz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond repute
offline Joined: Sep 2007 Posts: 455 Thanked: 166
  #1  
Thread Starter Unread 10-19-07
Banned User Profile Replaced by Custom Image

The premise of this mod is simple; it replaces the avatar of a banned user with a picture you want to replace it with, maybe a banned image or something that humiliates the member.

This allows you to put 'Banned' avatars to decent use (those that say banned on them in big, bold letters).

How to use:

First, find in Postbit/Legacy:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]$post[avwidth$post[avheightalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> 
Replace with:

<if condition="$show['avatar']">
<
td>
<if 
condition="is_member_of($post, 8)">
<
a href="member.php?$session[sessionurl]u=$post[userid]"><img src="images/avatars/banned.PNG" alt="Member is Eliminated" title="Member is Eliminated" /></a>
<else />
<
a href="member.php?$session[sessionurl]u=$post[userid]">
<
img src="$post[avatarurl]$post[avwidth$post[avheightalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" />
</
a>
</if></
td></if> 
Then, in Memberinfo template, find:


<if condition="$show['avatar']">
                <
td><img src="$userinfo[avatarurl]$userinfo[avatarsizealt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
            <else />
                <
td>&nbsp;</td>
            </if> 
And replace with:
<if condition="$show['avatar']">
<
td>
<if 
condition="is_member_of($post, 8)">
<
a href="member.php?$session[sessionurl]u=$vbulletin->userinfo[userid]"><img src="images/avatars/banned.PNG" alt="Member is Eliminated" title="Member is Eliminated" /></a>
<else />
<
a href="member.php?$session[sessionurl]u=$vbulletin->userinfo[userid]">
<
img src="$vbulletin->userinfo[avatarurl]" $vbulletin->userinfo[avwidth$vbulletin->userinfo[avheightalt="<phrase 1="$vbulletin->userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" />
</
a>
</if></
td></if> 
Screenshots and Banned Image I used below (or use a banned image from one of the many avatar packs that has them even though they aren't usable by default):

Common Questions

1. How do I change the image URL for the banned avatar?

You replace images/avatars/banned.PNG with whatever you want to replace it with.

2. What's with the basic default image?

I needed a default, had short time and my board has a distinct gaming theme, therefore the default is of a Glum Reaper from Super Mario RPG.

3. It don't work!

Make sure banned users can use/display avatars. Then the mod should work.


New Thread  Post Reply

Thread Tools

Bookmarks
  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
Tags
custom, image, replaced, user, profile, banned
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Powered by GYSN Underground 2021