![]() |
|
Random Images from 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: Random Images from album (/thread-10080.html) |
Random Images from album - deep - 2012-06-13 Hi, I am trying to print random images from my 4 Albums and my code work well. But I want to print only 6 or more images randomly, how can I do this thing please? Here my code to print images each refesh:
Thank you Random Images from album - acrylian - 2012-06-13 Your code is not escaped correctly so we cannot review it. In any case you need to get familiar with the object model. Zenphoto 1.4.3's (and therefore the beta) has a random images options within the image_album_statistics function (the base getImageStatistics() has but there is no wrapper function itself). Random Images from album - deep - 2012-06-13 Hi, Random Images from album - acrylian - 2012-06-13 From what I can see you cannot use the next_album loop. Use the object model and a custom loop or use the functions to create "current" images and albums. Random Images from album - deep - 2012-06-13 Hmm, my html code is in the while loop... Random Images from album - acrylian - 2012-06-13 which is the next_album loop which is why it does not work as you expect. There is also a random image from an album function. Please see the doc of the template functions. Random Images from album - deep - 2012-06-14 Hi, |