• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Larger Thumbnails for Album
PostPosted: Tue Oct 31, 2006 4:12 pm 
Offline
New Member

Joined: Tue Oct 31, 2006 4:09 pm
Posts: 5
I cannot figure out how to make album create larger thumbnails - does anyone know where I can make this change?


Top
 Profile  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Tue Oct 31, 2006 4:54 pm 
Offline
Power Poster
Power Poster

Joined: Tue Dec 13, 2005 10:50 pm
Posts: 1415
Location: Finland
hmm, I think that album uses thumbnails created by imagemanager... so it might lack the option of setting thumb sizes


Top
 Profile  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Sat Jan 06, 2007 10:30 am 
Did you know that there is a config.inc.php in lib/filemanager/ImageManager? That is where you will need to change the following setting (shown already changed).

Code:
/*
  Thumbnail dimensions.
*/
$IMConfig['thumbnail_width'] = 180;
$IMConfig['thumbnail_height'] = 180;


JohnR


Top
  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Sat Jan 06, 2007 5:00 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 10682
Location: Arizona
Actually you can control it with the CSS, it's already set to show them bigger than they are and you can increase it here...

.thumb img, .thumb a img, .thumb a:link img{ /* Set link formatting*/
width: 150px; /* Image width*/  standard thumbs are 96px default, in album CSS is 100px, bump it up till you like the results, note it can start to pixalate(?sp) the images if set too large
eight: 100px; /* Image height*/  I don't use this as images can be taller than they are wide, increasing the width w/o increasing the height here will let them increase their height accordingly

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get it's parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/

Image


Top
 Profile  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Sun Jan 07, 2007 10:57 am 
Hm, but I think that will just scale the small thumbs. To have the ImageManager generate larger thumbs in the first place, you need to change the settings I noted above.

You also do need to modify the stylesheet to get the thumbnails the size you like. I simply uncommented the width and height eg
Code:
.thumb a
{
   display:block;
   /* height:72px; */
   /* width:96px; */


Here is a site where I used Album with larger thumbnails:

http://www.violinsbythesea.com/instruments/violins.html

For this site it's OK for ImageManager to generate big thumbs for all images.


Last edited by JohnR on Sun Jan 07, 2007 11:00 am, edited 1 time in total.

Top
  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Sun Jan 07, 2007 1:25 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 10682
Location: Arizona
Yes it can be set in the .php but for some it's not a very comfortable thing to do and they may not want all thumbs to be larger...

BTW nice Violins, your link for close in the pop up image has the default blue underline for hover...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get it's parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/

Image


Top
 Profile  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Thu Feb 15, 2007 9:23 pm 
I can´t get the bigger thumbnails to work ??? I have set them to 200 in config.inc.php in lib/filemanager/ImageManager and uncommented the width and height in the album stylesheet. Thumbs show to 200 px in imagemanager, but in the album they stay small as before the changes. Here´s the album: http://www.decker4u.de/index.php?page=romania
Thanks for some help - I´m new to this cms but am impressed by its flexibility.

@JohnR: How did you create this violin site - I would like to have the album function aka picture popups in content pages too.

Thanks,
Tom


Top
  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Fri Feb 16, 2007 3:45 am 
Bigger thumbnails solved: The variable "autothumbnailsize" in Thickbox-with-next-prev-links was responsible for this effect. Commented it out, had bigger thumbs.


Top
  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Mon Apr 30, 2007 2:50 pm 
How do you get to the CSS for the albums? I cn't find it under modules/Albums aywhere.


Top
  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Tue May 01, 2007 11:13 am 
Offline
Power Poster
Power Poster

Joined: Sun Mar 19, 2006 8:46 pm
Posts: 1202
Location: the Netherlands
fuquam wrote:
How do you get to the CSS for the albums? I cn't find it under modules/Albums aywhere.

Look under Layout » Stylesheets.

From the Album module help:
Quote:
An "Album Template Stylesheet" stylesheet for the default, ImageGallery, and Thickbox templates is installed with the module. This stylesheet is deleted when the module is uninstalled and may be overwitten by an upgrade, so you might want to use a copy if you modify it. Attach the stylesheet to the page template used.

To attach the stylesheet to your template:

  1. Go to "Layout -> Templates"
  2. Click the CSS icon (Attach Stylesheet to Template) button to the right of your template
  3. Choose "Album Template Stylesheet" from the drop-down menu.
  4. Click the "Add a Stylesheet" button.


Regards,
D


Top
 Profile  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Thu Jun 14, 2007 3:37 pm 
Offline
Forum Members
Forum Members

Joined: Wed May 30, 2007 4:56 pm
Posts: 34
The stylesheet for the album isnt under layout stylesheets
neither is it when i follow the instructions to attach it to a template!


Top
 Profile  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Thu Jun 14, 2007 6:59 pm 
Offline
Forum Members
Forum Members

Joined: Wed May 30, 2007 4:56 pm
Posts: 34
Hi,

I'm trying to get bigger thumnails. I set them to 140px by 140px in config.inc.php but no luck, for some reason they are still getting set to a height less than that!

see http://london.nswebhost.com/~templest/index.php?mact=Album,m2,default,1&m2albumid=1&m2returnid=51&page=51


Top
 Profile  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Sun Jan 06, 2008 9:19 pm 
Offline
New Member

Joined: Thu Dec 13, 2007 8:55 pm
Posts: 1
I can't my thumbnails larger I changed the config, and then I changed the css for the page and they are not any bigger. Any advice I really like the violin site btw. I know this is an old post just having problems.


Top
 Profile  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Sat Feb 09, 2008 12:29 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Fri Feb 08, 2008 2:21 am
Posts: 14
Location: Hawaii
I've just finished configuring Album to handle larger thumbnails and thought I should share what I had to do as it took way longer than I expected to find my way to this point.

First I applied JohnR's advice:
Alter lib/filemanager/ImageManager/config.inc.php:

Code:
/*
  Thumbnail dimensions.
*/
$IMConfig['thumbnail_width'] = 145;
$IMConfig['thumbnail_height'] = 145;


That fixed up Image Manager to create larger thumbs for me but they were still displaying small in my Albums - Album program was resizing my thumbnails by setting a height attribute in the img tag on the page display. I could have fixed this by removing the autothumbnailsize references completely from my tpl files (module/Album/templates/db/*.tpl) but I wanted my rows to be uniformly scaled so:

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

Code:
// Make tall thumnails fit in box
   if ($picture->thumbnailheight > 108)
   {
      $picture->autothumbnailsize = ' height="108"';
   }


That was working but it seemed to only be working for 1 of my albums. After checking the database table cms_module_album_pictures I found I had to manually change some height/width values for items in the album that had already been set before I started changing the thumbnail sizes. But there we go - working larger thumbnails!
Cheers!
Alane


Top
 Profile  
 
 Post subject: Re: Larger Thumbnails for Album
PostPosted: Thu Jan 28, 2010 10:45 am 
Offline
Forum Members
Forum Members

Joined: Thu Apr 12, 2007 11:16 am
Posts: 88
kilauea wrote:
I've just finished configuring Album to handle larger thumbnails and thought I should share what I had to do as it took way longer than I expected to find my way to this point.

First I applied JohnR's advice:
Alter lib/filemanager/ImageManager/config.inc.php:

Code:
/*
 Thumbnail dimensions.
*/
$IMConfig['thumbnail_width'] = 145;
$IMConfig['thumbnail_height'] = 145;


That fixed up Image Manager to create larger thumbs for me but they were still displaying small in my Albums - Album program was resizing my thumbnails by setting a height attribute in the img tag on the page display. I could have fixed this by removing the autothumbnailsize references completely from my tpl files (module/Album/templates/db/*.tpl) but I wanted my rows to be uniformly scaled so:

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

Code:
// Make tall thumnails fit in box
   if ($picture->thumbnailheight > 108)
   {
      $picture->autothumbnailsize = ' height="108"';
   }


That was working but it seemed to only be working for 1 of my albums. After checking the database table cms_module_album_pictures I found I had to manually change some height/width values for items in the album that had already been set before I started changing the thumbnail sizes. But there we go - working larger thumbnails!
Cheers!
Alane



Thnx! your solution it solved the problem!
However...the editing the database is not necessary if you use the following code:

Code:
// Make tall thumnails fit in box
   if ($picture->thumbnailheight > 0)
   {
      $picture->autothumbnailsize = ' height="0"';
   }


This way it takes the actual height and width of the thumbnail...no matter what the size is.


Last edited by r00ki3 on Thu Jan 28, 2010 1:33 pm, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner