Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-11-2003, 08:00 PM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default The farewell hack, aka the AutoBahn

We have had some unruly members on our site lately. and due to their actions they were given temporaty bans by my moderators. I have created a time based hack that allows my moderators to ban a user in the form of misery, starvation, etc..., for any period between 1 hour to 7 days.

When these users come back from their ban, some of them have actually been so mad that they have made farewell posts saying how much they hate the site, or this is going to be their last post, or they have requested to be removed from the user list, and so on.

So to make matters more interesting, I came up with the idea of the AutoBahn hack. :laugh: This hack scans the subject and the message body of a new thread for certain phrase patterns and if it is able to match one or more patterns it posts an auto reply with the userID of my Robot Administrator stating the following:

Quote:
Your post indicates that you no longer wish to be a member of this site.

Your ID has been banned.

Contact the site administrators about reinstating your account.

Good bye.
Then it proceeds with closing that thread and banning the user who posted the thread. It's a nice way to give the boot to people who think that they are hurting your feelings by leaving your site. :laugh::banana:

What I need to do as a follow up is to have the hack send them an Email notice informing that they have been banned.

I had one of my users try this out last night. Worked like a charm.
Reply With Quote
  #2  
Old 04-12-2003, 09:44 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow i really like the sound of this Zzed - your doing a great job with these banning hacks - keep it up !

- miSt
Reply With Quote
  #3  
Old 04-12-2003, 05:37 PM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Mist.

Here are 2 examples of the hack in action.

http://www.ls1.com/forums/showthread...hreadid=287146
http://www.ls1.com/forums/showthread...hreadid=287156
Reply With Quote
  #4  
Old 04-12-2003, 05:51 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is more than impressive - and you know it too

Excellent job i must say!

- miSt
Reply With Quote
  #5  
Old 04-12-2003, 05:56 PM
Craigr's Avatar
Craigr Craigr is offline
 
Join Date: May 2002
Location: Ayr, Scotland
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks great. Very good idea. I wouldn't like to be a bad member on your site.

Would you have to install the whole AI Bot though? Because it's about 30Mb of SQL.

Craig
Reply With Quote
  #6  
Old 04-12-2003, 09:54 PM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you guys for your kind words.

Mist, it was a fun little project. I tried it on myself first. :laugh::banana:

Craigr, The whole hack is a 63 line PHP file.
Reply With Quote
  #7  
Old 04-12-2003, 10:08 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be perfect if it updated the bots post count and last post

Are you planning on releasing it here? Looks like it'll be a hit if you do. I, for one, would install it.
Reply With Quote
  #8  
Old 04-12-2003, 10:15 PM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Link14716, it would be a one liner to update the Bot's post count. But then again, he could be any old user on the board. If I release the hack, I will have to add a couple more lines of code to replace his info with user ID 1.

I am going to add Email notification to this hack, this way the user will actually receive a formal notice that he/she has been banned.

I didn't really think much of this hack. So as a result I hadn't really planned on releasing this. But I can release it if you guys are interested.

On a different note, It cracks me up everytime I think my name is being associated with banning on this board. :laugh::banana:
Reply With Quote
  #9  
Old 04-13-2003, 01:53 PM
Craigr's Avatar
Craigr Craigr is offline
 
Join Date: May 2002
Location: Ayr, Scotland
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes i'm interested in it. Please release.

Thanks
Craig
Reply With Quote
  #10  
Old 04-14-2003, 12:56 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, you do keep on making these great new ways to ban/torture people.

I am interested in this, looks like a great hack. It would be nice of you to release it.
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 01:35 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.04525 seconds
  • Memory Usage 2,259KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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