Hello!
In Thickbox, when you hover over the thumbnails, a little info box with the title and the caption pops up, with any html tags that are in there. Is there a way to have it process the HTML, or not have it pop up at all?
Cheers!
Jessica
Hello!
In Thickbox, when you hover over the thumbnails, a little info box with the title and the caption pops up, with any html tags that are in there. Is there a way to have it process the HTML, or not have it pop up at all?
Cheers!
Jessica
Oh, and here's my website: www.jessicamacmillan.com
The image title is picked by the plugin and shown in the title propert of the thumbnail link. The title property (that's the little info box on hover) of the a href tag of the thumbnail can't process html code, and I don't know if it could be done someway, sorry
The only 'solution' I can offer you is to remove the title property from the tag altogether. It simply won't show any info box, which is a pity, but if it's a choice between that and correct styling your image caption... Your choice:
Edit your plugin/exhibit.thickbox.php (make a backup copy first, and edit with a source code editor or plain text editor). Where you find:
$a .= "n<a href='" . BASEURL . GIMGS . "/$go[media_file]' title='$go[media_title]' class='thickbox' rel='gallery-plants'> etc etc etc
remove title='$go[media_title]' so you'll have:
$a .= "n<a href='" . BASEURL . GIMGS . "/$go[media_file]' class='thickbox' rel='gallery-plants'> etc etc etc
Hi pernin,
The line in my plugin looks different, pretty sure because I'm using an updated plugin, one that Vaska posted some time ago (found in this thread): http://www.indexhibit.org/forum/thread/1039/
Here's what it looks like:
$a .= "n < a href='" . BASEURL . GIMGS . "/$go[media_file]' title="$title" class='thickbox' rel='gallery-plants'>
So the part you recommend removing isn't in there... do you think there might still be a way?
Thank you so much!
Jessica
Yes, there's several versions around. This is the little box thingie:
title="$title"
It worked! But it also seems to have gotten rid of the caption and title once you click on the thumbnail... can I have one without the other?
that doesn't make sense... it shouldn't have done that. I'd to take a look at your plugin. Where did you get it?
It's 9 posts in: http://www.indexhibit.org/forum/thread/1039/
Hmm, I see, this is using the title attribute to create the caption in thickbox.js
OK, this is horribly hackish... :/ but it'll work -- we'll use the alt attribute instead, which doesn't show on hover:
in your plugin/exhibit.thickbox.php edit
$a .= "n<a href='" . BASEURL . GIMGS . "/$go[media_file]' title="$title" class='thickbox' rel='gallery-plants'> etc etc
change title="$title" to alt="$title"
in your site/js/jquery.thickbox.js edit (about line 41)
tbtitle = $(stuff).attr('title');
change to
tbtitle = $(stuff).attr('alt');
Thank you so much for helping me work this through!
I've edited plugin/exhibit.thickbox.php, but I can't seem to find the right line to edit in site/js/jquery.thickbox.js
Should I just add it in?
nope, don't add: it's about line 41, or do a search for tbtitle
Okay, I've tried to search title, tbtitle, stuff, and attr but nothing shows up! Really weird... I wonder what is going on?
ok, I've lost track of who has which version of the different files... ;)
heres a download link to a newer version of thickbox by Jesper Korsholm: Wobblebox
(put each file in the corresponding folder -- take a backup of your old files before you replace them)
I've included two different versions of thickbox.php Both will need your changing the title attribute to alt attribute, and you'll have to edit the thickbox.js according to my post above too
Okay, so I've replaced the files, and have done nothing else so far, but now the thumbnails don't work at all!
What a can of worms this has become!
Thanks again for all your help.
also the new jquery.js? you need to replace the old jquery with the one I sent you -- and shift-refresh is your friend ;)
I've replaced the following, and emptied my chache:
jquery.js
jquery.thickbox.js
exhibit.thickbox.php
We've made a step forward, in that it now isn't completely inactive, but it is still not working right--now it opens the image large-scale underneath the thumbnails, off center.
Sorry that you've had to hold my hand through this... but I'm learning a lot!
There were several files in a zip, each into its own folder. You have to match folders. For example, the contents of the ndxz-studio/site/css folder goes into the ndxz-studio/site/css folder, etc
You have to do this for each folder: where have you put the thickbox.css?
Ok! I'm so sorry, I didn't understand at first! The css file is in there now too.
Another step in the right direction! Now the slideshow is happening, but the caption and titles are misbehaving.
This thread has been closed, thank you.