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 1,173 2020-Jun-19-2:51 am
Last Post: CanadaCommunity
  what template for registration mybb CanadaCommunity 0 684 2019-Nov-20-9:29 pm
Last Post: CanadaCommunity
  MyBB has experienced an internal SQL error and cannot continue. CanadaCommunity 0 604 2019-Oct-13-3:45 am
Last Post: CanadaCommunity
  Installing a SSl certificate MyBB CanadaCommunity 0 778 2019-Mar-22-9:45 pm
Last Post: CanadaCommunity
  Soft deleted posts by members not visible to admin - MyBB CanadaCommunity 0 1,316 2018-Jun-24-3:30 am
Last Post: CanadaCommunity
  MyBB SMTP CanadaCommunity 1 1,559 2018-Jun-23-10:26 pm
Last Post: CanadaCommunity
  MyBB force classic postbit CanadaCommunity 0 1,723 2018-Jan-31-1:53 pm
Last Post: CanadaCommunity
  Adding h1 tags mybb CanadaCommunity 0 1,272 2017-Nov-5-12:15 am
Last Post: CanadaCommunity
  Adding Meta Tags and Meta Description to Mybb CanadaCommunity 0 1,821 2017-Oct-28-6:19 pm
Last Post: CanadaCommunity
  100% full inbox issue mybb Mark 0 1,276 2017-Mar-26-12:39 am
Last Post: Mark



Users browsing this thread: 1 Guest(s)