Member
Member
Darkness   2012-07-20, 18:42
#1

I'm trying to use printlatestimages in album.php. Having a bit of trouble trying to get printlatestimages to display the latest images from the current album only. I basically need to get the folder name of the current album. I tried but it always returns empty no matter where I put it. Printalbumdata on the other hand works. But I need to include it in the function instead of echoing it.

Administrator
Administrator
acrylian   2012-07-20, 19:32
#2

You have to use the already setup global for the current album. Please review the object model tutorial.

Member
Member
hkdigit   2012-07-21, 10:33
#3

Hi Darkness,

Did you enable image_album_statistics plugin?

http://www.zenphoto.org/documentation/plugins/_zp-extensions---image_album_statistics.php.html#functionprintLatestImages

Beside, not sure if following return current album name, please try:

echo $album->name;

Hope this help.

Administrator
Administrator
acrylian   2012-07-21, 10:55
#4

$album will not work unless setup manually use the current album global as described on the tutorial.

Member
Member
Darkness   2012-07-22, 09:06
#5

I got it working using:

printLatestImagesbyDate(6, $_zp_current_album->name);

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