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
Ban User by ignore micro hack Details »»
Ban User by ignore micro hack
Version: 1.00, by Brad Brad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-12-2002 Last Update: Never Installs: 10
 
No support by the author.

I use this because hellban gave me some problems and i dident think editing the database would be needed for something that could be done with just two simple edits.

What this dose is put a user under forum wide ignore, so they wont really know they are banned, if its a spamer. he might just get bored and go away.




frist get your functions.php file from the admin dir.

find this bit of code

PHP Code:
if (!$ignore[$post[userid]]) {
        eval(
"\$retval = \"".gettemplate("postbit")."\";");
    } else {
        eval(
"\$retval = \"".gettemplate("postbit_ignore")."\";");
    } 
under it add.

PHP Code:
if ($post[usergroupid]==*user gourp id here AND $bbuserinfo[usergroupid]!=*user gourp id here) {
           eval(
"\$retval = \"".gettemplate("postbit_ignore")."\";");
    } 
now make a new user gourp, something like banned, and replace the bits int he code with its #

if you want to just skip doing this in the CP you can run a SQL query.

INSERT INTO usergroup VALUES("100","Banned","","0","1","1","1","1","0"," 1","0","0","0","1","1","1","1","0","0","1","1","1" ,"0","0","1","0","0","0","0","0","0","0","0","1 ");


change *user gourp id here to 100. but i recomend doing this via the contral panel.

remove everything from the postbit_ignore

------------
you can also make this effect only one use if you do not want to add anthor user gourp for whatever reason. Use this code insted

PHP Code:
if ($post[userid]==*users id here* AND $bbuserinfo[userid]!=*users ID here*) {
           eval(
"\$retval = \"".gettemplate("postbit_ignore")."\";");
      } 
replace *user id here* with the users ID.


i know its quick and dirty. but it was my frist "hack" for vB and someone asked me to share so i will :laugh:

Show Your Support

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

Comments
  #2  
Old 06-13-2002, 06:52 AM
zachb's Avatar
zachb zachb is offline
 
Join Date: Nov 2001
Location: Indianapolis
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice! i like it. it works very easily. great job!
Reply With Quote
  #3  
Old 06-15-2002, 06:36 AM
ZiRu$'s Avatar
ZiRu$ ZiRu$ is offline
 
Join Date: Jan 2002
Location: Manitoba, Canada
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so, they can still post.......but no one will see there posts?
Reply With Quote
  #4  
Old 06-16-2002, 05:51 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hot dogg: yes.
Reply With Quote
  #5  
Old 06-16-2002, 09:57 PM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Umm...but the banned users can still post new threads right that will show up as new threads but with no content in them?
Reply With Quote
  #6  
Old 06-17-2002, 09:37 AM
Frank Frank is offline
 
Join Date: Nov 2001
Location: Toronto, Canada
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uhm I've already written this hack... https://vborg.vbsupport.ru/showthrea...threadid=36205
Reply With Quote
  #7  
Old 06-26-2002, 02:49 PM
LancerForums's Avatar
LancerForums LancerForums is offline
 
Join Date: Nov 2001
Location: CA
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will new threads still display in this situation?

My experience with the ignore feature is that you still see the threads, but their post shows a 'This user is on your ignore list...' instead of their post content.

Mark
Reply With Quote
  #8  
Old 12-07-2004, 05:59 AM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance of a VB3 version of this? Miserable Users is too obvious for my delinquits. I don't want them to have any idea their new fake account is banned.
Reply With Quote
  #9  
Old 12-07-2004, 06:53 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't this what the send to coventry feature of vb3 does ?
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 11:44 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.04642 seconds
  • Memory Usage 2,290KB
  • Queries Executed 22 (?)
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
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete