This is the function you are looking for: http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomSizedImage
thanks for that,
but i cant seem to get it to work?
this is my page:
http://www.francescagenovese.com/zenphoto/index.php?album=test-4%2Felizabeth
i just want to set a maximum width to the sub album thumbnails only, so that whatever size they are - they do not get cropped but fit within the desired width. Thanks in advance.
Well, you need to learn a little about php if you want to customize. You have found the right place but please read this first
http://www.zenphoto.org/2009/03/theming-tutorial/
http://www.zenphoto.org/2008/04/how-to-read-the-zenphoto-functions-guide
We don't have the user guide section on our site for nothing...:-)
Well, you are right, sorry... You need to use http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomAlbumThumbImage (but you could have found that if you had searched .:-))
Top level albums are shown on index.php and subalbums on album.php, so change the part on that theme file.
thanks but i dont think thats the answer either, as i understand it that is for creating custom album thumbs,( i tried that and it worked) but i need to make a custom sub-album thumb only which seems to have a different function:
is there such a thing as a print"custom"imagethumb ?
can it be done?
We probably should define a few terms first:
Album thumb: A thumbnail that represents an album (index.php)/subalbum (album.php).
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomAlbumThumbImage
Image thumb: A thumbnail that represents an image in an album/subalbum (image.php)
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomSizedImage
So what do you actually mean?
ye sorry for the confusion, its a bit tricky to explain, basically i want to set a max width (and not have them cropped) for the thumbs on this page:
http://www.francescagenovese.com/zenphoto/index.php?album=test-4%2Felizabeth
the thumbs on this page are thumbs for images in a sub-album, I want the thumbs within albums to remain the same. I only want to customise the sub-album thumbs.
does this make sense?
Ok, it that case you want to modify the image thumbs within a specific subalbum, not the subalbum thumbs..:-) Regarding max width: Generally uncropped thumb size is set to the longest side. There are several options for that.
If max width should not be the same as the max height, you need to use the customsizemaxspace functions. See the functions guide for details.
If your structure is just toplevel albums without images but subalbums that then have images you only need to change the images within the next_image loop on album.php.
If you have some toplevelalbums with images, you need to add a check either for a specific album folder name or generall if there is a parent album to album.php to process only image thumbs in subalbums but not top level albums.
Functions for parent check are documented on the functions guide.