bas Lightbox

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

<txp:bas_lightbox />
bas_plugin_attributesbas_plugin_valuesbas_plugin_defaultbas_plugin_description
imgImage IDnoneOne or more TXP image ID’s.
Comma seperated
catImage CategorynoneAdd TXP image categorie. Can be used insted of img
caption[name|alt|caption]captionChoose between name, alt or caption to define what text will me displayed.
labelStringbas LightboxThis string will be prepended to the output
labeltagbas_plugin_tagh2tag to wrap label
wraptagbas_plugin_tagulHTML tag surrounding all images
wrapclassbas_plugin_classulClass applied to wraptag
breakbas_plugin_tagulTag or string used to separate every image
breakclassbas_plugin_classulClass applied to break
use_catboolean falseSet to true, if using <bas_lightbox/> outside of articles or article forms.
use_sectionboolanfalseSet to true, if using <bas_lightbox/> outside of articles or article forms.

Comments

May 11, 06:00 PM

David W

Is there a minimum TXP for this to work?

Thanks.

May 12, 11:50 AM

Bastian

Yes, you need txp 4.0.3.

Jul 7, 09:04 AM
Jens Peter

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

Aug 9, 08:47 AM

anon

The demo doesn’t seem to be working :-(

don’t worry, the actual plugin works great.

Oct 10, 01:12 PM

Wolle

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

Oct 30, 01:10 PM
steelcouch

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)... :(

Dec 17, 08:42 PM

KebdnK

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

Jan 27, 09:26 AM

cube48

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

Jun 5, 05:58 PM
fpradignac

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

Jun 26, 06:53 AM

scott

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

Jun 26, 11:18 PM

Bastian

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

Write a new comment