Forums » Customize

Thickbox Issues.

Dean
UNITED KINGDOM
2008-08-13 10:47:08
 

Right, I would like to start by apologising for creating a new thread, but I was unable to take what I needed from the various other thickbox related issues.

I have two issues.

Firstly I am struggling to regulate the size of the thumbnail, I wish to have all thumbnail images at 50x50 regardless of original proportions.

I have tried to use... as found in another post.

#divThumb {
width: 100px;
height: 100px;
overflow: hidden;
}

How ever I've come unstuck here.

Secondly I would like to confine the content size of the thickbox thumbnails so as to create a dense contact sheet.

I have attempted to do so using content margins on my style.css but I feel this is not adequate enough and if anyone has any suggestions they will be welcomed.

Thanks in advance, Dean

snoep
GERMANY
2008-08-13 11:40:47
 

Hi Dean,

First: the ThickBox-Plugin iterates through all thumbs to find the smallest height, because in the backend you only control the max. dimension, wether it is height or width.

So you could copy the plugin, rename it and then get rid of the part that finds the smallest height. then find the line where the thumbs are put together, and change height='$lowest' to height='50'. Then add width ='50' right next to it.

The width of the content div can also be controlled by the dynamic css settings at the end of the plugin.
Add something like
#content { width: 300 px};
to that section of the php file.

Good luck!

Dean
UNITED KINGDOM
2008-08-13 11:55:54
 

That worked a treat thank you, brillo pads!

Also thanks for explaining it clearly, take care !

Dean
UNITED KINGDOM
2008-08-13 12:07:53
 

Actually I stand corrected, having issues with the content width (#content { width: 300 px};).

Originally it appeared to have worked in the preview but once published and when i added more photo's to double check it appeared it did not work. :(

snoep
GERMANY
2008-08-13 15:50:24
 

Could you show your site?

snoep
GERMANY
2008-08-13 15:52:31
 

Could you show your site?

Vaska A
I WROTE THIS
2008-08-13 15:56:45
 

Twice for emphasis! ;)

snoep
GERMANY
2008-08-13 15:59:40
 

Haha! Yup, that was a bad reloader, I think ;)

Dean
UNITED KINGDOM
2008-08-14 12:11:06
 

Sorry for the late reply !

http://www.deanbreaker.com/index.php?/photography/collection-01/

I have initially achieved what i wanted, but i had to restrict the content of all the pages via the style.css, I was hoping to do so by the plugin alone so im not limited for future pages.

But for the time being this is adequate enough :)

Showing 1 - 9 of 9 posts in Forum > Customize > Thickbox Issues.
 

You need to be logged in to post.