This Plugin adds Lightbox JS 2.0 by Lokesh Dhakar to Textpattern.
Lightbox is a simple, unobtrusive script used to overlay images on the current page.
While it is very easy to create Thumbnails with Textpattern, its easy to create and manage image gallery with bas_lightbox.
Lightbox works with Prototype by Sam Stephenson and script.aculo.us by Thomas Fuchs.
To save a little space, i use compressed version of prototype by John-David Dalton
Installation
Before you can use this plugin, you have to run the advanced install at extension -> bas Lightbox.
The script imports all files and images you need for lightboxing from samisdat.org.
You can skip the automatic import and download the files as bas_lightbox.zip and upload the manual.
Use the txp image-managment for images and file-managment for files. Don`t rename the files.
If you want to use a custom-field to refer the image category, just rename an custom-field to Lightbox.
You can rename custom-field at admin -> advanced preferences
Plugin Attributes
| bas_plugin_attributes | bas_plugin_values | bas_plugin_default | bas_plugin_description |
|---|---|---|---|
| img | Image ID | none | One or more TXP image ID’s. Comma seperated |
| cat | Image Category | none | Add TXP image categorie. Can be used insted of img |
| caption | [name|alt|caption] | caption | Choose between name, alt or caption to define what text will me displayed. |
| label | String | bas Lightbox | This string will be prepended to the output |
| labeltag | bas_plugin_tag | h2 | tag to wrap label |
| wraptag | bas_plugin_tag | ul | HTML tag surrounding all images |
| wrapclass | bas_plugin_class | ul | Class applied to wraptag |
| break | bas_plugin_tag | ul | Tag or string used to separate every image |
| breakclass | bas_plugin_class | ul | Class applied to break |
| use_cat | boolean | false | Set to true, if using <bas_lightbox/> outside of articles or article forms. |
| use_section | boolan | false | Set to true, if using <bas_lightbox/> outside of articles or article forms. |
Comments
Yes, you need txp 4.0.3.
Hi
I have looked at this plugin on your site and the original site.
But I have a problem getting the script on my site. When I try to add the JS-files to the Plugin at TextPattern, I get an error in line 155 and the script is not imported. This goes for all the scripts.
The error message is:
Badly formed or empty plugin code
and: Notice: unserialize() [function.unserialize]: Error at offset 0 of 235 bytes in /var/www/.../txp_plugin.php on line 155
Can you help?
Thanks
Jens Peter
jens peter, you should make sure to copy the (encoded) plugin-source from this page – do NOT copy & paste the (unencoded) source out of the edit-plugin-field of an existing installation bas-lightbox.
hope that helps!?
hi bastian,
> Nenne ein Custom-Field Lightbox. Dieses Feld wird durch
> eine Dropdown-Liste alle Bilder Kategorien ersetzt.
> Wähle eine Kategorie von dieser Liste.
ähm – echt? vielleicht magst du das nochmal detaillierter beschreiben? klappt bei mir scheinbar nicht ;-(
ciao,
-martin
The demo doesn’t seem to be working :-(
don’t worry, the actual plugin works great.
Hallo Bastian,
danke für bas_lightbox!
Gibt es wohl eine Möglichkeit die Ausgabe der Bilder bei Aufruf über eine Kategorie nach irgendeinem Kriterium sortieren zu lassen? Also sowas wie sortby=”name” ...? Das wäre des Sahnehäubchen! :-)
Dank und Gruß,
Wolle
eine sortierung zumindest nach ID oder bildernamen wäre wünschenswert.
habe bis jetzt nicht durchschaut, nach welchen kriterien sortiert wird, wenn man mit dem attribut “cat” oder dem custom-field “lightbox” arbeitet. derzeit spielen ID und bildername keine rolle – die bilder werden leider in einer willkürlichen reihenfolge angeordnet.
grüsse
steelcouch
It doesnt work in Safari (at least not in mine: v2.0.4)... :(
Hi,
ich wollte mich für das tolle Plugin bedanken, welches ich auf meiner Seite natürlich auch für meine Bildergalerie verwende. Ich kann auch berichten, dass es auch mit der aktuellsten Version von Script.aculo.us und Prototype zusammenarbeitet.
Gute Arbeit und weiter so.
KebdnK
Hi, thanks for the great plugin. But I want to ask if there will be an option for sorting / not sorting the picz by ID. Now they are sorted ascending at default.
Regards,
c48
Hello,
how about the new Lightbox 2.04 with «label text into configuration for easier localization» : did you have the project to update bas-lightbox?
thanks.
françois
hello,
I’m trying to download the .zip file but the link just goes to a blank page. Could email me the support files? I’m unable to complete the install in Textpattern.
Thank you, this is a great plug-in
Scott
Hi Scott,
just send you an email with the .zip attached.
Sorry for the broken link! I will fix it as soon as possible.
Bastian
qweqwe qeqe
Hi Bastian,
I fear I have the same problem as Scott. The link to the .zip file is broken and advanced install is failing, I presume because the .zip file has moved. Is it possible for you to mail the support files? Thanks for a brilliant plugin, and your help.
Duncan.
Is there a minimum TXP for this to work?
Thanks.