View Full Version : About Photoblink Thumbnails Caption : how to ?
Diablo_Gil
02-13-2007, 08:16 AM
Dear All,
First, I'd like to apologize for my awful english. Then, as I'm a total newbie in coding HTML, PHP and using variables, I didn't understand how to modify the caption size of this excellent addon Photblink Thumbnails. I speak about the caption which appears under the thumbnails when you mouseover. I looked for through the forum, I tried to modify the code in the Photoblink_thumbs.php file and/or to modify the ol_closesize variable in overlib.js file but without sucess. I guess it is a very easy process but I can't figure how to. If someone there got an idea I would very appreciate. Thanks really.
my photblog : http://www.photodurable.com
PS : Please Miss Connie and another team guru's don't warm me to RTFM : this is my firts steps in PP universe but I will learn quickly.
Dkozikowski
02-13-2007, 10:13 AM
Whoops, I'm was a little off. ;)
Ignore this post if you received it via email. Check bellow for the solution :)
Dkozikowski
02-13-2007, 10:31 AM
This should work!
Open the photoblink_thumbs.php addon and make the following changes:
Find all references to
CAPTION,
and add the following before CAPTION,
CAPTIONSIZE, '11px',
If you do this correctly you will have something like this:
Note, this is only a small part of the code!
"\' />', CAPTIONSIZE, '11px', CAPTION, '$headline', WIDTH, '".$cfgrow['thumbwidth']."'
Of course, you can change 11px to whatever size you wish!
And, for future reference, you can visit the overlib's webpage and have a look at the Command References (http://www.bosrup.com/web/overlib/?Command_Reference).
Connie
02-13-2007, 10:39 AM
I checked the boxover-script and went to the website of the author of that script
http://boxover.swazz.org/
there the settings of the script are defined.
cssbody:
Any defined style class Built in styles Specifies CSS class for styles to be used on tooltip body.
cssheader:
Any defined style class Built in styles Specifies CSS class for styles to be used on tooltip header.
so did you see any definition for these styles?
in the script you can read:
curNode.boCSSBDY=getParam('cssbody',curNode.title) ; curNode.boCSSHDR=getParam('cssheader',curNode.titl e);
so it seems to me that this definition is read from somewhere...
now you must identify where these two definitions are set
Dkozikowski
02-13-2007, 10:44 AM
Connie, I too thought he was using boxover for the photoblink addon at first but boxover does not have anything to do with it.
The code to include overlib is burried in the body. It took me a second to find it ;)
Connie
02-13-2007, 12:01 PM
that's good... I was on the wrong way ;=)
Diablo_Gil
02-13-2007, 11:07 PM
Dwilkinsjr,
Thank you really for u quick response. Unfornately, it seems doen't work for me. I did exactly what you suggest in the photoblink_thumbs.php but it changes the size of the headline (fonts growes up) but not the size of the thumbnails in the caption. Or maybe I'm too stupid. Nver mind. Thanks again.
Dkozikowski
02-14-2007, 03:35 AM
Dwilkinsjr,
Thank you really for u quick response. Unfornately, it seems doen't work for me. I did exactly what you suggest in the photoblink_thumbs.php but it changes the size of the headline (fonts growes up) but not the size of the thumbnails in the caption. Or maybe I'm too stupid. Nver mind. Thanks again.
I'm sorry, I thought that is what you wanted, larger headline captions.
What is it exactly that you want?
Larger thumbnails inside the overlib box?
We'll this can be done 2 ways.
Right now, the Photoblink addon uses the width and height of your default thumbnail image.
You can goto the options menu in the admin panel to regenerate the thumbnails with a larger height and width, but, this method will also enlarge any thumbnails on you webiste, such as those found on the browse page.
If you only wish to scale it up a little bit you can try editing photoblink_thumbs.php
But also note, your thumbnails can not get any larger without *some* distortion.
If you choose to edit the addon, wherever it says,
WIDTH, '".$cfgrow['thumbwidth']."'
Change to
WIDTH, '150', HEIGHT, '100'
Change 150 , 100 to whatever you want your thumb size to be.
Dennis
02-14-2007, 05:10 AM
Better yet:
WIDTH, '".$cfgrow['thumbwidth']."' HEIGHT, '".$cfgrow['thumbheight']."'
replace with
WIDTH, '".$cfgrow['thumbwidth']+50."' HEIGHT, '".$cfgrow['thumbheight']+50."'
That will keep the images in proportion even when they are in portrait mode
Diablo_Gil
02-14-2007, 08:43 PM
Gentlemen,
May be I'm an uncurable newbie but :
> Dwilkinsjr : Yes, I'd only want larger thumbnails inside the overlib box. But when I edit photoblink_thumbs.php the way you suggest, it seems that this is the background thumbnails which scale up (width & height) nor, alas, the thumbnail image itselft. In fact, in this way, the second etap should be that the picture fill up all the background if you see what I mean with my poor english ?
> Schonhose : I 've exactly wrote the PHP code you gave . I saved and uploaded the file onto my server in the right directory. But, when I log to the Addon menu in my admin, the addons upload stop before Photoblink_Thumbs and display this msg : Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /homepages/37/d180754000/htdocs/www/addons/photoblink_thumbs.php on line 71
I've supposed I did a mistake in writing the line code but I 've verified it several times.
May be, an example, would be better. I 'd like for my PP blog something like this (see the larger thumbnails when mouseovering). : http://www.delaviedesimagettes.net/index.php
Dkozikowski
02-14-2007, 08:52 PM
Ok, I have never used this addon before. So everything I'm telling you is pretty much trial and error allthough it should work.
I'll tell you what. Wait another day and i'll install this addon and get it working on my server. then i'll upload my version for you to use.
Dkozikowski
02-14-2007, 10:31 PM
Ok, it was an easy fix. We weren't setting all the variables.
The height and width needed to be set for the image as well as the overlib caption box.
Here is the new file.
You can open it and at the top there are 2 settings:
$width = "130";
$height = "100";
change these to the desired width and height of your thumbnail.
Download photoblink_thumbs.zip (http://www.dwilkinsjr.com/public/pixelpost/myaddons/photoblink_thumbs.zip)
Diablo_Gil
02-15-2007, 12:45 PM
:D
And it's work fine ! Thanks a lot ! On my side two afternoons lost in looking for a solution without success.
Now the thumbnails show pictures more pixelised (distorsion) due to the scale up process but this is already a big step and this end point is on my own pb. Thanks again. Really.
Dkozikowski
02-15-2007, 01:56 PM
:D
And it's work fine ! Thanks a lot ! On my side two afternoons lost in looking for a solution without success.
Now the thumbnails show pictures more pixelised (distorsion) due to the scale up process but this is already a big step and this end point is on my own pb. Thanks again. Really.
No problem. I'm glad to help.
Also, using this method does distort the thumbnail inside the overlib box slightly but I wouldn't get too worked up over it. It looks fine on your site!
I'd say you can put this one to rest ;)
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.