Documents >> Developent & Code >> CMSMS Larger Thumbnails

Pages

CMSMS Larger Thumbnails
C#, Threadded Form Write
CMSMS Image DropDownBox

CMS Made Simple larger Thumbnails in Albums

How I made the larger thumbnails in my galleries.

Edit the following file ind your cmsms dir:

/filemanager/ImageManager/config.inc.php

In this file, you edit the thumbnail dimensions.

Thumbnail dimensions.*/

$IMConfig['thumbnail_width'] = 96;
$IMConfig['thumbnail_height'] = 96;

/*

I use the following setting.

Thumbnail dimensions.*/

$IMConfig['thumbnail_width'] = 150;
$IMConfig['thumbnail_height'] = 150;

/*

To make thumbnail appear larger in the albums, I also edited the following file, to get the autothumbnailsize function to return a larger value.

I editied the following in the follwing file:

/modules/Album/classes/module/class.Album.php

if ($picture->thumbnailheight > 100)
{
     $picture->autothumbnailsize = 'height="100"';
}
else
{
     $picture->autothumbnailsize = ' height="'.$picture->thumbnailheight.'"';
}

A thing to notice.... When you change the size of thumbnails, remember to readd the images to your albums, since it stores the dimensions of the thumbnails to be used when displaying them. (I used quite some time debugging on this.)


^ Top | Copyright © 2007 Afterschool.dk| css | xhtml