Prison Bars on Banned Users Avatars

Daz

New Member
What is it?
It displays a transparent avatar on top of your banned users avatars
simulating prison bars. The idea is from Jailmod for phpbb. Since the
actual jail functionality is pretty much covered in vBulletin, I thought
I might enhance the fun with some jailbars in vBulletin also. Enjoy!


STEP ONE:
***********************************
Look for and make a note of the number of your banned users group in Admin CP -> Usergroups -> Usergroup Manager


STEP TWO:
***********************************
Upload cell.gif to <forumroot>/images/misc


STEP THREE:
***********************************
Admin CP -> Styles & Templates -> Search in templates -> Postbit -> Edit


FIND:

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


REPLACE WITH: (make sure you change the number 73 to the id of your banned group)


PHP:
<if condition="is_member_of($post, [color=DarkOrchid]73[/color])">
<table $post[avwidth] $post[avheight] border="0" cellspacing="0" cellpadding="0" background="$post[avatarurl]">
  <tr>
    <td><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="images/misc/cell.gif" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td>
  </tr>
</table>
<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>

Do this replace in all your templates postbit and maybe also in postbit_legacy if you let your users choose between them.

BarsScreenshot.jpg
 
Back
Top