Log in

View Full Version : Time based conditionals. It has been x amount of time since...


Attilitus
08-12-2006, 08:23 PM
I am wondering how to put time based conditionals into my vbulletin mods.

For example: It has been X time since user has done Y therefore user cannot do Y for another X minutes.

Could anyone give me a hand? My big trouble is finding a variable for the "Current Time Now" so I can enter it into the database and then check it later.

Or maybe there is an easier vbulletin function to use for this?

Any help greatly appreciated! Thanks!

tazzarkin
03-12-2008, 02:48 AM
any answer for this question?

Dismounted
03-12-2008, 08:49 AM
The current time is stored in the PHP constant "TIMENOW".