vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - April Fools - Ban User (https://vborg.vbsupport.ru/showthread.php?t=174767)

Magnumutz 04-01-2008 02:06 PM

30 of my users got banned :)

Lynne 04-01-2008 03:18 PM

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.

nyqnzguju 04-01-2008 03:18 PM

will they actually be banned or its just a trick... cuz i don't wanna be sitting there unbanning people

Hasann 04-01-2008 03:20 PM

Quote:

Originally Posted by nyqnzguju (Post 1480086)
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 :D

nyqnzguju 04-01-2008 03:21 PM

Quote:

Originally Posted by Hasann (Post 1480088)
they will really banned for 3 days :D

Then No Point Lol My members Will be Pissed

Lynne 04-01-2008 03:29 PM

Quote:

Originally Posted by nyqnzguju (Post 1480089)
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.

valdet 04-01-2008 03:33 PM

Quote:

Originally Posted by Lynne (Post 1480097)
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..

Lynne 04-01-2008 03:42 PM

Quote:

Originally Posted by valdet (Post 1480103)
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);

valdet 04-01-2008 04:44 PM

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

samraz972 04-01-2008 05:01 PM

I wishsomehow this could have been sent thru everyone on my forum thru private messages!


All times are GMT. The time now is 03:23 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.02723 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete