im trying to create a custom image thumb size with no avail. I have found the information on how to add a custom album thumb which worked fine, but i cannot see to do the same for an "image thumb" - any sugestions would be much appreciated.
<?php printImageThumb(getImageTitle()); ?> can i customise this?
Comments
but i cant seem to get it to work?
this is my page:
http://www.francescagenovese.com/zenphoto/index.php?album=test-4/elizabeth
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.
I currently have this:
" title="<?php echo getImageTitle();?>"> <?php printImageThumb(getImageTitle()); ?>
so i replace with something like:
" title="<?php echo getImageTitle();?>"> <?php printCustomSizedImage( string $alt, int $size, [int $width = 221], [int $height = NULL], [int $cropw = NULL], [int $croph = NULL], [int $cropx = NULL], [int $cropy = NULL], [string $class = NULL], [string $id = NULL], [bool $thumbStandin = false] ); ?>
i just keep getting errors, not sure i have this correct??
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...:-)
I used the custom album thumb function which worked a treat, what i need to know is - can you do the same to a subalbum thumb?
i dont think the link you sent me to is the one i need, you directed me to the printCustomSizedImage function, which i believe is for the image.php page. I need to generate a custom subalbum thumb,
is this possible does anybody know?
Top level albums are shown on index.php and subalbums on album.php, so change the part on that theme file.
<?php printImageThumb(getImageTitle()); ?>
is there such a thing as a print"custom"imagethumb ?
can it be done?
1. Album thumb: A thumbnail that represents an album (index.php)/subalbum (album.php).
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomAlbumThumbImage
2. 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?
http://www.francescagenovese.com/zenphoto/index.php?album=test-4/elizabeth
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?
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.