PDA

View Full Version : Miscellaneous Hacks - Banned User Profile Replaced by Custom Image


cheat-master30
10-17-2007, 10:00 PM
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:

<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>Replace with:

<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>Then, in Memberinfo template, find:

<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>&nbsp;</td>
</if>And replace with:

<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>Screenshots and Banned Image I used below (or use a banned image from one of the many avatar packs that has them even though they aren't usable by default):

To add to Legacy Template, search for avatar and change that part of the code to:

<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">
&nbsp;<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>

Common Questions

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 (https://vborg.vbsupport.ru/member.php?u=54491) for saying why the original code did not work in the profile.

Myself for obvious reason.

Anyone reading/using/installing this for their thanks.

cheat-master30
10-18-2007, 09:34 PM
Oh, and to add:

https://vborg.vbsupport.ru/external/2012/01/11.gifTranslations

You can translate for use on other official sites. I can redistribute it and you can also translate for unofficial sites in other languages, or use as long as minor credit is given to those who helped in this.

ninjamaster
10-19-2007, 07:33 AM
thanks nice work

cheat-master30
10-19-2007, 08:10 PM
No problem. Oh, and new version released; optional if you upgrade...

bada_bing
10-20-2007, 02:24 AM
reserved .....

McMendo
10-20-2007, 11:37 AM
The first line of code to remove is found in the postbit template, but not in the postbit_legacy.

cheat-master30
10-20-2007, 12:45 PM
Ah. I'll fix that later; should take just a few minutes.

cheat-master30
10-22-2007, 03:09 PM
The first line of code to remove is found in the postbit template, but not in the postbit_legacy.

Fixed. Try the new piece of code in the Legacy Template and tell me if it works.

McMendo
10-25-2007, 12:36 PM
Fixed. Try the new piece of code in the Legacy Template and tell me if it works.It works, but not with all banned users. I imagine that it only works with those who had an avatar.

Thank You.

cheat-master30
10-25-2007, 01:37 PM
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...

Snake
10-25-2007, 03:46 PM
Quite useful. Thank you!

PoetJA-1975
10-29-2007, 12:06 AM
Thanx for the share ;)

Jacquii.

Disi
11-04-2007, 03:29 PM
Well i would suggesting the following changes:


<if condition="is_member_of($post, 8)">
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="images/avatars/banned.gif" alt="Member is Eliminated" title="Member is Eliminated" /></a>
<else />
<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>
</if>


and


<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 />
<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>&nbsp;</td>
</if>
</if>


This Code will show the banned avatar always!

cheat-master30
11-05-2007, 07:40 PM
I don't see much of the change. Unless it's the <td> tags. Never the less, I guess that's good (I have little experience with the specifics of tables).

cheat-master30
07-07-2008, 05:42 PM
Heh, I remember this after a certain member of my forum wondered where it was and I readded it. Yep, nearly the works the same on vBulletin 3.7.2.