WHAAA!!!Walther wrote:So, only those who are member of the "newly registered users group", not members de-activated by the admin with 0 postings due to *whatever reason* the admin had to de-activate them.
Code: Select all
$sql = 'SELECT user_id, username, user_regdate FROM ' . USERS_TABLE . ' WHERE user_type = ' . USER_INACTIVE . ' AND user_new = 1 AND user_regdate < ' . $expire_date;
ALL users who where not active or de-activated, with or without postings, pm's and so on, got deletedJohn P wrote:... it won't delete inactive users who once where active
SELECT user_id, username, user_regdate FROM phpbb3_users WHERE user_type = 1 AND user_new = 1;
SELECT user_id, username, user_regdate FROM phpbb3_users WHERE user_type = 1 AND user_new = 1 AND user_inactive_reason = 1;
$sql = 'SELECT user_id, username, user_regdate FROM ' . USERS_TABLE . ' WHERE user_type = ' . USER_INACTIVE . ' AND user_new = 1 AND user_regdate < ' . $expire_date;
$sql = 'SELECT user_id, username, user_regdate FROM ' . USERS_TABLE . ' WHERE user_type = ' . USER_INACTIVE . ' AND user_new = 1 AND user_inactive_reason = 1 AND user_regdate < ' . $expire_date;
user_new
part, because sometimes even when the users have the required number of postings, they are still listed in the newly registered group, until their postings is required+1.$sql = 'SELECT user_id, username, user_regdate FROM ' . USERS_TABLE . ' WHERE user_inactive_reason = 1 AND user_regdate < ' . $expire_date;
Unfortunately it's true. I just tested it on testing board converted from phpBB 3.0.x. I deactivated user who was member since 2006 and have 1 post. Next day he was deleted. It even didn't wait for 30 days I set in "Delete inactive users:" option.Walther wrote:ALL users who where not active or de-activated, with or without postings, pm's and so on, got deleted