Neo
03-11-2002, 10:00 PM
Ok, I though this might help some people out there. What it does is lets users only update their profiles once a day, and if they try to update it again they are greeted by a error message. Sure it has some down falls but it may come in handy sometime.
It uses a timestamp to calculate time. So if you want to change the amount of time users can edit their profile edit this line
$timeoutseconds_eppd = 86400;
easy way to figure this out... let say I only want it for 12 hours
60*60*12
seconds*mins*hours
so it would be
$timeoutseconds_eppd = 43200;
Ohhh.. and dont forget to update the template if your change the time limit ;)
Enjoy.
It uses a timestamp to calculate time. So if you want to change the amount of time users can edit their profile edit this line
$timeoutseconds_eppd = 86400;
easy way to figure this out... let say I only want it for 12 hours
60*60*12
seconds*mins*hours
so it would be
$timeoutseconds_eppd = 43200;
Ohhh.. and dont forget to update the template if your change the time limit ;)
Enjoy.