Hi,
My problem: I can't seem to change the size of the paged thumbnails. They are stuck at 40x40 pixels. I want them to be 120x120, and preferably in the proportions of the original image
I installed: Zenphoto 1.2.3 [3688]
zenpage v1.1
I'm using the default zenpage theme, with the "paged_thumbs_nav v1.0.5.3" plugin enabled.
My PHP is in Safe Mode, because I don't know how to turn that off.
Options -> Plugin options -> paged_thumbs_nav
My settings are:
`Crop: off, height: 120 px, width: 120 px, thumbs per page: 3`
These settings don't have any effect. The only thing I can seem to change here that works is turning the counter on/off.
zp-core/plugins/paged_thumbs_nav.php:
`
function pagedthumbsOptions() {
setOptionDefault('pagedthumbs_imagesperpage', '10');
setOptionDefault('pagedthumbs_counter', '');
setOptionDefault('pagedthumbs_prevtext', '« prev thumbs');
setOptionDefault('pagedthumbs_nexttext', 'next thumbs »');
setOptionDefault('pagedthumbs_width', '100');
setOptionDefault('pagedthumbs_height', '100');
setOptionDefault('pagedthumbs_crop', 'TRUE');
`
This code doesn't seem to have any effect.
Options -> Theme options
My settings are:
`Thumb size: 200`
This works for the thumbs when I view an album, but not for the paged thumbs. I understand this isn't meant to, but I'm mentioning this just in case.
themes/zenpage-edit/Image.php:
`<?php if(function_exists("printPagedThumbsNav")) { echo "<div id='pagedthumbs'>"; printPagedThumbsNav(6, FALSE, gettext('« prev thumbs'), gettext('next thumbs »'), 40, 40, 40, TRUE); echo ""; } ?>`
I noticed I can change the `40`'s into `50`'s. But when I try to make them `60` I get the following error when trying to view an image:
`Parse error: syntax error, unexpected $end in (..)/zenphoto/themes/zenpage-edit/image.php on line 153`
When I change the `60`'s back to `40`'s and save image.php, I still get an error. I have to re-upload a back-up version of image.php to make it work again.
I believe editing the style.css file doesn't help either.
I looked around at the forum for the Maxspace function, but I don't know exactly where to implement that. I'm not very good with PHP.
Thanks a lot in advance! I looked around the forum and help files, but can't seem to fix this.
Comments
`printPagedThumbsNav(6, FALSE, gettext('« prev thumbs'), gettext('next thumbs »'), 40, 40,TRUE);`
If you want to use the plugin option size settung you have to remove the last 3 values otherwise they are overriden. If you set cropping to false the first one is used as size (longest size or what you have set on the image configuration tab).
Hope that helps.
I deleted all the values, so I can set everything in the plugin options.
`printPagedThumbsNav();`
Maybe when someone hits the "save" button in the plugin options, this could delete those lines automatically? I don't know if that's even possible, but just as a suggestion.
Thanks again for the help.