Welcome to Geeklog, Anonymous Monday, June 17 2024 @ 01:25 pm EDT

Geeklog Forums

End membership?


Status: offline

deesh123

Forum User
Junior
Registered: 01/04/05
Posts: 22
Can I have my members be automatically deleted from being a registered user after 1 year of membership?
 Quote

Status: offline

trinity

Forum User
Regular Poster
Registered: 01/30/05
Posts: 80
could be done with a cron script
glFusion - Technology Fused with Style - www.gllabs.org
 Quote

Status: offline

deesh123

Forum User
Junior
Registered: 01/04/05
Posts: 22
im too inexperienced to do something like that. Is there an easier way?
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Hmmm, isn´t it more a business process thing you are looking for instead of just deleting the users after a year ?

I could imagine the following.

User register himself and needs to pay a membership fee in order to access premium content.

Once the payment is received you activate the user.

Now, wouldn´t you rather see the following happening.

One month before the user will be deleted, he or she gets a friendly email, stating that his or her membership is open for renewal and is kindly requested to renew it, or otherwise, the user account will be deactivated.

The user then decides to pay or not.

When he or she pays, you extend the user membership for a year.
Else you remove the membership access.

Don´t delete the user as he or she might just forgot it and pays directly when he or she can´t login.

When you receive payments, you just activate the user again, and he or she keeps all his settings.

Cron is just a scheduler on *nix machines that automates things for you and for example executes a script every day or once a month.

You can also do this manual once a month, but I think your question should be process driven.

If you think my example doesn´t make sense, you don´t want to use a scheduler, and still have it automated, you could add the logic on login.

As soon as the user logs in, you check the registration date, if older than one year, delete.

Don´t forget to exclude yourself from the deletion process Mr. Green

Greetz,
Boris
Vanrillaer.com - our Family Portal
 Quote

All times are EDT. The time is now 01:25 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content