Member
Member
enes   2007-09-24, 17:05
#1

Is it possible to have two different sizes for thumbnails? For example one size for index page and the other for albums.

Administrator
Administrator
acrylian   2007-09-24, 17:13
#2

Yes, it is. You have to edit your theme to use the printCustomAlbumThumbImage() instead of printAlbumThumb()

Take a look at the template functions guide here: http://www.zenphoto.org/trac/wiki/TemplateFunctionsGuide

Member
Member
thinkdreams   2007-09-24, 17:15
#3

You can pass multiple sizes through the thumbnail function printCustomAlbumThumbImage in template-functions.php. The function will give you a point of reference as to what parameters it takes. That way, you can use that function in your theme to display thumbs in whatever size you wish, and then have differing sizes in each index.php or album.php page. Does that make sense?

Member
Member
enes   2007-09-24, 17:44
#4

Wow thats it, and much more, great, thanx guys

Member
Member
LpSoleil   2008-05-13, 18:20
#5

Again, i need this function but really don't know how to put it in place. I will have 3 different thumbnail size. 1 for Index.php, 1 for Album.php, 1 for Image.php.

I went to template-functions.php and try to figure it out.. my poor php skills does'nt help me. Can you ?

Thank you

Administrator
Member
Member
LpSoleil   2008-05-13, 19:04
#7

Thank you,
well, the closest solution I found is :
`

Suivant

`

That give me the correct dimension but I'm still unable to get the next image to show as the Thumbnail for the next image...it present the same image as the main one. (in image.php)

Administrator
Administrator
acrylian   2008-05-13, 19:52
#8

printCustomSizedImage does only work within a next_image main loop or directly as a repacement for the one sized image on image.php. getNextImageThumb() itself returns url of the thumb of the next image.

Member
Member
LpSoleil   2008-05-13, 21:39
#9

Well, i will have to dig deeper in the understanding of php and functions. Gracias Acrylian! For all your anwsers. To me and anyone!

Member
Member
LpSoleil   2008-05-13, 23:09
#10

Now, I found this code to display the entire list of Thumbnail...
what is the trick to do or to translate to php :

loop while currentImage = +1 ?

`

" alt="" title="">

`

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