I will admit I have not been following the hooks discussion for 3.1 very closely and perhaps this is easily doable with the hooks, in which case forget about it. Then again if it is not possible to do something like this with a hook perhaps this should be rewritten as a hook location request, if possible within the boundaries of the system.
Ok, finally to the point, holidays are coming again and since I am a loving person I want to share some of that spirit with my community to do this that usually means a tweaked CSS with some colour adjustments and logo swap, and maybe some other things (javascript snow, anyone? yeah, it is annoying).
So I started thinking, I do these same small style edits every year just to remove them not long after adding them. Since phpBB already does things such as loops and conditional statements in its templates I though why not a conditional statement based on the server date (or date range).
So something such as (syntax wise):
Code: Select all
<!-- IF DATE(m-d) gte DATE(12-20|m-d) and DATE(m-d) lt DATE(12-27|m-d) -->
... something ...
<!-- ENDIF -->
This would allow me to edit the style once and forget about it. Now, since I don't want this to sound quite as self-centered suggestion as it does up to this point I went through the trouble of thinking how this could be useful in general.
I imagine some style authors have either done, or been asked to do themed versions of their styles for some occasions like Christmas for instance, whether it is adding santa to the header or changing some colours around or that ever so amusing javascript based snow fall that someone wants. Wouldn't it be just so much easier to have it all packeaged in one with this (no need to change users style preference for something like this). Of course as not to upset the users who love javascript snow as much as I do it might be good idea to have something to disable this if desired.
Okay, yeah kinda useless request but it could have uses other than holidays f.ex. all the times I have forgotten an anniversary of the site then posted week late saying: "Hey, we had an anniversary last week but I forgot, like everyone else " or something similar I could have just have the logo be different on that day with this to remind myself to make a topic about it. Also we can't have people forget the International Save the Kittens -day (ok, just made that up couldn't think of any actual day).
Just something I thought about after a sudden revelation about the same things I do every year, take it what it is worth (probably nothing but posted anyways).