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
Hide Banned User's Home Page Details »»
Hide Banned User's Home Page
Version: 1.00, 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-21-2007 Last Update: Never Installs: 4
Template Edits
Re-useable Code Translations  
No support by the author.

This removes their home page from topics and also their homepage, email and PM link from their profile if the member is banned. You can likely also use a version to remove ALL contact info for banned users.

Advantages:

1. Keeps privacy for banned users, stops their enemies from annoying them and also removes need to request privacy by them.

2. Allows mods to take user home pages out of the public forum when a spammer gets banned before an admin can reach the Admin CP.

3. Can be used to your advantage to advertise sites of yourself or friends as well as to put advertisements. Cruel but a way to find new resources.

4. Can be used to put something funny in that position...

How to add:

In Postbit find:

Code:
 <if condition="$show['homepage']">
        <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
    </if>
Replace with:

Code:
<if condition="$show['homepage']">
<if condition="is_member_of($post, 8)">
<tr><td class="vbmenu_option">Home Page Removed</td></tr>
<else />
        <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
    </if>
</if>
In Postbit Legacy find:

Code:
 <if condition="$show['homepage']">
        <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
    </if>
Replace with:

Code:
<if condition="$show['homepage']">
<if condition="is_member_of($post, 8)">
<tr><td class="vbmenu_option">Home Page Removed</td></tr>
<else />
        <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
    </if>
</if>
MEMBERINFO

Find:

Code:
<if condition="$show['homepage']">
Add above:
Code:
<if condition="is_member_of($post, 8)">
<strong>Member Information Removed</strong>
<p>Member has been banned, therefore home page and email has been removed from public view.</p>
<else />
Find:

Code:
1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
                    </td>
                </tr>
                </if>
Add below:

Code:
</if>
Terms

The same as before. Re release and use as you wish across any forum you wish with credit.

Screenshots:

See attached

Show Your Support

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

Comments
  #2  
Old 10-22-2007, 11:03 PM
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should to use $bbuserinfo in MEMBERINFO, not $post.
Reply With Quote
  #3  
Old 10-24-2007, 03:56 AM
Wheezy's Avatar
Wheezy Wheezy is offline
 
Join Date: Jun 2007
Location: USA
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesnt seem to be working for me... maybe you could specify the code to delete in postbit and postbit_legacy ???
Reply With Quote
  #4  
Old 10-24-2007, 05:48 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

Ah, okay then.

In Postbit:

Replace:

Code:
 <if condition="$show['homepage']">
        <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
    </if>
With:

Code:
 <if condition="$show['homepage']">
<if condition="is_member_of($post, 8)">
<tr><td class="vbmenu_option">Home Page Removed</td></tr>
<else />
        <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
    </if>
</if>
In Postbit Legacy:

Replace:
Code:
<if condition="$show['homepage']">
        <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
    </if>
With:
Code:
<if condition="$show['homepage']">
<if condition="is_member_of($post, 8)">
<tr><td class="vbmenu_option">Home Page Removed</td></tr>
<else />
        <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
    </if>
</if>
Reply With Quote
  #5  
Old 10-24-2007, 05:51 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

Gave more information on how to install this template edit.
Reply With Quote
  #6  
Old 10-25-2007, 05:25 AM
Wheezy's Avatar
Wheezy Wheezy is offline
 
Join Date: Jun 2007
Location: USA
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, works great now
Reply With Quote
  #7  
Old 10-25-2007, 03:45 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
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 02:11 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.04252 seconds
  • Memory Usage 2,269KB
  • 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
  • (12)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete