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:
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: