Sorry if I'm posting something so obvious, but I have been searching the forum for the last 2 hours, and I haven't been able to find the answer.
I have album with 2 pages. The first page has 6 albums and second page has 2 albums. I would like to have only one page (gallery) with all 8 albums featured.
What files I need to edit and how?
Thanks a log!
Comments
Please help me if you can with more detailed explanation.
function normalizeColumns($albumColumns, $imageColumns) {
global $_zp_current_album, $firstPageImages;
$albcount = max(1, getOption('albums_per_page'));
if (($albcount % $albumColumns) != 0) {
setOption('albums_per_page', $albcount = ((floor($albcount / $albumColumns) + 1) * $albumColumns), false);
}
$imgcount = max(1, getOption('images_per_page'));
if (($imgcount % $imageColumns) != 0) {
setOption('images_per_page', $imgcount = ((floor($imgcount / $imageColumns) + 1) * $imageColumns), false);
}
$firstPageImages = normalizeColumns('2', '6');?>
I changed to
$firstPageImages = normalizeColumns('8', '6');?>
Generally it is not needed nor a good idea to modify the core functons. Doing so will cause you troubles when you upgrade Zenphoto versions.
So, the recommended solution for you would be to change the option on the options/theme tab.
In addition, I think you have probably mis-interpreted the normalizeColumns() function. The first parameter represents the number of columns there are for albums, the second represents the number of columns there are for images. Both these are determined by your theme CSS. In the case of the default theme, unless you have modified it, only two album thumbs are displayed per "line" so that number MUST remain 2.
NOTE: I had no problem changing the "Thumbnails per page".
What could be the issue here?
# Current gallery theme: Default
# PHP version: 5.2.13
# Graphics support: PHP GD library bundled (2.0.34 compatible)
# PHP memory limit: 96M (Note: Your server might allocate less!)
# MySQL version: 5.1.47