Member
Member
osakamojo   2008-01-12, 08:42
#1

Hi there. Great photo gallery, I really love it. Like many people though I am wanting to call thumbnails of gallery images from pages outside of the Zenphoto directory (linking to the gallery). I got the the latest images working great with this code (found after trawling the forums):

This gives me the latest 6 photos from the whole gallery.
This works fine, but I what I really want is to limit the latest images to those of a particular album. How would I go about doing that? It must be possible, I just don't know enough about programming in general to make it happen. Can anyone help me out?

Thanks!

Administrator
Administrator
acrylian   2008-01-12, 11:30
#2

That's way to complicated anyway. We already have a function called printLatestImages for this...Please see the functions guide on www.zenphoto.org/documentation.

Limiting the imageStatistic to an album is not possible at the moment, but sounds like a good idea. Since it's not that difficult to implement I will get this as an option into the next nightly build.

Member
Member
BertSimons   2008-01-12, 12:11
#3

I did this like this:

for the latest 6 in the album you are cuurently viewing:
`

Administrator
Administrator
acrylian   2008-01-12, 13:58
#4

FYI: I have submitted an update for getImageStatistic and its related functions that probably will be in one of the next svn.

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