Latest images under each main album

Hi, I'm using zenphoto version 1.2.3 with the HighSlide theme. I've searched the forum and haven't been able to find an answer to my question.

My gallery is at http://www.srkfanatic.net/fanart/

I have the Latest Images and Random Images at the bottom. What I'm trying to accomplish is to get the Latest Images to show after I click one of the main albums. For example, if I click on the 'Carol' album, I'd like for the Latest images just from Carol's album to show, not from the whole gallery.

I've tried editing album.php, adding this code:

<div class="latest">
<h2>Latest Images</h2>
<?php printLatestImages($number=24, $albumfolder='', $showtitle=false, $showdate=false, $showdesc=false, $desclength=40,$showstatistic='',$width=50,$height=50,$crop=true,$collection = true); ?>
</div>
<br clear="all" />


But my problem comes under $albumfolder=''. Is there a way to specify that I want the Latest Images from the current album that you are in, instead of specifying a certain folder name? So that if someone goes into the 'Reema' folder, they would get the Latest Images from only that album?

Comments

  • acrylian Administrator, Developer
    Besides you do not use the parameters of printLatestImages correctly, you are on the right track. This should do what you want:
    `<?php printLatestImages(24, $_zp_current_album->name, false, false, 40,='',50,50,true,true); ?>`
    This will print the latest images of the album on album.php or image.php you are currently in and of all of its subalbums. If you don't want the subalbums change the last `true` to `false`.
  • Acrylian, thank you so much. It worked. :)
  • arun Member
    How to show latest albums in all pages?. help me.
Sign In or Register to comment.