2010-02-20, 12:04 AM
Hey, I've been slowly learning my way around PHP and have built a small script to define which banner should be displayed on my home page depending on the time of day. What I want to do is frame a copy of MyBB inside said homepage, and have this script run to change the skin instead of banner. This is the current version:
How would I edit this to determine the skin, and how would I then turn it into a plugin? Thanks.
<?php
$time = date("G");
if ($time > 19 || $time < 6) {
include "res/night-title.html";
}
else {
include "res/day-title.html";
}
?>
How would I edit this to determine the skin, and how would I then turn it into a plugin? Thanks.