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