Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
April Fools - Ban User Details »»
April Fools - Ban User
Version: 1.00, by Adrian Schneider Adrian Schneider is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.0 RC 1 Rating:
Released: 03-31-2008 Last Update: 03-31-2008 Installs: 81
Uses Plugins
Additional Files  
No support by the author.

A slight modification of an in house experiment described here.

Users are prompted with the option to ban any user they choose for a period within 3-30 days. Upon submitting, there is a half second pause, then the username switches with their own name followed with another half second pause, before the script finally submits. Don't worry -- the user input here is completely ignored.

The entered username is completely ignored, and the user submitting the form is banned for the period they entered.

Refer to attached screenshots for more info.

It's up to you to link to this file, and you can also view ban.php?do=view for a list of banned users.


... you may want to unban some of these users the next day. No pressure though.

Show Your Support

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

Comments
  #22  
Old 04-01-2008, 02:06 PM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

30 of my users got banned
Reply With Quote
  #23  
Old 04-01-2008, 03:18 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I switched it to hours and put a notice at the top of my site:
Quote:
TTD Offsite - Today the TTD Staff will be off having a barbecue (thank you to all the donators on this site!). We'll be having a little beer, and a little wine, along with some fine food courtesy of Mr. Aaron and Ms. Heather. We will be checking in every once in a while, but I'm not sure what our state-of-mind will be like at the time, if you know what I mean! So, while we are gone, we have allowed a couple of trusted users, Mr. Wolf, and Mr. Possessed, and Mr. {insert username here} to watch over the users and if you misbehave, you may find yourself banned by them since they now have banning priveledges. So.... Be Good!
I've so far, in one hour, we have had 8 users ban themselves. I haven't had any comments yet on my subtle hint that we were using donations (our site runs on donations) to have the barbecue.

Thank you for this!

edit to add:
I created a new plugin, April Fools, at postbit_display_complete with the following code:
Code:
eval('$template_hook[postbit_userinfo_left] .= " ' . fetch_template('postbit_april_fools') . '";');
and then created a new template, postbit_april_fools, with the following code:
Code:
<div class="smallfont"><a href="/forums/ban.php">Temporarily Ban $post[username]</a></div>
That inserted the link into the postbit for them to ban the users.
Reply With Quote
  #24  
Old 04-01-2008, 03:18 PM
nyqnzguju nyqnzguju is offline
 
Join Date: May 2007
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will they actually be banned or its just a trick... cuz i don't wanna be sitting there unbanning people
Reply With Quote
  #25  
Old 04-01-2008, 03:20 PM
Hasann's Avatar
Hasann Hasann is offline
 
Join Date: Aug 2005
Location: Germany
Posts: 897
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nyqnzguju View Post
will they actually be banned or its just a trick... cuz i don't wanna be sitting there unbanning people
they will really banned for 3 days
Reply With Quote
  #26  
Old 04-01-2008, 03:21 PM
nyqnzguju nyqnzguju is offline
 
Join Date: May 2007
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hasann View Post
they will really banned for 3 days
Then No Point Lol My members Will be Pissed
Reply With Quote
  #27  
Old 04-01-2008, 03:29 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nyqnzguju View Post
Then No Point Lol My members Will be Pissed
I changed mine to ban for hours. On line 55 of ban.php:
Code:
    $liftdate = TIMENOW + (3600 * $days);
3600 seconds= 60 seconds/min * 60 minutes

I will click Lift Ban on them in a few hours anyway.
Reply With Quote
  #28  
Old 04-01-2008, 03:33 PM
valdet's Avatar
valdet valdet is offline
 
Join Date: Feb 2007
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I changed mine to ban for hours. On line 55 of ban.php:
Code:
    $liftdate = TIMENOW + (3600 * $days);
3600 seconds= 60 seconds/min * 60 minutes

I will click Lift Ban on them in a few hours anyway.
How can we tweak so it bans them for few minutes and to display the message that they are banned for xx minutes..
Reply With Quote
  #29  
Old 04-01-2008, 03:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by valdet View Post
How can we tweak so it bans them for few minutes and to display the message that they are banned for xx minutes..
I tried to spell out where the number comes from.... If you want to do:
days = leave as is at 86400
hours = 3600
minutes = 60

Just change the bolded number depending on what you want.
Code:
$liftdate = TIMENOW + (3600 * $days);
Reply With Quote
  #30  
Old 04-01-2008, 04:44 PM
valdet's Avatar
valdet valdet is offline
 
Join Date: Feb 2007
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just placed a huge link on my site and now there's a BAN frenzy going on. I made it so it only bans them for few minutes.

Is there anyway that forum/ban.php?do=view link saves the list so we can make a Hall of Fame/Shame afterwards. Right now it does not save the names after the ban is lifted so I need to refresh often to see who is banned.

This would be even better..
Reply With Quote
  #31  
Old 04-01-2008, 05:01 PM
samraz972 samraz972 is offline
 
Join Date: Feb 2008
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wishsomehow this could have been sent thru everyone on my forum thru private messages!
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 07:18 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.07831 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete