Member
Member
deep   2012-06-13, 15:42
#1

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:

            " class="photo" >

Thank you

Administrator
Administrator
acrylian   2012-06-13, 16:09
#2

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).

Member
Member
deep   2012-06-13, 18:00
#3

Hi,
Currently I'm using Zenphoto 1.4.2.4, can you tell me what's wrong with this code?

Administrator
Administrator
acrylian   2012-06-13, 18:12
#4

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.

Member
Member
deep   2012-06-13, 18:39
#5

Hmm, my html code is in the while loop...

Administrator
Administrator
acrylian   2012-06-13, 19:09
#6

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.

Member
Member
deep   2012-06-14, 12:44
#7

Hi,
Ok I will see soon.
Thank you

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.