I am trying to figure out how to turn off this mod automatically during my peak time, between 11:30 and 12 noon. I am not familiar with xml, but this is how I'd do it in php. It's not working. I get an error. It doesn't seem to like the date function call. Any ideas?
Code:
// Turn off from 11:30 to 12 noon ET
$dead_time = date("Y-m-d H:i:s");
if ((substr($dead_time, 11, 2) = 11 AND (substr($dead_time, 14, 2) > 29)))
{
bypass mod
}
else
{
go on to ....
if ($vbulletin->options['cybtopstats_enable_global'] AND !is_member_of($vbulletin->userinfo, split(',', $vbulletin->options['cybtopstats_excl_groups'])) AND !isset($_POST['fromquickreply']))...
Thanks