vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Simple Instant Ban (https://vborg.vbsupport.ru/showthread.php?t=60115)

MilleniumClock 01-12-2004 05:51 PM

Simple Instant Ban
 
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

1 Attachment(s)
Templates to Edit: (1) postbit or postbit_lagacy(depending on which you use)

Find:
Code:

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

<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

1 Attachment(s)
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

Quote:

Originally Posted by mholtum
Templates to Edit: (1) postbit or postbit_lagacy(depending on which you use)

Find:
Code:

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

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


All times are GMT. The time now is 07:09 AM.

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.01181 seconds
  • Memory Usage 1,733KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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