PDA

View Full Version : Forum Display Enhancements - Prison Bars on Banned Users Avatars


rungok
03 May 2008, 17:37
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
03 May 2008, 17:56
I like it very cool indeedy :)

Rick

rooban12
03 May 2008, 18:16
thanks a lot
I was looking for this hack

Forum Lover
03 May 2008, 18:22
I have a user group called watchlisted... can i make it for them too? Nice idea.

M-Tuning
03 May 2008, 19:26
haha cool!

birdie
03 May 2008, 23:39
What happens if there was no avator? Can the bars still appear?

rungok
04 May 2008, 11:08
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
04 May 2008, 11:11
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
13 May 2008, 14:56
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
18 May 2008, 14:02
love the idea not what i will necesserily use though maybe in the future, good to know its available :)

Chris583
27 May 2008, 19:21
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
29 May 2008, 22:57
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
29 May 2008, 23:01
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
31 May 2008, 16:52
3.7.1?

hsv z clubbie
02 Jun 2008, 11:19
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
09 Jun 2008, 14:57
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
10 Jun 2008, 00:13
Great!

Captain Tycoon
17 Jun 2008, 11:22
Marked and Installed! Pretty neat!

Chris583
24 Jun 2008, 15:45
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
30 Jun 2008, 21:34
I like this a lot..............clicked Installed

tazzarkin
30 Jun 2008, 22:56
lol. This is freakin' awesome!!

War_force
01 Jul 2008, 00:24
3.7.1 good works

thanks a lot bro

unicorn2433
07 Aug 2008, 22:17
where do you tick keep cutom avatar

backdoor
13 Sep 2008, 04:04
Perfect mod ;)
I nominate is

Brandon Sheley
13 Sep 2008, 05:02
very cool, may have to add this on one of our forums :)

Digz29
14 Sep 2008, 20:39
where do you tick keep cutom avatar

In the Banned usergroup options, allow them to upload custom avatars. That resolved it for me.

AuroraStorm
17 Sep 2008, 03:57
Sweet...works like a charm...

*installed*

charles abiola
17 Sep 2008, 06:03
Thanks my guy. *installed*

john102774
22 Oct 2008, 05:43
Good stuff. Thanks!

segwayon
22 Oct 2008, 17:56
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"
http://www.vbulletin.org/forum/showthread.php?p=1650530

Also, I've linked your mod to theirs as well.

albibak
09 Nov 2008, 13:50
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 Nov 2008, 04:33
*Installed*

DartSwinger
11 Nov 2008, 16:59
Really cool but it's background repeating an 80x80 avatar, any idea why? Thanks.

Barteh
09 Jan 2009, 00:07
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
30 Jan 2009, 09:18
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
09 Apr 2009, 08:48
Yeah unless you let banned users keep the avatar, the avatar will disappear for both temporary and permanent bans

imported_silkroad
10 Apr 2009, 07:17
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.