MyBB Community Forums
[For 1.8] ABP Prune Members - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Releases (https://community.mybb.com/forum-102.html)
+---- Thread: [For 1.8] ABP Prune Members (/thread-227085.html)



ABP Prune Members - Crazycat - 2020-03-30

ABP Prune Members 0.2


Plugin to automatically prune inactive members

Installation
Just upload the content of the Upload/ directory to the root of your board, then install and activate.
Think to change the settings !

Settings
Plugin:
  • Group members : only members having their primary group in one of these groups will be affected
  • Based search : you can choose wether you base your search on registration date or on last activity
  • Days : will delete users registered before the number of days or with an inactivity greater than the number of days. Minimum is 1 day
  • Posts : will only delete users having less than this number of posts
Task:
Just choose how often you want to exceute this task. Default is each first day of month at 03h18 AM

Nota bene The task use the UserDatahandler to delete users, so the super admin are protected. They are the only ones!

Download


RE: ABP Prune Members - Eldenroot - 2020-03-31

Nice! Thank you!

Maybe you can use my "old" task script to prune old PMs or soft deleted messages and make it better (ACP settings etc) - I dont have time for this but I get so many PMs from users about these improvements.

Just to have ALL-IN-ONE solution in one plugin Wink Just my idea - keep good work and take care!


RE: ABP Prune Members - Crazycat - 2020-03-31

I'll have a look on that, I think it's possible Smile


RE: ABP Prune Members - Omar G. - 2020-03-31

Thank you for your contribution.


RE: ABP Prune Members - Eldenroot - 2020-04-01

(2020-03-31, 11:14 AM)Crazycat Wrote: I'll have a look on that, I think it's possible Smile

Just links (these two tasks are not something big but it works)

https://community.mybb.com/mods.php?action=view&pid=649

-
 https://community.mybb.com/mods.php?action=view&pid=298


RE: ABP Prune Members - Crazycat - 2020-04-10

Version 0.2: Seeker-Smith found a little typo in a constant, creating a lot of warnings. Corrected.
And I also uncomment a line in the task file, just one of the more important (the real "delete users" part).

Just reupload the new version and all will be alright.


RE: ABP Prune Members - knobblywobbly - 2020-06-10

Hi,
When this plugin deletes the users, does it leave their posts in the forum?


RE: ABP Prune Members - Crazycat - 2020-06-10

No, the plugin just delete users.
You could force pruning content by modifying the inc/tasks/abp_prune_members.php @line 31:
$deleteds = $userhandler->delete_user(array_keys($list), 1);