Overgrow
03-01-2002, 10:00 PM
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:
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
below that add:
// HACK: ACCOUNT REMOVAL
if ($post[usergroupid]==44) {
if ($bbuserinfo['usergroupid']==6) {
$post[message]="<normalfont><b>[account removed]</b></normalfont>
<smallfont><i>Admins see it anyway:</i><br> <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.
-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:
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
below that add:
// HACK: ACCOUNT REMOVAL
if ($post[usergroupid]==44) {
if ($bbuserinfo['usergroupid']==6) {
$post[message]="<normalfont><b>[account removed]</b></normalfont>
<smallfont><i>Admins see it anyway:</i><br> <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.