![]() |
Automatic Inactive Users Pruning
As requested by Watson here.
What this hack does:
To get started, simply read the attached .txt file :) //peace |
what is the difference with the one from here ???
https://vborg.vbsupport.ru/showthread.php?t=75740 () |
I released a similar hack a while back, but good work still. :cool:
|
Balls. Sorry, didnt see that one.... :(
|
very nice *installs* :)
|
I like this one, Thanks Revan
|
Thanks people :)
And the difference between the two hacks, after closer studies, is the fact that my hack can also email the users telling them that they have been deleted. I value this feature because it would be annoying for an user to try to revisit if he remembers your forum at a later point, only to find his account terminated without explanation. When I get home I will further improve this hack, by flagging the users for deletion, emailing them about the fate of their accounts, then after x amount of days (config), if the user still applies to the "flagged for deletion" groups, delete them (and optionally mail them about it). |
superb mate, thanks a million for this. Will install it as soon as me site is changed over to me new server :):):)
|
I installed this, and executed with 100 days last activity & posts and 300 posts to be "immune".
Can you tell me why it says "skipped user" when I run it, for some users, even if they don't have 300 posts and they have over 100 days of inactivity? Why are they being skipped? |
For instance, i created a user and set it with a last activity to April 2004 (so 1 year ago), I executed the operation and it was showing up between the "skipped users". There are no "flagged" users in the operation log, only skipped ones. I am running this with e-mail alert, and did not receive any mail at all. Any ideas?
|
Hm damn, I made a silly mistake.
Find: PHP Code:
PHP Code:
|
Great, now the flagging works. Thank you *installed*
|
Quote:
|
Quote:
|
Quote:
Quote:
Quote:
|
Rather than deleting, is it possible to simply move them to another group?
So you'd have two options: 1. notify via email, add to a list, delete. 2. notify via email, add to a list, move to another group. |
I wrote some quick code which I think will work, let me know if it doesn't work and/or left some statistic on the forum un-updated :)
|
Thx,
I have made an addon on this, so you can exclude usergroups from been pruned, you can find it here: https://vborg.vbsupport.ru/showthread.php?t=91159 |
I finally installed this hack, but you forgot one big thing: the deleteflag isn't unset when the user decides to visit the forum again. It will be set forever for that user. Thanks for the great hack, hope this will be solved.
Moreover, I've improved the performance of this script by editing the datatype of the 'deleflag' column to unsigned int (10). This is quite dangerous, as the default value is 0. Therefore the script needs to be modified a little: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
anyone know if this works with 3.6.7??
|
nice mod thx
but is there a way to do not remove user i was thinking to just move it to another group |
All times are GMT. The time now is 04:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|