ZenphotoCMS Forum
Don't Display Thumbnails If There's Only One - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Don't Display Thumbnails If There's Only One (/thread-1724.html)



Don't Display Thumbnails If There's Only One - senne - 2007-10-24

Hi,

I'm looking for a function which makes it possible to deactivate thumbnails if there's only one image in that particular album. For example: This is an album with 3 pictures: http://www.benvandenberghe.com/photo.php?album=empty-cages- The thumbnails fit the design. But this is an album with only 1 picture: http://www.benvandenberghe.com/photo.php?album=whiteboy- The thumbnail looks kinda stupid.

Is it possible to implement some code that applies to my wishes? (i'm a php-rookie)

Thanks in advance,
Senne




Don't Display Thumbnails If There's Only One - aitf311 - 2007-10-24

That sounds like a great feature, you should post it to trac: http://www.zenphoto.org/trac/newticket




Don't Display Thumbnails If There's Only One - acrylian - 2007-10-24

Senne: You can try this. Locate the image loop on album.php and modify it like this:

`

// Part one of the modification

">

// part two of the modification`




Don't Display Thumbnails If There's Only One - senne - 2007-10-25

This works great: http://www.benvandenberghe.com/photo.php?album=whiteboy-

Thank you so much acrylian!