View Full Version : Forum Display Enhancements - Prison Bars on Banned Users Avatars
rungok
05-02-2008, 10:00 PM
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!
Release history:
v1.0: 20 August 2007
v1.1: 09 December 2007
- Added edit for public profile (MEMBERINFO)
v1.2: 03 May 2008
- Modified edit for new v3.7 memberinfo
Rickeo
05-03-2008, 03:56 PM
I like it very cool indeedy :)
Rick
rooban12
05-03-2008, 04:16 PM
thanks a lot
I was looking for this hack
Forum Lover
05-03-2008, 04:22 PM
I have a user group called watchlisted... can i make it for them too? Nice idea.
M-Tuning
05-03-2008, 05:26 PM
haha cool!
birdie
05-03-2008, 09:39 PM
What happens if there was no avator? Can the bars still appear?
rungok
05-04-2008, 09:08 AM
I have a user group called watchlisted... can i make it for them too? Nice idea.
Sure. You can specify whatever groupid you want them to appear on.
rungok
05-04-2008, 09:11 AM
What happens if there was no avator? Can the bars still appear?
No. You can't place bars on nothing. :) Give them an avatar, and they will be "barred".
DiverTree
05-13-2008, 12:56 PM
shows up good on the profile and in posts. thanks.
if its not to much to ask, how bout the members list?
also, can i specify two different user groups if i seperate them with a comma or comma/space?
GremlinPrince
05-18-2008, 12:02 PM
love the idea not what i will necesserily use though maybe in the future, good to know its available :)
Chris583
05-27-2008, 05:21 PM
I am having trouble getting this to work. When a person is banned their avatar dissapears, is there a usergroup setting to change that?
rungok
05-29-2008, 08:57 PM
shows up good on the profile and in posts. thanks.
if its not to much to ask, how bout the members list?
also, can i specify two different user groups if i seperate them with a comma or comma/space?
A user that is temporary banned like this does not show any avatar i members list in the first place, so that won't be possible without modifying code (and that we should not do).
I don't know if "or" works in the templates. It could look like this:
<if condition="is_member_of($post, 73) or condition="is_member_of($post, 74)">
<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>
or something like this:
<if condition="is_member_of($post, 73)">
<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>
<or condition="is_member_of($post, 73)">
<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>
You can test these two approaches and report back to us if it works.
rungok
05-29-2008, 09:01 PM
I am having trouble getting this to work. When a person is banned their avatar dissapears, is there a usergroup setting to change that?
No it does not disappear. Are you sure you haven't actuallly deleted the user? Try a temporary ban of a couple of days and check if that works better.
Mrdby
05-31-2008, 02:52 PM
3.7.1?
hsv z clubbie
06-02-2008, 09:19 AM
I am having trouble getting this to work. When a person is banned their avatar dissapears, is there a usergroup setting to change that?
I had the same prob till I ticked Keep Custom Avatar, then the avatar came back with the bars (3.7.1)
rungok
06-09-2008, 12:57 PM
3.7.1?
I don't think you should be scared about trying this in such a minor release. It's just a couple of template edits. Easy to revert.
Mrdby
06-09-2008, 10:13 PM
Great!
Captain Tycoon
06-17-2008, 09:22 AM
Marked and Installed! Pretty neat!
Chris583
06-24-2008, 01:45 PM
Can this work with multiple groups? I have a temporary banned grouped which is hooked to the infraction system like the banned group... i did group number ex. 7,13 or 7, 13 the bars show up in temp banned profile but not in postbit. Any ideas?
FazerPaint
06-30-2008, 07:34 PM
I like this a lot..............clicked Installed
tazzarkin
06-30-2008, 08:56 PM
lol. This is freakin' awesome!!
War_force
06-30-2008, 10:24 PM
3.7.1 good works
thanks a lot bro
unicorn2433
08-07-2008, 08:17 PM
where do you tick keep cutom avatar
backdoor
09-13-2008, 02:04 AM
Perfect mod ;)
I nominate is
Brandon Sheley
09-13-2008, 03:02 AM
very cool, may have to add this on one of our forums :)
Digz29
09-14-2008, 06:39 PM
where do you tick keep cutom avatar
In the Banned usergroup options, allow them to upload custom avatars. That resolved it for me.
AuroraStorm
09-17-2008, 01:57 AM
Sweet...works like a charm...
*installed*
charles abiola
09-17-2008, 04:03 AM
Thanks my guy. *installed*
john102774
10-22-2008, 03:43 AM
Good stuff. Thanks!
segwayon
10-22-2008, 03:56 PM
Cool mod. :up: :up: :up:
This other mod is a natural companion to yours, as it places a default avatar whenever a user hasn't specified one:
"Forum default avatar for members"
https://vborg.vbsupport.ru/showthread.php?p=1650530
Also, I've linked your mod to theirs as well.
albibak
11-09-2008, 11:50 AM
Thanks for this modification.
You can find a french translation here (http://forum.vbulletin-fr.org/modifications.php?do=showmod&modid=605) or in attachement
dmknights
11-11-2008, 02:33 AM
*Installed*
DartSwinger
11-11-2008, 02:59 PM
Really cool but it's background repeating an 80x80 avatar, any idea why? Thanks.
Barteh
01-08-2009, 10:07 PM
The postbit part of this mod doesn't seem to be working in the latest vB release (memberinfo_block_ministats is though). There's another IF statement around that bit of code in 3.8.0, but I don't see why the modification wouldn't simply work. Could of course be that I'm in need of sleep though :)
Vaupell
01-30-2009, 07:18 AM
Really cool but it's background repeating an 80x80 avatar, any idea why? Thanks.
cause the bars is max sized, and the profile picture is smaller than the bars
so two options scale profile pic or scare bars.
or set the css for the profilepic to no-repeat.
but i have no idea where that is done :D
Bravo
04-09-2009, 06:48 AM
Yeah unless you let banned users keep the avatar, the avatar will disappear for both temporary and permanent bans
imported_silkroad
04-10-2009, 05:17 AM
Really cool but it's background repeating an 80x80 avatar, any idea why? Thanks.
We had the exact same problem, so we removed this modification.
The issues is the mismatch between the size of the avatar as a background image and the size of the cell bars as a foreground image.
This mod does not had enough value to be worth the trouble, IMHO.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.