Member
Member
joshimedia   22-03-2006, 10:08
#1

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!

Member
Member
joshimedia   23-03-2006, 01:33
#2

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]";

}`

Junior Member
Junior Member
Deevad   07-04-2006, 16:07
#3

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

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