![]() |
|
getRandomImageAlbum problems - 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: getRandomImageAlbum problems (/thread-6979.html) |
getRandomImageAlbum problems - speckman - 30-04-2010 Hi. I'm using getRandomImageAlbum() and it seems like doing this with an album of only 1 image will not work. If I have two images in the album, it will only return the 2nd image. Has this been addressed already? Thanks, getRandomImageAlbum problems - Blue Dragonfly - 30-04-2010 Hi there, Yes, I believe it was I who found and fixed that a few weeks ago :-) You might need to upgrade to the nightly build, or if you prefer not to, I can post the specific 2 small code changes you'd need to make. getRandomImageAlbum problems - Blue Dragonfly - 30-04-2010 To patch your existing install, the file /zp-core/template-functions.php will contain two lines that read:
Change them both to read:
That should do it! getRandomImageAlbum problems - speckman - 30-04-2010 Thank you very much! |