Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2006-04-21 20:18:35

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

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

Thanks Bastian. Cool news :D

I will change the bas_lightbox_css-tag.

uh? excuse my ignorance. Is the bug related to something in the bas_lightbox_css tag? Because I’m not using it at all in none of my page templates/forms.
I prefer to have the CSS directly in my stylesheets.

But, hey, plug-ins are a mistery and magic for me.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#74 2006-04-21 20:21:23

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

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

maniqui:

Sorry, i don’t know why i wrote _css.

As you discribe the bug is in bas_lightbox. The “_css” yust poped in my mind for no reason.

Offline

#75 2006-04-24 19:39:36

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

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

Because i take part at cssreboot i moved my current site.
But today i had no time to make the old stuff accessible. Sorry for the broken links.

The Plugin is still online http://old.samisdat.org/files/bas_lightbox_03.txt

Offline

#76 2006-04-25 05:45:27

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)

hi bastian
is there a chance that, with the next release of the plugin, we can have the option of displaying the $caption with the thumbnails and just the image in the lightbox div?


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

Offline

#77 2006-04-27 04:51:08

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,

another feature request :D

in a next release, it would be nice if txp:bas_lightbox supports an argname attribute, in a similar way as mem_glinklist does.

So, when using the plug-in tag in a page template and giving an argname="c" attribute to the tag, it will become URL-sensitive (category-sensitive).

This way, something like this (that i’m currently using here <- clic in a gallery link on the right):
<code><txp:if_category name=“friends”>
<txp:bas_lightbox cat=“friends” />
</txp:if_category>
<txp:if_category name=“art”>
<txp:bas_lightbox cat=“art” />
</txp:if_category>
<txp:if_category name=“live”>
<txp:bas_lightbox cat=“live” />
</txp:if_category>
</code>
could be replaced with a simple:
<code>
<txp:if_category>
<txp:bas_lightbox argname=“c” />
</txp:if_category>
</code>
Of course, this could be powerful if it is combined, for example, with a plug-in like mem_categories that easily lets you generate an image category list that generate links like this:
/sectionname/?c=categoryname (as I’m doing here <- look the gallery list on the right)

thanks mensch! ;)

Last edited by maniqui (2006-04-27 04:52:26)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#78 2006-04-27 15:54:36

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

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

Hi Bastian,

I have installed this on a site that uses quite a few other scripts. I am having issues where the lightbox script loads about 20% of the time. The rest of the time it is degrading nicely, by directing the link to an individual page with the full size image, but I would rather square away the loading problem. It seems as if the addLoadEvent() is not working like it should be. I have two other scripts that use the onload event and right now I have them really basically rolled together:

<code><script type=“text/javascript”>

function start(){
applyDropShadows(“img.jsShadow”,“shadow”);
}

function Initialise(){
InitialiseCheckboxes();InitialiseRadioboxes();
}

function initAll(){
Initialise();
start();
}

window.onload=initAll;

</script></code>

So my question is what should I take out of the lightbox plugin to roll into my function initAll() in the head section? It looks like there are a whole lot of onload functions in the lightbox script. Or any other suggestion would be appreciated to get this playing nicely with the other scripts or the other way around, without degrading your plugin version of lightbox.

Thanks!

Offline

#79 2006-04-27 19:47:40

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

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

So my question is what should I take out of the lightbox plugin to roll into my function initAll() in the head section? It looks like there are a whole lot of onload functions in the lightbox script.

There are many onload-functions, but they are handling the image-loading.

Search in plugins code for
addLoadEvent(initLightbox); // run initLightbox onLoad.
It is nearly at the end, only the css-function is after that one. Comment it out and add
initLightbox() to your initAll function.

Should work.

Offline

#80 2006-04-27 21:51:30

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

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

That’s what I was thinking, but I wanted to wait for your thoughts. Works Perfectly every page load now! Thanks Bastian.

EDIT: Actually it’s still getting borked somehow, but not as often, and I’m not getting any js errors to dissect. Would page caching effect this script at all? If I crtl refresh (clearing my cache) the script loads properly. If I click around and go to a few other sections and go back to the offending page the script does not load properly.

Last edited by soulship (2006-04-28 21:25:39)

Offline

#81 2006-05-08 20:40:49

Dufresne
Member
Registered: 2005-09-19
Posts: 22

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

I’m probably being stupid here but couldn’t we implement the lightbox 2 script by adding the functionality to include rel attributes on hyperlinks? Surely this is fairly simple?

I thought i’d ask rather than waste 3 hours trying to make it work to find i’m just being dim.

Dufresne

Offline

#82 2006-05-08 22:44:16

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

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

I thought i’d ask rather than waste 3 hours trying to make it work to find i’m just being dim.

No one is stupid here.
For Dufresne and others. I’m writing bas_ligthbox at the moment.
Should be done within this week.

The list of things i try to include:

  • Lightbox 2.0 Suport
  • category-sensitive as maniqui suggested
  • offset like maniqui suggested and a limit attribute
  • valid css, styling for IE done by JS
  • Instead of current script including methode, i will pleace it into head
  • Custom field instead of article’s image -> maniqui
  • Optional use of $img_name instead of $caption
  • $caption or $alt for thumbnails
  • Images and files needed will be copyed by txp instead of uploading them manual.

I hope i get all feature request from this thread. If not, feel free to post them again.
For all requests: I want to have some fun to code this plugin!
If i came to a point where some feature can’t be done with fun, i won’t implement.
That is my only request on feature request’s.

Offline

#83 2006-05-08 23:06:06

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

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

Hi Bastian, this is something I asked for earlier, hope you don’t mind me repeating myself:

Could a custom field be made to hold the cat please. For me this would mean a low tech user wouldn’t need to remember the tag syntax and could easliy create a gallery without any trouble.

Offline

Board footer

Powered by FluxBB