Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2006-04-10 10:38:58

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

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

colak I hope, i understand you correct: If you want <a href=”/images/212.jpg” rel=“lightbox” title=”$alt”>@
try
<txp:bas_lightbox caption="alt" />

Offline

#62 2006-04-10 13:12:06

Gurney
New Member
From: Breda, Netherlands
Registered: 2006-04-03
Posts: 4
Website

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

Can anyone please suggest how I make a list of image categories, each linking to that image gallery? (with the us of <code><bas_lightbox cat=”“></code> for the gallery)

Offline

#63 2006-04-10 17:31:29

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

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

Bastian wrote:

colak I hope, i understand you correct: If you want <a href=”/images/212.jpg” rel=“lightbox” title=”$alt”>@
try
<txp:bas_lightbox caption="alt" />

Hi Bastian
<a href=“http://forum.textpattern.com/viewtopic.php?pid=107759#p107759”>panic</a>‘s work around looks like what I’m looking for.
Basically I need the plugin to output the alt tag under the a href title (ie the linked thumb we click to load the div containing the larger image) and the caption field in the div with id=lightbox

ps. panic if i do not manage to find the method here I will be writing to you. thanx for the offer. Currently I am moving my domain to textdrive and the dns is yet to be updated by my registrar so I have no email.

Last edited by colak (2006-04-10 17:35:05)


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

Offline

#64 2006-04-13 07:05:47

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

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

@Panic thanks for the help on this one.

@Bas. Is there a way to make sure that bas_lightbox_js loads every time?
I have tested it and implemented a hacked version of it on <a href=“http://hblack.net/hblack/”>hblack.net/</a> but the js does not load consistently resulting in loading the larger image by itself (in a page like hblack.net/hblack/images/123.jpg)as opposed to within the div. On reloading the browser the js loads ok.

Tests were performed of ff1.5 mac and ie6 pc

>Edited typos

Last edited by colak (2006-07-04 08:40:14)


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

Offline

#65 2006-04-21 05:10:41

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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

Hi all, hi Bastian
thanks for this wonderful plug-in.
I’m creating an hybrid between a fotolog and a gallery and your plug-in is a great ally :)

But I think there is something that is not working: the “class” attribute.
I’m using <txp:bas_lightbox img="29,30,31,32" class="thumbs" /> but the thumb images are not getting a class.

Wait… now, thinking loud… to which element is expected that “class” attribute to be applied?
I was expecting to be applied to the <img /> element…
…testing…
…testing…
…testing succesfully completed…
results:

The “class” attribute is applied to the element defined in “wraptag” attribute in the plug-in (following the usual logic behind every TXP built-in tag… well done!)

Sorry. Just post this to the posterity (because it’s not in the plug-in help).


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#66 2006-04-21 05:15:50

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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

Feature request:
an “offset” attribute :)

thanks! <small>and sorry for the double post</small>


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#67 2006-04-21 08:22:27

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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

Problem! :(

I cant find out why when in individual-article context, the script isnt being loaded!
The plug-in outputs the thumbs as expected, but when I click them, I get the image as if Javascript is disabled.
I have viewed at the source code of the page, and the script line isnt there when in individual-article context. (<script src="/?bas_lightbox_js=true" type="text/javascript"></script> is missing!)

(I’m using the plug-in tag inside the article body, and AFAIK, there should be no problem with that, and plug-in/script is working perfectly in article-list context).

Thanks in advance.

Last edited by maniqui (2006-04-21 08:26:13)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#68 2006-04-21 08:59:46

ragger
Member
From: Netherlands
Registered: 2005-04-10
Posts: 82
Website

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

Did you include <txp:bas_lightbox_css /> in the <head> of your article page? (or the complete css in your css?)

Also check the path to the images.

Offline

#69 2006-04-21 13:00:35

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

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

maniqui wrote:

I cant find out why when in individual-article context, the script isnt being loaded!
The plug-in outputs the thumbs as expected, but when I click them, I get the image as if Javascript is disabled.
I have viewed at the source code of the page, and the script line isnt there when in individual-article context. (<script src="/?bas_lightbox_js=true" type="text/javascript"></script> is missing!)

Have similar <a href=“http://forum.textpattern.com/viewtopic.php?pid=108129#p108129”>problem</a>


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

Offline

#70 2006-04-21 13:12:26

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

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

the script isnt being loaded!

Mmh.

I wanted to make sure, that the script isn’t loaded twice or more in list mode.
Perhaps i done to much and sometimes the script isn’t loaded at all.

I will have a look on that.

Offline

#71 2006-04-21 18:56:18

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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

Hi Bastian,
thanks for replying.

I have interesting data: the “bug” is triggered when the plug-in tag (<txp:bas_lightbox />) is placed inside the article body (so, it will be present for just that article). In that case, the script is loaded in article-list context but not in individual-article context.

In the other hand, if I place the plug-in tag inside the article form (so, it will be present inside any article that use that form), it works as expected: the script is loaded in both context.

Hope this help you to find the bug. Thanks for this lovely plug-in, Bastian.

Another feature request:
not only an offset attribute but a limit attribute too. It would be perfect for having control of the amount of thumbs in an article-list context.
Well… and just to ask more: maybe, it could have an option to choose a custom field from where image IDs should be picked.
This way, it can be separated from the article_image ID field.
:D

Last edited by maniqui (2006-04-21 20:15:31)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#72 2006-04-21 19:23:18

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

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

maniqui, thanks for the info. I will change the bas_lightbox_css-tag.

The good news:

In my very handcoded version of Img Wizard i use forms for parsing the images.
And i use offset and limit, too.

So i will include that to bas_ligtbox.

Offline

Board footer

Powered by FluxBB