In the admin panel options/theme options the "standard options" including albums/images per page, thumb size, crop width/height size are apparently applied to all themes, regardless of individual theme differences in thumbs sizes and thumbs per page.
Why are "These image and album presentation options standard to all themes"?
I find this behavior very odd. Would it not be more sensible to make the theme options specific to each theme? Then we could simply select one theme or another and not have to also change the above theme parameters for each theme, each time we switch a theme.
For instance right now, if I have two themes, one with thumbs sized 100x100 and 12 images per page, and the other with thumbs 80x80 and 20 images per page, each time I switch my theme from the first one to the second one I also have to change the "standard options", otherwise my theme does not display correctly. On the other hand, if the theme options would apply specifically to each theme, then I would not have this problem.
Would it not make more sense to make "theme options" specific to themes?
Comments
Anyway, you can do this purely with your theme directly if that requires special settings. You can override all options within them so that you will not have to think of changing options everytime.
You can override the thumbs aka albums per page with this `<?php setOption("albums_per_page",<number>,false); ?>` for example.
isn't the NormalizeColumns already supposed to override the thumbs per page set in the admin panel?
Actually that is why you should try the nightly. If we don't get enough testings of that bugs can go into 1.2.3 again. That will help us. Thanks.
normalizeColumns is an actually optional helper function that helps to equal display if you have albums with images and subalbums. You don't need to use that if you don't have both in your albums. Please read the lengthly explanation on the functions guide for that.
setOption("albums_per_page",20,false); normalizeColumns(5, 4);
and
printCustomAlbumThumbImage(getAlbumTitle(),null,80,80);
This time it worked for the index page.
But I did not find the similar function to print custom sized thumbs for the album.php page, something like printCustomImageThumb(getAlbumTitle(),null,80,80).
So I tried the only thing that seems similar in the functions guide - printCustomSizedImageThumbMaxSpace() but it generated an undefined function error.
normalizeColumns is actually only needed if you have albums that contain subalbums and images. If you only have images OR subalbums in your albums you actually can just remove that function.
The maxspace functions contain bugs in 1.2.2, you need to use the nightly build to use them.
setOption("albums_per_page",12,false);
<?php printCustomSizedImage(getImageTitle(),null,100,100); ?>
It did print thumbs sized 100x100, but 20 of them per page (as set in admin), not 12, as requested in the theme.
This is the code from albums.php: On the other hand, the setOption("albums_per_page",12,false);
printCustomAlbumThumbImage(getAlbumTitle(),null,100,100);
used on the index.php page did produce a page of 12 thumbs.
What I'm wondering is if there is a way to hide the Standard options that do not apply to the theme since some of them may not be used by the current theme.
This would decrease the likeliness for the user to get confused by setting irrelevant settings that seem to make no difference and leading to their frustration and complete waste of time setting them to begin with.
It'd probably be great to have this as a feature to the themeoptions.php file since that's where the Custom theme options are added.
Anywho, just a thought....