Member
Member
pstride   2009-03-09, 12:33
#1

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.

can i customise this?

Administrator
Administrator
acrylian   2009-03-09, 14:16
#2

This is the function you are looking for: http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomSizedImage

Member
Member
pstride   2009-03-09, 15:48
#3

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.

Administrator
Administrator
acrylian   2009-03-09, 16:27
#4

You have to use the maxsize variants of the customsize functions then.

Member
Member
pstride   2009-03-09, 17:18
#5

sorry, im no php person but am battling through.

I currently have this:

" title="">

so i replace with something like:

" title="">

i just keep getting errors, not sure i have this correct??

Administrator
Administrator
acrylian   2009-03-09, 17:41
#6

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...:-)

Member
Member
pstride   2009-03-09, 17:50
#7

done all that, thats why im here. Last resort time, can anyone help me out here? Is this even possible?

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?

Member
Member
pstride   2009-03-10, 12:05
#8

hi acrylian,

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?

Administrator
Administrator
acrylian   2009-03-10, 12:54
#9

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.

Member
Member
pstride   2009-03-10, 21:08
#10

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?

Administrator
Administrator
acrylian   2009-03-10, 22:08
#11

We probably should define a few terms first:

  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?

Member
Member
pstride   2009-03-11, 11:10
#12

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?

Administrator
Administrator
acrylian   2009-03-11, 11:39
#13

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.