Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2006-07-03 08:13:03

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,925
Website GitHub

Re: Thickbox

erissiva, your js loading problem is probably a matter of getting the path right: I’m not sure how your setup is, but if you put your js files in the folder js in your root directory, i.e. www.mysite.com/js/ then all you need to add is a slash in front of the src link above: script src =”/js/jquery.js” …

I’ve not tried bas_lightbox plug-in but I’m sure the set up is similar as the generated links are principally very similar:

thickbox: use class="thickbox" title="caption"
lightbox: use rel="lightbox" title="caption"

Some of the things asked for above would have to be features of thickbox and therefore outside of the scope of a plug-in:

  • long descriptions – you’ll have to pass both image alt and caption into the title="alt-text-followed by caption" field as that is what thickbox uses. I don’t think it passes any other information other than class and title. I don’t think line breaks within the title field will work there.
  • swf’s: look in the comments on the thickbox page. I think there’s a complex description of including flash inside of several div’s to get that to work. Sorry, I’ve forgotten where, though – it might be on the lightbox comments.
  • comment form etc. There’s a new alternative script called ibox, which I hasten to add I’ve not yet investigated further, but… it does allow overlay of inline div content which you have set to display:none normally. That would make things like comment forms a whole lot easier as you would not have to separate that bit out into a separate page. I don’t know if it does everything that thickbox does. ibox does not use jquery.
  • there’s a workaround for the upper-lowercase file extension problem on the ibox page that might also work with thickbox? (comment from jul 3) (and also a suggestion on the thickbox page)
  • finally, cody has indicated that another update to thickbox is imminent.

TXP Builders – finely-crafted code, design and txp

Offline

#26 2006-07-03 09:12:04

erissiva
Member
Registered: 2006-03-30
Posts: 18

Re: Thickbox

jakob – Actually, thanks so much for your help. The tidbit about paths led me to discover 3 errors that were preventing it from loading. _
Fixed them all.

But, on a similar note, do you know of a way to automatically insert the ‘alt’ or ‘title’ variable into a post? Like a variable that I could type to have it display?

Edit: I hacked ‘bas_image_selector’ a bit to give me an easy way to insert links. _ Works like a charm, except I don’t how to automatically pull the ‘Description’ data from the database through ‘bas_image_selector’. The plugin already pulls the image titles – I just don’t know how to get it to pull the descriptions too.
But the current hack makes the images insert like this:
<code>
<a href=”(automatically pulls path)” title=”“ class=“thickbox”><img src=”(automatically pulls path for thumbnail data IF thumbnail exists)” style=“width:(autoinserted)px;height:(autoinserted)px;” alt=“Automatically pulls image title” /></a>
</code>

It’s pretty darn close to being perfect. _

Last edited by erissiva (2006-07-03 09:47:11)


zan.thri.a – personal political/philosophical blog

Offline

#27 2006-07-03 15:30:09

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,925
Website GitHub

Re: Thickbox

bastian’s site is not responding just at the moment so I can’t take a look at the plug-ins source, but I would think the method for title=”“ would be analog to what you’re using for alt=”“ except using the caption variable instead of the alt variable.

I looked in txp’s own files (taghandlers.php and txp_image.php) and in bastian’s lightbox plug-in (which I had on my HD) it seems the variables are called $alt and $caption. If you have no luck, it may be that the caption is not being read out of the database, in which case check for a safe_row function somewhere above where your html is being output and check that $caption is also on of the variables being read out of the database.

You could probably add an option to bas_lightbox via an attribute such as thickbox=“1” to build the head using the other js-files and the image links using alternative output with class=“thickbox” instead of rel=“lightbox”.


TXP Builders – finely-crafted code, design and txp

Offline

#28 2006-10-24 22:07:12

teepee62
New Member
Registered: 2006-10-24
Posts: 4

Re: Thickbox

has anyone ever tried making a thickbox chain? I am seeking help with linking one thickbox to another.
I have the thickbox up and running and I’ve established the link but the second thickbox won’t format.
I’m guessing I may have to customize some java from the plugin but I’m not sure.
I’m new to this form so I hope I’ve posted in the correct thread. Thanks in advance for any help.

Offline

#29 2007-03-15 22:34:49

FPImages
New Member
Registered: 2007-03-15
Posts: 1

Re: Thickbox

Hello everybody! Love thickbox.
Just one small problem
I included html tags (links and br )into the title and the thickbox height is wrong (shorter…) in Firefox.

Any ideas?

http://www.featurepics.com/Thickbox/Image-Gallery.aspx

IE – just perfect!

Offline

#30 2008-10-30 02:26:17

davidoleski
Member
Registered: 2008-10-24
Posts: 10

Re: Thickbox

Which part of Lightbox am I not understanding? I’ve been slugging my way through one thing after another, every plugin goes snap pop and works, for some reason Lightbox isn’t even beginning to do anything. What does this first line mean, “Please <txp:bas_lightbox_head /> into your sites head, this tag will add all script and css to your site.” Does it mean the page template? Why is nothing working? I’m going through one forum after another, everyone is tweaking details of a working platform, but I can’t get things to even start.

Yes, I have almost no idea what I’m doing in some things, in other things I actually do quite well.

Offline

#31 2008-10-30 16:14:45

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Thickbox

davidoleski wrote:

Which part of Lightbox am I not understanding? I’ve been slugging my way through one thing after another, every plugin goes snap pop and works, for some reason Lightbox isn’t even beginning to do anything. What does this first line mean, “Please <txp:bas_lightbox_head /> into your sites head, this tag will add all script and css to your site.” Does it mean the page template? Why is nothing working? I’m going through one forum after another, everyone is tweaking details of a working platform, but I can’t get things to even start.

Yes, I have almost no idea what I’m doing in some things, in other things I actually do quite well.

You’re question really belongs here but check the other post you posted in for my response that may help.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB