PDA

View Full Version : Simple Instant Ban


MilleniumClock
01-12-2004, 05:51 PM
Should be a simple hack, it would consist of small 5 x 5 sized (maybe larger) gifs or icons that would go under every persons username in the postbit template, each one would have a different action, one would be IP Ban, Username Ban, Rate Limit and maybe others

good idea i think :)

MGM
01-13-2004, 10:35 PM
ooooh, a Quick ban of sorts? I like it!

also, make it viewable to admin only ;)

MGM out

mholtum
09-12-2004, 02:51 PM
Templates to Edit: (1) postbit or postbit_lagacy(depending on which you use)

Find:

<if condition="$post['userid']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>


Below that add:

<if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')"><b>Ban or Suspend $post[username]</b></span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','liftban','width=500,height=350,scrollbars=yes')"><b>Lift Ban on $post[username]</b></span></td></tr>
</if>


Works in vb3 should work in vb2.x

djjeffa
12-08-2004, 01:42 AM
thanks worked great

bobbaf3nn
12-09-2004, 09:40 PM
great idea

Paul M
12-09-2004, 10:22 PM
We use the same thing - but have a larger list of options :)

Reeve of shinra
12-09-2004, 10:58 PM
We had one where hitting hte button would even delete them from the db and do a prune of all thier posts. Was great for the real trouble makers way back when.

Slybone
12-30-2004, 12:47 AM
Templates to Edit: (1) postbit or postbit_lagacy(depending on which you use)

Find:

<if condition="$post['userid']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>


Below that add:

<if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')"><b>Ban or Suspend $post[username]</b></span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','liftban','width=500,height=350,scrollbars=yes')"><b>Lift Ban on $post[username]</b></span></td></tr>
</if>


Works in vb3 should work in vb2.x
I did this on BOTH templates and neither worked... not sure whats going on

Dys
02-16-2005, 03:20 AM
Works quite well!!

Thanks

Kaelon
02-20-2005, 05:01 PM
This should not belong in this forum, since this is for vB 2.x hacks - and this is a vB 3.x template mod.