PDA

View Full Version : Miscellaneous Hacks - Hide Banned User's Home Page


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

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

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

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

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

<if condition="$show['homepage']">Add above:

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

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

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

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

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

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

<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!