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

PHP Code:
// 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

PHP Code:
  // 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:


1 members viewed this thread in the last 365 days :
Admin


Possibly Related Threads...
Thread Author Replies Views Last Post
  Soft deleted posts by members not visible to admin - MyBB Admin 0 281 06-24-2018, 03:30 AM
Last Post: Admin
  MyBB SMTP Admin 1 445 06-23-2018, 10:26 PM
Last Post: Admin
  MyBB force classic postbit Admin 0 395 01-31-2018, 01:53 PM
Last Post: Admin
  Adding h1 tags mybb Admin 0 367 11-05-2017, 12:15 AM
Last Post: Admin
  Adding Meta Tags and Meta Description to Mybb Admin 0 383 10-28-2017, 06:19 PM
Last Post: Admin
  100% full inbox issue mybb Mark 0 480 03-26-2017, 12:39 AM
Last Post: Mark

Forum Jump:


Users browsing this thread: 1 Guest(s)