Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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.
Offline
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
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
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
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)
Offline
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
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
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
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