[OzzModz] Activation Reminder & User Purger

[OzzModz] Activation Reminder & User Purger 2.0.0

No permission to download
I had to disable one of the crons, to keep it from deleting accounts that were temporarily in a bounced state, but it is otherwise great for the other half of what it does.
Ah thank you so much for the comment, so there is a part we can keep and some we can keep it disabled. I will give it a try. Any tip you like to share which part I need to keep disabled to avoid issues please? I have not installed it yet so I am not aware if I need to do something before installation or during installation or after installation. Appreciate your quick guide/ tip.
 
Ah thank you so much for the comment, so there is a part we can keep and some we can keep it disabled. I will give it a try. Any tip you like to share which part I need to keep disabled to avoid issues please? I have not installed it yet so I am not aware if I need to do something before installation or during installation or after installation. Appreciate your quick guide/ tip.

The CRON I turned off is:

[OzzModz] Activation Email Reminder/User Purger: Purge non-confirmed users [OzzModz] Activation Email Reminder/User Purger

I'm not exactly sure why, but it purged several long time users that were temporarily or perm in a state of BOUNCED EMAIL.

Now I still have it sending out reminders, and I purge them manually, for just the new registrants pending initial registration confirmation.
 
One suggestion is to only delete members where post count is 0. Deleting members with posts can have other impacts.

In UserPurger.php, adding this to the query should help:

SELECT
user_id
FROM
xf_user
WHERE
register_date < ?
AND user_id > ?
AND user_state = 'email_confirm'
AND message_count > 0
ORDER BY
user_id
 
One suggestion is to only delete members where post count is 0. Deleting members with posts can have other impacts.

In UserPurger.php, adding this to the query should help:


AND message_count > 0
YES :)
I had to disable the cron for the part of this tool, because it wiped out a bunch of long term users who were not in a VALID state. (ie: bounced email). I wanted to retain them, but lesson learned. Your suggestion would have fixed my concern, to make it mostly just for new registrations and not everyone.
 
Back
Top Bottom