![]() |
How hard would it be to set things up such that the board had one look during the day and another at night? Not changing much--colors, bbtitle, and on/off icons so that at 6am the day style is seen and at 6pm the night style blinks on. It would be nice if we could set the times. Or does such a hack already exist?
[Edited by Shoe on 07-13-2000 at 08:35 AM] |
That... sounds complicated but doable. I'm not sure if it needs this but it sounds like it needs a cron job.
|
Quote:
How would I set cron to do this? [Edited by Shoe on 07-13-2000 at 11:19 AM] |
actually, all you need is a different template for each "zone", and change the templates in the html...
this is a simple, but very time-consuming hack. for practically each template call you need a if day then this else do that. |
Well, you could setup a cron script (or 2, one for night, other for day) to change the styles stuff
|
Quote:
|
Quote:
|
Well, although you'd be increasing your chance of getting an error if you didn't shut off the forum to change the colors, IMO, it's the equivalent of adding a post to the post table.
This is just coming off the top of my head, so I wouldn't count on it working: Code:
<?php [Edited by Ed Sullivan on 07-13-2000 at 03:57 PM] |
I think if you are wanting to do this then you shouldn't go and change the actual variables themselves it would be best to do it dynamically. i.e. get each script to look at the time and then put the appropriate colour variables into it.
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. |
Quote:
[Edited by SonnetCelestial on 07-14-2000 at 10:49 AM] |
All times are GMT. The time now is 04:42 AM. |
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:
|