vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Miscellaneous Hacks - Hide Banned User's Home Page (https://vborg.vbsupport.ru/showthread.php?t=160848)

cheat-master30 10-21-2007 10:00 PM

Hide Banned User's Home Page
 
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

Gray Matter 10-22-2007 11:03 PM

You should to use $bbuserinfo in MEMBERINFO, not $post.

Wheezy 10-24-2007 03:56 AM

This doesnt seem to be working for me... maybe you could specify the code to delete in postbit and postbit_legacy ???

cheat-master30 10-24-2007 05:48 PM

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>


cheat-master30 10-24-2007 05:51 PM

Gave more information on how to install this template edit.

Wheezy 10-25-2007 05:25 AM

Thanks, works great now :)

Snake 10-25-2007 03:45 PM

Quite useful. Thank you!


All times are GMT. The time now is 10:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01130 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete