Quote:
Originally Posted by powerful_rogue
PHP Code:
if ($vbulletin->userinfo[lastactivity] > 0 AND $vbulletin->userinfo[lastactivity] > mktime (date("H")-$vbulletin->options[dynamic_pop_freq], date("i"), date("s"), date("m"), date("d"), date("Y"))) //popup once in every XX hours
|
Split the code up into differant parts.
if ($vbulletin->userinfo['lastactivity] > 0
is like saying If the users last activity is greater than 0 seconds
AND $vbulletin->userinfo['lastactivity'] > mktime (...............))
and the users activity is greater than the result of mktime()
then...
If your not sure what the mktime function does, look it up on php.net
Its great to see you have a big interest in coding

Just remember not to give up and keep things simple.