Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deleting Banned Spam Accounts mybb
#1
mybb Deleting Banned Spam 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.
You shall reap what you sow.
KARMA 
Reply
Thanks given by:



Possibly Related Threads…
Thread Author Replies Views Last Post
  htaccess caching MyBB Admin 0 884 06-19-2020, 03:51 AM
Last Post: Admin
  what template for registration mybb Admin 0 444 11-20-2019, 10:29 PM
Last Post: Admin
  MyBB has experienced an internal SQL error and cannot continue. Admin 0 335 10-13-2019, 04:45 AM
Last Post: Admin
  Installing a SSl certificate MyBB Admin 0 530 03-22-2019, 10:45 PM
Last Post: Admin
  Soft deleted posts by members not visible to admin - MyBB Admin 0 1,056 06-24-2018, 04:30 AM
Last Post: Admin
  MyBB SMTP Admin 1 1,219 06-23-2018, 11:26 PM
Last Post: Admin
  MyBB force classic postbit Admin 0 1,415 01-31-2018, 02:53 PM
Last Post: Admin
  Adding h1 tags mybb Admin 0 1,041 11-05-2017, 01:15 AM
Last Post: Admin
  Adding Meta Tags and Meta Description to Mybb Admin 0 1,533 10-28-2017, 07:19 PM
Last Post: Admin
  100% full inbox issue mybb Mark 0 1,064 03-26-2017, 01:39 AM
Last Post: Mark



Users browsing this thread: 1 Guest(s)