![]() |
|
STOPDESIGN theme NO. of 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: STOPDESIGN theme NO. of ALBUMS (/thread-6006.html) |
STOPDESIGN theme NO. of ALBUMS - klimas - 2009-10-18 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? STOPDESIGN theme NO. of ALBUMS - acrylian - 2009-10-18 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 |