![]() |
|
randomimage from a unpublished album? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: randomimage from a unpublished album? (/thread-7385.html) |
randomimage from a unpublished album? - easynow - 2010-07-23 hi, i love zenphoto! At the moment i am using randomimage on my frontpage as a kind of banner. My idea was to have it only source images from an unpublished album, so i can control what images it uses. However, if you are not logged in and viewing an unpublished album, the randomimage doesn't work and you get a placeholder instead. is there alternative (to unpublishing) way of hiding the source album to get around this? maybe there is some other way of doing this completely? thanks for any help. randomimage from a unpublished album? - sbillard - 2010-07-23 Please look at the function randomimage from a unpublished album? - easynow - 2010-07-24 i understand this, however, the album i will be calling from will be un-published, so i assume people who are not me (logged in), will not be able to see it? randomimage from a unpublished album? - sbillard - 2010-07-24 Did you perhaps look at the parameter definitions for this function? randomimage from a unpublished album? - easynow - 2010-07-24 $showunpublished=false woops randomimage from a unpublished album? - easynow - 2010-07-24 i have just realised that the function i am using currently isn't the randomimage one, it is the printHeadingImage($randomImage) function within the effervescence theme. this one crops and resizes the image before printing it. i have no idea how to hack up this function to call $randomImageAlbum. steep learning curve for me.. randomimage from a unpublished album? - acrylian - 2010-07-24 Replace one with the other... randomimage from a unpublished album? - easynow - 2010-07-24 working on that, thanks for you help, i will report back.. randomimage from a unpublished album? - easynow - 2010-07-24 sorted it! thankyou for your help. php is new to me. in case anyone else finds this useful: in my html
randomimage from a unpublished album? - acrylian - 2010-07-24 It is the album name (for subalbums it is toplevel/sublevel/...), not the title. This small difference is quite important! randomimage from a unpublished album? - easynow - 2010-07-24 woops yes of course! thankyou randomimage from a unpublished album? - easynow - 2012-08-17 wrong post sorry |