Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quick & Easy account banning Details »»
Quick & Easy account banning
Version: 1.00, by Overgrow Overgrow is offline
Developer Last Online: Jun 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-01-2002 Last Update: Never Installs: 39
 
No support by the author.

Disclaimer:

-No support is offered for this hack. If you PM or email for support, it will be joyfully ignored. When I have time, I will answer questions in this thread.

Quick Account Banning

Every forum has annoying users that need to be banned. On my site, we can't allow minors to post so they also fall into that category. While I like the 'hellban' hack, it adds a JOIN to showthread that I'm not too keen on.

This is a quick and easy method to remove an account without having to delete all of their posts. This helps a few things:

-leaves the evidence of why this account was removed. If you delete all the posts, there is no way to find out why a certain account was deleted a month later.
-no long delays on boards with large searchindexes as you delete a hundred posts
-as easy as changing the annoying person's usergroup
-the 'stealth ban' feature will remove someone's posts to everyone except them

How to install this hack:

-create a new usergroup for "Suckers" and note the usergroupid
-open admin/functions.php and find:
PHP Code:
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]); 
below that add:
PHP Code:
// HACK: ACCOUNT REMOVAL
    
if ($post[usergroupid]==44) {
        if (
$bbuserinfo['usergroupid']==6) {
            
$post[message]="<normalfont><b>[account removed]</b></normalfont>&nbsp;&nbsp;
<smallfont><i>Admins see it anyway:</i><br>&nbsp;<br></smallfont>"
.$post[message];
        } else if (
$bbuserinfo[userid]!=$post[userid]) {
            
$post[message]="<normalfont><b>[account removed]</b></normalfont>";
        }
        
$post[title]="";
        
$post[signature]="";
    }
    
// END HACK 
-change the "44" in the code to whatever usergroupid you added for Suckers


That's it. Whenever you want to remove an account's posts without actually deleting them, just change their usergroup.

Show Your Support

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

Comments
  #2  
Old 03-02-2002, 07:57 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Hack.
Reply With Quote
  #3  
Old 03-02-2002, 01:30 PM
Saiyan XL Saiyan XL is offline
 
Join Date: Dec 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep, I am gonna install it now!!
Reply With Quote
  #4  
Old 03-02-2002, 05:11 PM
Psychdrone Psychdrone is offline
 
Join Date: Nov 2001
Posts: 525
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having trouble understanding ezactly what this hack dose
Reply With Quote
  #5  
Old 03-02-2002, 05:16 PM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure, here is what it does, step by step:

-Create a usergroup for morons
-Whenever anyone in the usergroup for morons posts, everyone else will see:

"[account removed]" instead of their message, but the morons will still see their message

-This effectively deletes all of their posts without having to do it.. plus since they still see their own posts, they might be fooled for a while and not re-register.
Reply With Quote
  #6  
Old 03-02-2002, 06:19 PM
nafae's Avatar
nafae nafae is offline
 
Join Date: Nov 2001
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but eventually, as they continue and continue to post, (IE if they think noone is looking at their post, keep posting "BUMP" messages etc) won't it just keep on adding posts to your db?
Reply With Quote
  #7  
Old 03-02-2002, 06:33 PM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It sure will.. but with my board, the 0.1% of troublemakers don't really affect the post count. If someone is spamming the board constantly, you'll have to deal with that another way.

I use this hack in conjunction with two other things-- the "morons" usergroup also restricts them from posting everywhere except for one forum (the free for all junk forum). I also have a small hack that prevents guests from posting more than once every 10 minutes.

I'll write up that anon flood check hack and post it here in a few..
Reply With Quote
  #8  
Old 03-03-2002, 05:07 AM
Gamingforce's Avatar
Gamingforce Gamingforce is offline
 
Join Date: Oct 2001
Location: New York City
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Overgrow, awesome hack but there is one small bug with it. You can still read the person's post by clicking on the "quote" button. Thanks a lot and keep up the good work bro.
Reply With Quote
  #9  
Old 03-03-2002, 05:17 AM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah good point.. and you can also still search for posts and read the first few lines in the search results box. It was just meant as a down and dirty solution. I'm sure the holes could be patched.

I looked into fixing the search result hole but it would require overhead to check what usergroup the person is in before displaying each search result. Maybe a check on that when it first sees that you are searching on a user name.

Hmmm.. I looked into fixing the "quote" hole and you can also read the post in the threadreviewbits... Every hole mentioned can be patched but they all involve querying the user table to find out what usergroup the person is in. With threadreview and searchbits, that would add up to alot of queries-- more than I want to add...

Like I said, this is a quick fix and meant to annoy the moron more than anything since 99% of the users won't see their posts anymore
Reply With Quote
  #10  
Old 03-03-2002, 07:56 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hack, well done. Thanks :up:
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 09:13 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.04719 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_php
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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_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