Log in

View Full Version : Ban instead of delete during Moderation?


Trevor Hannant
01-28-2006, 08:54 PM
Looking to ban users rather than delete them when moderating new registrations. Can someone confirm the following change though before I make a backside of it.......

Find the following in user.php (line 1854?):

delete_user($userid);

and replace with

$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET usergroupid = x WHERE userid = $userid");


where x is the banned usergroup?

I know I'll need to change the deleted e-mail to read differently etc......

Cheers in advance.

Trevor Hannant
01-28-2006, 09:29 PM
OK, tried it on a test board and caused all sorts of problems.....

Guess that's not it then!

Daniel
01-28-2006, 10:16 PM
Wrong forum...

Fourth time today, something really needs to be done.

Trevor Hannant
01-28-2006, 10:22 PM
Wrong forum...

Fourth time today, something really needs to be done.

I'm extremely sorry for that Daniel!

Tony G
01-29-2006, 12:02 AM
Daniel - It's hardly your place to be critisising members for posting in the wrong forum. Just report it and don't post anything if it's not going to be nice.

Moving to vB3.5 questions.

Trevor Hannant
02-03-2006, 05:50 AM
Thanks Tony.

Any ideas anyone?