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)

Adrian Schneider 03-31-2008 10:00 PM

April Fools - Ban User
 
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.

Freezerator 04-01-2008 06:38 AM

I love you :D

Hasann 04-01-2008 06:39 AM

Very nice idea Adrian :D

TECK 04-01-2008 06:40 AM

Haha, really cool AJ.

Freezerator 04-01-2008 06:50 AM

An error here?

<!--
Database error in vBulletin 3.6.4:

Invalid SQL:

INSERT INTO userban
(userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate, reason)
VALUES (1568, 15, 15, 0, 'Junior Member', 1, 1207036109, 1207295309, 'Haha!! Fooled you!!'
);

MySQL Error : Duplicate entry '1568' for key 1
Error Number : 1062
Date : Tuesday, April 1st 2008 @ 08:48:29 AM
Script : http://xxxxxx.net/forum/ban.php
Referrer : http://xxxxxx.net/forum/ban.php
IP Address : 80.127.xxxxx
Username : Freezer
Classname : vB_Database
-->

Adrian Schneider 04-01-2008 06:52 AM

They changed something since when I originally wrote it... who is the user that was banned?

Adrian Schneider 04-01-2008 06:56 AM

OK I updated the script to use REPLACE instead of INSERT... will get back to you as to the cause.

Freezerator 04-01-2008 07:01 AM

Hmm, it works on other users, i tried with an ex admin account, maybe that has someting to do with it.
Sofar it's working well expect that one error.

2 users banned already :D

Freezerator 04-01-2008 07:03 AM

The update removed the error, thanks!

rungok 04-01-2008 07:09 AM

Cool idea. Does it work on 3.6.8?


All times are GMT. The time now is 01:43 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.01126 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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