2017-Mar-25-10:21 pm
mybb Deleting Banned Spam Accounts
Open ./inc/tasks/userpruning.php file and find
and add the following code just AFTER that
Now go to: Admin CP > Configurations > User Pruning > Enable user pruning? > and select ON
Now login to AdminCP > Tools and Maintenance > Task Manager > and Click on the small clock on the same line as the "User Pruning" option.
This will delete the banned user's accounts!
Open ./inc/tasks/userpruning.php file and find
// Are we pruning unactivated users?
if($mybb->settings['pruneunactived'] == 1)
{
$regdate = TIME_NOW-(intval($mybb->settings['dayspruneunactivated'])*24*60*60);
$query = $db->simple_select("users", "uid", "regdate <= ".intval($regdate)." AND usergroup='5'");
while($user = $db->fetch_array($query))
{
$users[$user['uid']] = $user['uid'];
}
}
and add the following code just AFTER that
// Change it to 0 if you don't want it to run.
$delete_banned_users = '1';
if ($delete_banned_users != "0")
{
$query = $db->simple_select("users", "uid", "usergroup = '7'");
while ($user = $db->fetch_array($query))
{
$users[$user['uid']] = $user['uid'];
}
}
Now go to: Admin CP > Configurations > User Pruning > Enable user pruning? > and select ON
Now login to AdminCP > Tools and Maintenance > Task Manager > and Click on the small clock on the same line as the "User Pruning" option.
This will delete the banned user's accounts!
==================
Everything happens for a reason.
Everything happens for a reason.
You shall reap what you sow.
KARMA