Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Banned User Profile Replaced by Custom Image Details »»
Banned User Profile Replaced by Custom Image
Version: 1.2, by cheat-master30 cheat-master30 is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.8 Rating:
Released: 10-17-2007 Last Update: Never Installs: 9
Template Edits
Re-useable Code Translations  
No support by the author.

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:

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

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

Code:
<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 for saying why the original code did not work in the profile.

Myself for obvious reason.

Anyone reading/using/installing this for their thanks.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-25-2007, 03:46 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quite useful. Thank you!
Reply With Quote
  #13  
Old 10-29-2007, 12:06 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanx for the share

Jacquii.
Reply With Quote
  #14  
Old 11-04-2007, 03:29 PM
Disi Disi is offline
 
Join Date: Aug 2005
Location: Germany
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well i would suggesting the following changes:

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

Code:
		  <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!
Reply With Quote
  #15  
Old 11-05-2007, 07:40 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #16  
Old 07-07-2008, 05:42 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 07:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12279 seconds
  • Memory Usage 2,264KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete