Forum Moderators: coopster
I'm creating a site with an archive of photo galleries, and on each gallery page i'm looking to have a sidebar that shows a cross-section of other galleries in groups of 10, via thumbnails... except that sometimes, the updated galleries won't actually be there yet, so i'd like to have a script that basically looks for "set053/001.jpg", and if that image hasn't been uploaded, then a placeholder image saying "coming soon" would be shown. Ugh, that's a horrible descrition. Here's the outline of it:
-Say there are 52 photo sets (updates will be made regularly).
-If you're on any gallery between 1 and 10, this "sidebar" will show thumbnails of the other galleries within that group of 10.
-On a gallery between 11-20, you'll see the sidebar thumbnails for galleries 11-20... and so forth.
-But on the most recent set of 10, in this instance galleries 51-60, the galleries 53 thru 60 haven't yet been uploaded, so having a static sidebar that shows "galleries 51-60" would yeild broken images for the thumbs for 53 - 60 right now.
So hopefully that made more sense... basically, if PHP can find "set053/001.jpg" on the server, it shows it. If it can't, then have it show something like "images/comingsoon.jpg".
Thanks for any assistance, as always