hi
I have question : why did you change the signature of getRandomImagesAlbum() function on 1.4.2?
With 1.4.1.6, the function signature was getRandomImagesAlbum ($rootAlbum = NULL, $daily = false, $showunpublished = false) and allows to display a random image, even if it is unpublished.
With 1.4.2, the function signature is now getRandomImagesAlbum ($rootAlbum = NULL, $daily = false) and I can't display an unpublished image.
this signature was useful: I was doing a random banner with pictures "hidden" in an unpublished album with unpublished images.
for now, publish some picture is not enough : I need to publish the album too, and it is really not practical
Comments
I am not sure I understand the rationality of showing an unpublished image, though. Seems it kind of defeats the reasons for not publishing.
I do understand. Sometimes you want to show some images somewhere that should not appear in the normal gallery (or in RSS!) like this example with the slideshow. We do similar with the logos under the "about" page which use the storage album that is used only for embedding images in articles. These do not appear in the rss feed therefore which would not make really sense as these images mean little without the article they are used in (of course we don't use the standard structure of a gallery anyway).
Indeed. I think it's a very useful parameter.
Is helpful to have something like that which pulls photos from all your gallery, but doesn't necessarily need to have itself published and double-up or mixup a certain structure or style of organization.
So to be clear:
`
getRandomImagesAlbum ($rootAlbum = NULL, $daily = false, $showunpublished = false)
`
Is what I should be looking at? Or has this changed? I've rrecently upgraded by like 20 versions..
Currently I use this:
`<?php printHeadingImage(getRandomImagesAlbum('header',false)); ?>`
But as you can see, I can only suggest the album and the 'daily' values. As the OP says, the option for 'showunpublished' is still omitted.
This is the final tweak to my site!
http://www.zenphoto.org/trac/ticket/2082 The image is the main header of my site, so I doubt the workaround is of any use to me..