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 09-30-07
Prison Bars on Banned Users Avatars

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:

<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

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


<if condition="is_member_of($post, [COLOR="DarkOrchid"]73[/COLOR])">
<
table $post[avwidth$post[avheightborder="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[avheightalt="<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[avheightalt="<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.

Attached Files Click the thanks button to view this attachment.
asimarda260's Avatar
asimarda260 : Newbie +
asimarda260 is on a distinguished road
offline Joined: Jan 2008 Posts: 16 Thanked: 1
  #2  
Unread 01-23-08
thanks it is nice
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
users, avatars, banned, bars, prison
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