PDA

View Full Version : Ban User by ignore micro hack


Brad
06-12-2002, 10:00 PM
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

if (!$ignore[$post[userid]]) {
eval("\$retval = \"".gettemplate("postbit")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
}

under it add.

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

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/showthread.php?s=&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 ?