Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#205 2006-10-30 15:50:25

coffeepostal
Member
From: Anacortes, WA
Registered: 2005-09-06
Posts: 22
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

I’ve got a really random problem. Whenever you roll over anything that links (text links or image links) in Safari, the link disappears and the page flows up to cover it.

The site was working fine, until I installed the bas_lightbox plugin, and it seems to have caused it, but I can’t find anything that would cause it…

The plugin’s site does the same thing in Safari.

Any and all help would be appreciated.

Offline

#206 2006-11-09 14:25:08

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,014
Website GitHub Mastodon Twitter

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

I am using a modified version of v0.3 the plugin. The reason is because I wanted to show the caption (which included html and js) with the thumbnails. It was working just fine with txp v4.0.3 but on 4.0.4 I have some minor issues.

The problem is very visible on hblack.net/hblack/index.php?id=81 and not so visible on hblack.net/hblack/index.php?id=104 .

The visible problem (id 81): the javascript is pushed next to the image
The not so visible problem occuring everywhere but id 104 is an easily loaded example: the title tag of the thumbnail includes the whole of the caption, html n’ all.

I have uploaded my modified verison of the plugin here . Can anyone point out to me what I have to change in there. It’s been 2 hours that I’ve been trying to figure it out and I just can’t see it. I think that I have changed all $caption and title occurrences in the code but I just can’t get any satisfactory results.

Last edited by colak (2006-11-09 14:54:55)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#207 2006-11-10 15:59:10

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,014
Website GitHub Mastodon Twitter

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Maybe I haven’t been very clear… What I am looking for is an indication of where I can edit the code so as for the thumbnails not to have a title attribute
ie instead of
<img src="/images/472t.jpg" alt="alt title" title="image title" /> I need <img src="/images/472t.jpg" alt="alt title" />
I just can’t find where in the code the title attribute is called and inserted. Any help will be greatly appreciated.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#208 2006-11-10 16:10:34

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

colak,
I show the change you need to be on line 36.

Perhaps you could change:

'" rel="lightbox" title="'.$big['alt'].'">'

to

'" rel="lightbox">'


Offline

#209 2006-11-10 16:19:36

rloaderro
Archived Plugin Author
From: Costa Rica
Registered: 2006-01-05
Posts: 190
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

ma_smith wrote:

I show the change you need to be on line 36.

Actually that just changes the link surrounding the image – colak’s looking to change the image itself. The problem is, it’s TXP code – the image (thumbnail) is generated with TXP’s thumbnail function:

$thumb = thumbnail(Array('id' => $getImg));

And in 4.0.4 if the image has a defined caption (in the database) it will render it as the title attribute (line 245 of taghandlers.php):

($caption ? ' title="'.$caption.'"' : '').

There doesn’t appear to be a way to solve this easily without modifying the TXP code. If you’re interested I can probably tell you how…


Travel Atlas * Org | Start Somewhere

Offline

#210 2006-11-10 16:23:04

coffeepostal
Member
From: Anacortes, WA
Registered: 2005-09-06
Posts: 22
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Anyone have some help on my issue: http://forum.textpattern.com/viewtopic.php?pid=130094#p130094

Last edited by coffeepostal (2006-11-10 16:23:23)

Offline

#211 2006-11-10 16:41:27

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,014
Website GitHub Mastodon Twitter

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

rloaderro wrote:

Actually that just changes the link surrounding the image – colak’s looking to change the image itself. The problem is, it’s TXP code – the image (thumbnail) is generated with TXP’s thumbnail function:

$thumb = thumbnail(Array('id' => $getImg));

And in 4.0.4 if the image has a defined caption (in the database) it will render it as the title attribute (line 245 of taghandlers.php):

($caption ? ' title="'.$caption.'"' : '').

There doesn’t appear to be a way to solve this easily without modifying the TXP code. If you’re interested I can probably tell you how…

rloaderro… That’s it I have changed the taghandlers from ($caption ? ' title="'.$caption.'"' : ''). to ($caption ? ' title="'.$alt.'"' : ''). and the problem is solved. I’m off to make a feature request for that code to change as the caption is a good field for image descriptions which can include html

Edit I have just posted a feature request to have this line changed in the core code. If anybody else agrees with me please do let the developers know by posting in the thread . Negative reactions to my proposal are welcomed too:)

Last edited by colak (2006-11-10 17:01:48)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#212 2006-12-05 15:44:25

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

G’day,
I’m late to the game discovering Lightbox, but would love to get it working. I’m trying to install the bas_lightbox plugin, but the required installation files (bas_lightbox.zip) are not available at the provided links for either the automated or manual install. Does anyone know where I can get them?

Also, does Slimbox work with the bas_lightbox plugin?

And am I understanding the situation correctly in that bas_lightbox doesn’t quite work as it’s supposed to in TXP 4.0.4?

Any tips on how I can get this thing working with TXP would be much appreciated.

Thanks,
theturninggate

Last edited by theturninggate (2006-12-05 15:49:44)

Offline

#213 2006-12-05 15:51:54

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Hey Mathew,

Lovin your new header BTW.

At this point I would advise using the lightbox script of your choice (There are many flavors out there) in conjunction with either hak_article_image or wet_for_each_image. Strictly depending on how you want to get your images out of the db. The lightbox script in the plugin is somewhat outdated now. It’s nice, but it’s nicer to have the freedom to update your script individually to whatever the hot new flavor is depending on your usage.

Jamie

Offline

#214 2006-12-05 15:57:12

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Thanks again for the great plug in. (bas_lightbox – Bastian Sackermamn – 0.4)

I have used it on a previous site (txp 4.03) an it worked perfect.

BUT, and it seems like there is always a BUT, I am now attempting to use it on a new site I am developing and running into problems.

Both sites are hosted in the same environment. The only difference is that the new site is running (txp 4.04)

I believe I have everything set up correctly, I have triple checked that the files are in the proper place, but when the thumbnails are displayed and you click on them, all that happens is that they open in a new page. I have read similar posts about this, but in those it appeared to be an issue with not locating the files. I do not think that is my problem. I just do not know what it is.

Here is a link to the page in question: (problem resolved)

Page Code: <code><txp:article_custom form=“gallery” /> </code>
From Code: <code><txp:custom_field name=“Gallery” /></code>
Custom Field Code:<code><txp:bas_lightbox img=“13,14”/></code>

Any and all assistance would be greatly appreciated.

progre55

(problem resolved)

Last edited by progre55 (2006-12-06 22:34:33)

Offline

#215 2006-12-05 16:02:37

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Try relinking your scripts in the head section. it looks incorrect to me.

<script type=‘text/javascript’ src=‘http://216.147.50.202/files/’></script>
<script type=‘text/javascript’ src=‘http://216.147.50.202/files/?load=effects’></script>
<script type=‘text/javascript’ src=‘http://216.147.50.202/files/’></script>

What beach is that?

Offline

#216 2006-12-05 16:15:09

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

soulship:

Tried relinking with no success.

I have also tried to remove and reload the plug in. Still no luck.

Any additional suggestions.

progre55

Offline

Board footer

Powered by FluxBB