ZenphotoCMS Forum
Album thumbnail size - 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: Album thumbnail size (/thread-383.html)



Album thumbnail size - joshimedia - 2006-03-22

I know you can resize the album thumbnail but I just don't know how! If I edit thumb_size in config.php it resizes my image thumbnails but not my album thumbnails.

I know it's possible because it's in the stopdesign theme!

Can anybody help me out?

Otherwise, loving Zen Photo so far!




Album thumbnail size - joshimedia - 2006-03-23

OK I worked out a fairly simple solution.

Add the following lines of code:

CONFIG.PHP

`$conf['album_thumb_crop'] = true;

$conf['album_thumb_crop_width'] = 85;

$conf['album_thumb_crop_height'] = 85;

$conf['album_thumb_size'] = 100;`

TEMPLATE-FUNCTION.PHP

Scroll down until you find the printAlbumThumbImage function and add the line:

`function printAlbumThumbImage($alt, $class=NULL, $id=NULL) {

echo "[img][/img]";

}`




Album thumbnail size - Deevad - 2006-04-07

I changed a bit the code, cause this one you gave don't work. But the method is good, and may be it's this forum who kill this symbol "/" needed.

All the part here :
`

function printAlbumThumbImage($alt, $class=NULL, $id=NULL) {

echo "";

`

Cheers,
-David