Hi,
I try modify the template file album.php to display popular images based on current album by following function:
<?php printPopularImages(5, '', FALSE, FALSE, FALSE, 0, '', 75, 75, TRUE, FALSE) ?>
However, it display the popular images for all album. So any function return current album for $albumfolder parameter?
Another question:
Is it possible to show page number for HTML title?
e.g.
http://www.hkgimages.com/pic/page/2/HTML page title show : Page 2 - Hong Kong Images
Many thanks in advance.
Comments
2. Yes, http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetCurrentPage (the doc is misleading, it gets the current page number)
Thanks again for your reply.
1. I still don't know how to pass the current albumfolder string to the function. Any function like getCurrnetAlbumfolder()?
string $albumfolder: folder of an specific album
I try using getAlbumId(), but got runtime error :
<?php printPopularImages(5, getAlbumId( ), FALSE, FALSE, FALSE, 0, '', 75, 75, TRUE, FALSE) ?>
Example: http://www.hkgimages.com/pic/weather/page/2/
2. It's working now. Thanks!
Beside, it's not related w/ zenphoto, but the popular div seems overlap with commentcontent div... any hints how to fix it?
Ref: http://www.hkgimages.com/pic/food/