vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Ban User by ignore micro hack (https://vborg.vbsupport.ru/showthread.php?t=39800)

Brad 06-12-2002 10:00 PM

Ban User by ignore micro hack
 
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:

zachb 06-13-2002 06:52 AM

very nice! i like it. it works very easily. great job!

ZiRu$ 06-15-2002 06:36 AM

so, they can still post.......but no one will see there posts?

Brad 06-16-2002 05:51 AM

hot dogg: yes.

Martin64 06-16-2002 09:57 PM

Umm...but the banned users can still post new threads right that will show up as new threads but with no content in them?

Frank 06-17-2002 09:37 AM

Uhm I've already written this hack... https://vborg.vbsupport.ru/showthrea...threadid=36205

LancerForums 06-26-2002 02:49 PM

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

alkatraz 12-07-2004 05:59 AM

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.

Paul M 12-07-2004 06:53 AM

Isn't this what the send to coventry feature of vb3 does ?


All times are GMT. The time now is 01:37 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.01347 seconds
  • Memory Usage 1,734KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete