![]() |
Exempt for the email or just the delete?
|
Quote:
|
Quote:
in manageInactive.php Find: Code:
$userArray=$DB_site->query("SELECT username,userid,email,adminemail,emailDate FROM user WHERE lastactivity<$cutoffdate and emailDate<$dateCut ORDER BY username"); Code:
$userArray=$DB_site->query("SELECT username,userid,email,posts,adminemail,emailDate FROM user WHERE lastactivity<$cutoffdate and emailDate<$dateCut ORDER BY username"); Find: Code:
// We are just going to delete the inactive users with no warning Code:
if($user[posts] < X) { Find: Code:
if($user[emailDate]<$dateCut) { Code:
if ($user[posts] < X) { |
Nice great hack !!
THX |
So far, this script is working good. I'll give you an update in 15 days. ;)
|
Amykhar, thank you for a great hack! I'm installed.
One quick question, before I cron this. Let's say I want to e-mail users who haven't visited in 30 days. Would I cron this to run every 30 days, or is it safe to run every day? If I run it every day, would it re-email the same people again, or would it only e-mail people who've reached their 30 days since the last run? Does that make any sense, or is it just too late at night for me to type coherently? |
You can run it every day. It won't email them again for another 30 days.
Amy |
Excellent. I was pretty sure that's how it worked, but wanted to make sure before I cron'ed it.
Thank you for an excellent hack! |
possible change del user i/o move to banned group. cool hack....thx!!!
|
Hi Amy,
It's me again.. in a few days (Tuesday, 11th of March) I'll be losing approx. 1750 users :( They are inactive for over a year (my setting), I know, but is it possible to adjust the hack so they will be getting one last e-mail warning a day before the actual pruning? Thanks for considering and the great updates! @ hypedave: nice idea, updated the hack! - djr |
All times are GMT. The time now is 07:31 AM. |
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:
|