28, May 2012

Clean up non-validated registrations? - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Clean up non-validated registrations?
« previous next »
Pages: [1] Print

Author Topic: Clean up non-validated registrations?  (Read 1174 times)
Where are my glasses?
*
Posts: 22
176 credits
Members referred : 0



« on: Aug 30, 2006, 06:22:35 am »

I'd like to be able to delete people from the database if they haven't validated their registration after a period of time. I think the best way is to add a timestamp field to the user table, and populate it with date/time information in the class function register_user. Then I can run a cron job to whack all the non-validated registrations over a certain age.

Does this seem like the right way to do it?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Aug 30, 2006, 08:41:25 am »

hello,

I did something similar in a modified version of this class but for this feature you need more information like the date and a field with the information that the account is not validated. I f you want to deactivate users after wards (to block them by email address or something) than you can't use the field "active".

I will add this feature later (but not so fast) Smiley



Where are my glasses?
*
Posts: 22
176 credits
Members referred : 0



« Reply #2 on: Aug 30, 2006, 06:27:20 pm »

My feeling was, check the "active" field and an additional timestamp field to see which had not been activated and where over a certain age... But I'm still working my way through understanding the function ins_string.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3886
Tags : databases email Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Clean up non-validated registrations?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 03:32:57 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.