Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #12  
Old 03-08-2002, 11:47 AM
psico psico is offline
 
Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Overgrow
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

Any news? I?m waiting for this fix to install it...
Reply With Quote
  #13  
Old 05-24-2002, 07:41 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea!

I just made a .txt file, so that people like myself, who like to do things from easier to read instructions, and sometimes offline, can do so...

Satan
Reply With Quote
  #14  
Old 01-29-2003, 03:24 AM
papa papa is offline
 
Join Date: Jan 2003
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can I get the usergroup id?
Reply With Quote
  #15  
Old 01-29-2003, 03:50 AM
papa papa is offline
 
Join Date: Jan 2003
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got it figured out. thank anyway
Reply With Quote
Reply

Thread Tools

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 04:26 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.03478 seconds
  • Memory Usage 2,246KB
  • Queries Executed 19 (?)
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)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
  • (1)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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