ZenphotoCMS Forum
How to implement recent albums? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: How to implement recent albums? (/thread-3043.html)



How to implement recent albums? - invarbrass - 2008-06-05

Hi, I'd like to show the albums in this way:

1. Recent albums - shows the albums uploaded within the past n days, sorted by upload date.


2. Archive - contains all albums, old or recent. Sorted by upload date.


zp has support for #2, via the archive functions.

But how to implement #1? Can it be done without modifying the code, like altering the themes?

Thanks




How to implement recent albums? - acrylian - 2008-06-05

We have functions for #1 as well.
http://www.zenphoto.org/documentation-official/zenphoto/_plugins---image_album_statistics.php.html

And the nightly has a new function called printlatestupdatedalbums()




How to implement recent albums? - invarbrass - 2008-06-06

thanks, i'll take a look at the svn version




How to implement recent albums? - eddiejanzer - 2008-06-17

Am I understanding that "sort albums by date" will not sort in reverse, so that recent albums uploaded show at the begining?




How to implement recent albums? - sbillard - 2008-06-17

Sort by date has the option of sorting Decending or ascending.




How to implement recent albums? - eddiejanzer - 2008-06-17

so I thought, I had some work done to customize and now it does not work... It had previously, or so I thought. Confirmed




How to implement recent albums? - klimas - 2009-10-14

Hi, could you please advise me how to use printlatestupdatedalbums() to snow e.g. 5 random/latest images from 10 latest albums? I see function for no. of albums but not function for showing more than one image. Thanks, you are doing brilliant work! yabasta.cz KLIMAS




How to implement recent albums? - acrylian - 2009-10-14

You first have to enable the image_album_statistics plugin and then you have place that function on your theme pages where you want it to display. That function shows only the album thumb of the albums, this is as coded. If you want to show more images per latest album, you have to code your own function using the "get" function of that plugin.