Member
Member
klimas   2009-10-18, 15:36
#1
I use the STOPDESIGN

1) and on the homepage there is No. of Galleries but it shows only number of Top-tree Galleries. I would like to show No. of all albums (the same as in admin page). I checked the code but it seems to me that in both cases is used getNumAlbums. How should I adjust the code to show No. of all albums?

<?php $albumNumber = getNumAlbums(); echo $albumNumber ?>

2) how can I adjust the code to show me on the homepage Recently Updated Albums instead of Top-tree Galleries?
Administrator
Administrator
acrylian   2009-10-18, 16:14
#2
1) Using this: `$_zp_gallery->getNumAlbums(true);`
http://www.zenphoto.org/documentation/classes/Gallery.html#methodgetNumAlbums

2) By using the image_album_statistics plugin's function for that:
http://www.zenphoto.org/documentation/plugins/_plugins---image_album_statistics.php.html#functionprintLatestUpdatedAlbums
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.