![]() |
Thanks for all the feedback. maybe it is more trouble than it's worth but I thought it would be a nice touch to have a day vs a night look.
|
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 Code:
if (date("G") < 18 && date("G" > 6) { Code:
$DB_site->data_seek(0,$vars); Code:
if (date("G") < 18 && date("G" > 6) { 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. :) |
That seems a lot of clart on when you can just put replacement variables in the header!
|
"It is extremely complicated though unless you know every visitor to your site is in the same part of the world, to work properly you would have to get them to input their latitude and longditude and correct current timezone and have access to forumulas which will calculate sunrise and sunset times for everywhere around the world - not an easy task."
No, actually it would be possible to do something like visualtraceroute.datametrics.org on a couple of packets. Using that info it could customize it. It could also ask for the users time zone and customize it for each user. |
All times are GMT. The time now is 07:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|