Question

I am creating a website where you can create an account with your name and email. When this is done, you get a 30 day trial. From this point, you can 'upgrade' your account by supplying more information.

When you do not update your information after 30 days, your account is suspended.

Can anyone give me some tips how to do this ? So: - Create profile with email and name (easy), indicator is stored in db that you are trial user. - When you log in, you can extend your profile with extra information. indicator that you are full user.

Was it helpful?

Solution

You can always write your own module to do it, but my recommendation is using the Rules module, and using several user roles.

  • Any new user gets a "trial" role he registers.
  • Create the needed fields in the user profile
  • Create a rule which will change the user's role in case the field is filled (rule triggeres whenever user profile is updated).
  • Create a rule with cron that executes once a day, to suspend user account, and probably to send him a notification before doing so.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top