OK, well I'm doing this in my templates. I put that stuff in a plugin... but I don't really understand how plugins work.
Because then I went to my template and put <vb:if condition="$hourofday==6">stuff to do here</vb:if> and messed with the times
I also did <vb:if condition="$hourofday">test</vb:if> to see if it even existed... but $hourofday didn't have any value apparently... ?
this was my plugin:
Code:
$timestamp = TIMENOW - $vbulletin->options['hourdiff'];
$hourofday = date("G", $timestamp );