Closed (fixed)
Project:
Rules
Version:
6.x-1.4
Component:
Rules Engine
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2010 at 08:42 UTC
Updated:
27 Mar 2011 at 02:42 UTC
Came across this in http://drupal.org/node/348731 and thought of all the useful ways this can be used.
Sending reminders to users that haven't logged in for x days.
Unpublishing content after user has not logged in for x days.
Deactivate accounts after user has not logged in for x days.
Would this be best as a condition that sets the scheduler?
It would be awesome if someone can look into expanding the power of Rules with this addition.
Thanks very much in advance
Comments
Comment #1
fagoThis can be already done:
Use scheduling, once the node is created configure a rule set to be scheduled 30days later. Then 30days later the rule set can unpublish the job. Have a look at the tutorials to get into scheduling.
Comment #3
guntherdevisch commentedHi,
I'm very interessted in this feature, especially "Sending reminders to users that haven't logged in for x days".
I want to send a reminder mail if a user hasn't logged in for x days, with a link to update a user profile field.
Is this possible?
I allready looked at http://drupal.org/node/348731, but didn't find a solution there.
Thanks,
Gunther
Comment #4
vkareh commentedThe functionality you are requesting can be done easily with the Inactive User module.
Using rules for more advanced functionality would involve something similar to the following:
[user:user-last-login-raw] + 2592000 < [user:date-in-tz](2592000 is 30 days in seconds)Save that rule set and then do the following:
+30 daysas the Scheduled evaluation dateDisclaimer: I have no idea if this actually works, as I haven't tested it, but it should give you a good base from where to start.
#348731: Condition: date/time comparison Deals with date comparison but it's not part of Rules yet (at least until we port the patch for D7.x and then backport), so use with caution.
Comment #5
guntherdevisch commentedHi vkareh,
The Inactive User module looks nice, but i saw that it isn't role based. I needed something role based, so i tried your definied rule above and added an extra role condition. And i must say: It works great! You nailed it :)
Thanks for your time & help,
Cheers,
Gunther
Comment #6
JamFar commentedLike this thread very much.
...subscribing
Comment #7
vkareh commentedThis issue was already closed. Reverting.