This can be done rather easily, except for the bbtitle and posting images. If you can live without those, you're good to go...
Actually, you _can_ do it with those images as well
Here's how.
Open up global.php (not in the admin dir), and look for:
Code:
// load vars
$vars=$DB_site->query("SELECT * FROM replacement ORDER BY replacementid DESC");
Replace with:
Code:
if (date("G") < 18 && date("G" > 6) {
// load vars
$vars=$DB_site->query("SELECT * FROM replacement ORDER BY replacementid DESC");
}
Look for:
Code:
$DB_site->data_seek(0,$vars);
while ($var=$DB_site->fetch_array($vars)) {
$newtext=str_replace($var[findword],$var[replaceword],$newtext);
}
Replace with:
Code:
if (date("G") < 18 && date("G" > 6) {
$DB_site->data_seek(0,$vars);
while ($var=$DB_site->fetch_array($vars)) {
$newtext=str_replace($var[findword],$var[replaceword],$newtext);
}
} else {
$newtext=str_replace("<body>,"<body bgcolor=dark>",$newtext);
$newtext=str_replace("<largefont,"<font color=dark",$newtext);
$newtext=str_replace("</largefont>","</font>",$newtext);
etc...
}
The entire else statement should be a manual duplication of the normal dovars subroutine, so go look in your replacements table, and do what I started, except change the values and colors to what you want it to look like at night.
You can also add bbtitle.gif to the first variable in str_replace, and use the darktitle.gif name in the second variable. This will replace that image, and you can do the same for newpost, postreply, etc.
Ask if you have any questions.
Oh, and this was coded in my web browser, so there might be one or two stupid errors.