Member
Member
Reema82   2009-02-20, 21:21
#1
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?
Administrator
Administrator
acrylian   2009-02-21, 11:04
#2
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`.
Member
Member
Reema82   2009-02-21, 18:09
#3
Acrylian, thank you so much. It worked. Smile
Member
Member
arun   2009-03-06, 16:48
#4
How to show latest albums in all pages?. help me.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.