On my site, I have two albums which contain nude images. In order to provide site visitors who do not wish to see that some degree of warning, I created a thumbnail-sized image that says "18+ only, contains nudity." I have set this image as not visible, and selected it as the album's thumbnail image.
The result is that on my main gallery page, both of these albums show this "warning" image as the thumbnail instead of a random, nude image. Perfect!
However, here's the odd part: One of these albums has a single image in it (other than this warning image) and no sub-albums, and the other has no images in it (aside from the warning image), but has a sub-album with images in it.
I use the zpFocus theme, which displays a random gallery image on the sidebar. When viewing the album with a single image (aside from the warning image), the random album image is blank - I would expect it to be, for lack of any other option, the only visible image in the album.
When viwing the album with no images (except the warning image) that has a sub-album full of images, the random image comes up as expected: A random image from the sub-album.
Are my expectations wrong, or is there possibly a bug in the random image selection code? For reference, the theme uses the following function to get the random image:
printRandomImages(1,'','album','',300,300,true);
Thanks for any tips! If this is indeed a bug, I'll file a ticket. I just thought I'd avoid cluttering the tracker with bugus tickets if it wasn't in fact a bug.
Comments
Ticket