Users browsing this thread: 1 Guest(s)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

MarkDeleting 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!

Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
  How do I change or enable cache MyBB Admin 0 28 05-24-2019, 01:11 PM
Last Post: Admin
  Last Post less characters mybb - Less characters in last post thread Admin 0 42 05-16-2019, 03:04 AM
Last Post: Admin
  HTTPS mybb - MyBB HTTPS - Setting up HTTPS on MyBB Admin 0 50 05-14-2019, 06:52 PM
Last Post: Admin
  Google SEO MyBB - MyBB SEO Google -MyBB friendly URLs Admin 0 71 05-14-2019, 05:24 PM
Last Post: Admin
  mybb plugins - mybb mods - extend mybb with features and functionalities Admin 0 61 05-13-2019, 11:46 PM
Last Post: Admin
  SQL Error: 1366 Settings for the plugin.','1','no' mybb Admin 0 52 05-13-2019, 04:05 PM
Last Post: Admin
  IP Ghost Plugin Fatal Error MyBB Admin 0 52 05-12-2019, 06:09 PM
Last Post: Admin
  characters increase count signature mybb Admin 0 47 05-12-2019, 04:16 PM
Last Post: Admin
  MyBB Version 1.8.20 center alignment does not work Admin 0 35 05-12-2019, 03:51 PM
Last Post: Admin
  Default Thread Subscription Mode: mybb Admin 0 27 05-08-2019, 03:19 PM
Last Post: Admin