Member
Member
jerzy   26-03-2016, 11:12
#1

Hello, I'm looking for a way to put last updated album on index page, but album will be opened, with thumbnails with printCustomSizedImage() function. Is it possibile? At this time I wrote a piece of theme for showing albums where thumbnails are integrated with the script of touching devices, sample is here: http://mimam.net/slowacja/
I am very happy with Zenphoto, it is very fast and flexible, thanks for such a great thing!

Administrator
Administrator
fretzl   26-03-2016, 12:41
#2

Instead of the next_album() loop on index.php you could use something like:

`

">

`

Member
Member
jerzy   26-03-2016, 13:00
#3

Yes, this is just what I was looking for! thank you very much!

Member
Member
jerzy   27-03-2016, 21:48
#4

Once again, sorry - how to get only title from getAlbumStatistic() ?
I've found something like this, but it call thumbnail only..

Administrator
Administrator
acrylian   27-03-2016, 21:54
#5

getAlbumStatistics() returns an array of album objects. So:
$latestmtimealbum = getAlbumStatistic(1, "latest-mtime"); echo $latestmtimealbum[0]->getTitle();
http://www.zenphoto.org/news/zenphotos-object-model-framework/

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