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



Possibly Related Threads…
Thread Author Replies Views Last Post
  htaccess caching MyBB CanadaCommunity 0 949 2020-Jun-19-1:51 am
Last Post: CanadaCommunity
  what template for registration mybb CanadaCommunity 0 523 2019-Nov-20-8:29 pm
Last Post: CanadaCommunity
  MyBB has experienced an internal SQL error and cannot continue. CanadaCommunity 0 426 2019-Oct-13-2:45 am
Last Post: CanadaCommunity
  Installing a SSl certificate MyBB CanadaCommunity 0 613 2019-Mar-22-8:45 pm
Last Post: CanadaCommunity
  Soft deleted posts by members not visible to admin - MyBB CanadaCommunity 0 1,156 2018-Jun-24-2:30 am
Last Post: CanadaCommunity
  MyBB SMTP CanadaCommunity 1 1,327 2018-Jun-23-9:26 pm
Last Post: CanadaCommunity
  MyBB force classic postbit CanadaCommunity 0 1,542 2018-Jan-31-12:53 pm
Last Post: CanadaCommunity
  Adding h1 tags mybb CanadaCommunity 0 1,100 2017-Nov-4-11:15 pm
Last Post: CanadaCommunity
  Adding Meta Tags and Meta Description to Mybb CanadaCommunity 0 1,620 2017-Oct-28-5:19 pm
Last Post: CanadaCommunity
  100% full inbox issue mybb Mark 0 1,118 2017-Mar-25-11:39 pm
Last Post: Mark



Users browsing this thread: