Simple script starter script, optimize and recode to make it better, hopefully this will get you all on the right track! I left out phrases and such for ease of posting, like I said feel free to add them as well as optimize the time functions etc.
The hook I used was global_startup_complete
PHP Code:
$time_open_hour = '06'; // Time time the board opens in HOURS - 24 HOUR CLOCK - VBULLETIN TIME - LEADING 0 $time_open_minutes = '00'; // Minutes from the hour that the board opens - LEADING 0 $time_close_hour = '16'; // Time the board closes in HOURS - 24 HOUR CLOCK - VBULLETIN TIME - LEADING 0 $time_close_minutes = '23'; // Minutes from the hour that the board closes - LEADING 0
// ################# LEAVE THIS ################ $time_now = date('Gi', TIMENOW); if ( !(($time_now >= $time_open_hour.$time_open_minutes) AND ($time_now <= $time_close_hour.$time_close_minutes)) ) { eval(standard_error("The forum is closed, please return after HOURS:MINUTES")); }
If you have something to contribute, edit it and repost Together we could make a good product.