The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Rotate Logos in WordPress?

I'm going to be converting a static site over to WP in the near future, and there's a feature I'd like to automate, if possible.

I've been creating "holiday logos" for the site (adding a bow for Christmas, a hard hat for Labor Day, etc.,) I'm wondering if anyone has run across a plug-in that would swap out the image files automatically.

Do a search for something like 'php image event rotator' or something like that. There's bound to be a simple script out there for doing this. Or wait till Dan Schulz get's back. My php skills aren't up to creating something on the fly like Dan yet, I still need to do some Googling first :P

I offered advice on a programming problem!!! This if officially my first ever attempt at helping someone with a programming issue. Jeepers, I thought I'd never learn anything about programming. This is however about the limit of my abilities :P

In this case, it's pretty easy, Ryan. You have a bunch of content you want to use (in this case, dates that have images associated with them), so you create a variable to store a list of that content (an array). Then you write a function that checks the dates in the array, and if they match, the special logo for that day gets served instead of the regular one. If none match, then the regular logo gets sent to the browser instead.

Sweet, this is something I will definitely have to try and use on my blog. I never get enough time to make special headers as the holidays switch, but if I could make them in one sitting and have them switch by themselves it would be great. Thanks for sharing the great codes.