Closed (duplicate)
Project:
Inactive User
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2007 at 03:24 UTC
Updated:
29 May 2009 at 15:28 UTC
Jump to comment: Most recent file
Comments
Comment #1
marcbe commentedWhat is the status on this? I really need this feature. When can we expect this to be tested and added to the official release code?
Thanks
Comment #2
marcbe commentedIn the code above, the expression ((%d - created ) > %d) never gets TRUE and thus no user ever gets deleted. To test this, I replaced this expression with 0 and replaced the code that delete users by a line that blocks them. With my test mod, I could block all users that never loged in indeed.
So the problem lies in the value of $delete_time it seems. Hope this helps.
Comment #3
deekayen commentedChanging status based on marcbe's comment.
Comment #4
sjoerdmulder commentedWhy the expression never gets TRUE?
I have tested this patch and it works fine for me, it is exactly doing what should hapen:
A = time() - created => timestamp from now until the user created the account so, 0 = really now, 3600 == hour ago, etc...
A > $time_deleted (time_deleted is 604800 for one week, 1209600 for 2 weeks etc...)
If time_deleted = 0 then the code will never execute because it's disabled.!
attached new version diff with the 1.4 release!
Comment #5
janusman commentedduplicate of #162176: will this email users who never logged on, find patch for 5.x-1.4 there