Can I set up a timer on a user role?
Octavian - July 10, 2007 - 13:53
I'm trying to set up a yearly membership on my site, and I have a paypal subscription module that allows this to happen. But, I want to set up a way to give people a yearly membership why pay me in cash instead of pay-pal.
I could just assign the user the role of member manually, but then, the role would be permanent, and if I didn't keep track of when memberships ran out, they would remain members for ever.
So, how can I set up a timer on a role assignment, so that I can assign someone a role and, after a year, it automatically degrades back to an authenticated user?

Role Delay module
The http://drupal.org/project/roledelay module claims to do what you want.
HTH
Terry
Oh, wait. This is a little
Oh, wait.
This is a little different.
What this does is delay a while before granting new users roles.
What I want, is to give new users a new role, and then start a timer which eventually brings them back to new user status.
So, really, I'm looking for that module, but backwards.
Lateral Thinking Needed
I do understand what you want and I know that it sounds like this module is doing the reverse of what you want. However, if you apply a bit of lateral thinking, you will see that it is the same thing.
This module allows you to have one role and to automatically change to another role at a given time.
Depending on the permissions you give to each of the roles (the immediate one and the one which kicks in after a year), you should be able to effect what you want. You may need to use the rolesignup module to assign the initial role.
HTH
Terry
Ahh. Lateral thinking.
Ahh. Lateral thinking. Gotcha.
Thanks so much for the help. :D
Unfortunately, my next problem is that the module in question is made for 4.7, and I'm using 5.1, and must continue doing so, as there are a few other modules that I use, that only exist for 5.1...
Another possibility
The description of the Temporary Invitation module looks similar to your requirements, but you may have to tear it apart to fit. The part that may be problematic is the "on/off" of the account, instead of degradinig. Maybe you can use the "timing" code. Smash this and the Invite module together?
Maybe, if I knew anything about the code itself
Or I could just take apart a subscription module, figure out how it actually changes roles, and keeps track of the time until it resets the role.
But I don't know how to work with the code, so I'm suppose I'll have to make do with what I have at the moment, keep track of time myself and change rolls manually until I run into someone who knows how to code who's interested getting involved in this project of mine.
Though, if anyone has any other suggestions, please, keep them coming.
Is there, maybe, some way to use a module for 4.7, in 5.1 without really changing anything in the code?