The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Banned User Profile Replaced by Custom Image Details »» | |||||||||||||||||||||||||||
Banned User Profile Replaced by Custom Image
Developer Last Online: Apr 2010
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). Updates: Version 1.0: Released Version 1.1: Replaced MEMBERINFO template change so the 'No Avatar' mods work with this... Version 1.2 Released which allows this to work on the Legacy Postbit. How to use: First, find in Postbit: Code:
<if condition="$show['avatar']"><td class="alt2"><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" /></a></td></if> Code:
<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[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /> </a> </if></td></if> Code:
<if condition="$show['avatar']"> <td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td> <else /> <td> </td> </if> Code:
<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="$userinfo[avatarurl]" userinfo[avwidth] userinfo[avheight] alt="<phrase 1="$vbulletin->userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" /> </a> </if></td></if> To add to Legacy Template, search for avatar and change that part of the code to: Code:
<if condition="$show['avatar']"> <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 /> <div class="smallfont"> <br /><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" /></a> </div> </if> </if> 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. 4. Can I submit a banned image? Yes Thanks to: whitemike for saying why the original code did not work in the profile. Myself for obvious reason. Anyone reading/using/installing this for their thanks. Show Your Support
|
Comments |
#2
|
||||
|
||||
Oh, and to add:
Quote:
|
#3
|
||||
|
||||
thanks nice work
|
#4
|
||||
|
||||
No problem. Oh, and new version released; optional if you upgrade...
|
#5
|
||||
|
||||
reserved .....
|
#6
|
|||
|
|||
The first line of code to remove is found in the postbit template, but not in the postbit_legacy.
|
#7
|
||||
|
||||
Ah. I'll fix that later; should take just a few minutes.
|
#8
|
||||
|
||||
Fixed. Try the new piece of code in the Legacy Template and tell me if it works.
|
#9
|
|||
|
|||
Quote:
Thank You. |
#10
|
||||
|
||||
That is correct. I had once disabled avatars for banned users, and then this ceased working. You are right; anyone using this must enable avatars for banned users. I think replacing the profile picture as well would be nice...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|