Limiting user actions by day
Moderator: General Moderators
Limiting user actions by day
I want to limit what my users can do within a twenty-four hour period. For example, voting for a particular user can only be done once a day but voting can be done five times a day for other users. Once that five-times a day limit is reached, the user has to wait to vote again. I understand that this can be done with a mySQL table, but what is the best way to set timers on this?
Re: Limiting user actions by day
Mark the timestamp when the user voted, then when they come to vote again check the database for the last entry and check the timestamp.
Re: Limiting user actions by day
I see. So once users have reached their limits set timestamps and just check against that. Sounds easier then setting up a CRON action 