2010-08-11, 22:19:03
daguy Wrote:anyone know how to adjust the thumbnail size and the 'box display size' for new gallery 2.5???
I think I've posted this before, but either way. You can go to line 559 of squareit-gallery.php
Code:
$gal .= '<a href="'.$SITEURL.'data/uploads/'. $image .'" title="'. $sqr_captions[$key] .'" '.$reltype.$styleclass.'><img alt="'.$sqr_captions[$key].'" src="'.$SITEURL.'admin/inc/thumb.php?src='. $image .'&dest=../../'.GSG_RELFOLDERPATH.'thumbs/thumbmed.'. $image .'&x=125&y=125&f=1" class="sqr_img" /></a>';
and modify
x=125&y=125
to the new thumb size.
After this you need to delete all the images in the thumbs folder inside the gallery plugin.
Then you need to change some of the CSS
Code:
.sqr_image_gallery li{
float: left;
padding:3px;
border:1px solid #C7C7C7;
min-height: 125px;
margin:7px 14px 7px 0px;
background-color:#FFF;
list-style-type:none !important;
}
.sqr-thumb-cont{
width:100%;
height:125px;
background-color:#FFF;
text-align: center;
}
Change min-height in .sqr_image_gallery li and height in .sqr-thumb-cont
to the new size.
I've been wanting to do this as a setting in the plugin, but I just haven't had the time to get to it.