Member
Member
cunami   29-06-2008, 15:28
#1

Hi,

in album.php template file, while iterating with "while(next_album())" - is there a way to get the album creation date? The important here is that I want to get date, when album was created/uploaded - but not when images in it were created. I do uploads of various albums, which were taken in different times, but on albums list I would like to see "NEW!!!" written to latest uploaded albums, which upload dates are not older than X days...

Is there an easy way to implement such feature in templates or I need to develop a plugin for this functionalitty.

Thanks in advance!
Cunami

Member
Member
sbillard   29-06-2008, 16:15
#2

There is an album date associated with each album. It depending on options it may be the date the album was last changed or it may be the date of the latest image in the album. You can retrieve this date with the function getAlbumDate() within the album loop. You can also get the mtime of the album with the following code $mtime = filemtime(getAlbumFolder()); mtime is the date/time of the last change of the folder. Unix systems have no 'creation datesomtime` is the best approximate.

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