======Light Box v2====== ---- plugin ---- description: Integrate LightBoxv2 for all images author : ogeidix email : diego[NOSPAM]giorgini@gmail.com type : lastupdate : compatible : 2006-11-06 depends : conflicts : indexmenu, indexmenu2 similar : tags : images, javascript, lightbox ---- Simply integrate [[http://www.huddletogether.com/projects/lightbox2/|LightBox v2]] javascript animation ==== INSTALL ==== Just install the plugin by PluginManager * {{http://dioscuri.zapto.org/~ogeidix/plugin_dokuwiki_lightbox.tar.gz}} -> FIXME Link not working * {{http://miranda.kirchen-b96.de/plugin_dokuwiki_lightbox.tar.gz|temporary link}} -> FIXME Link not working too! Fix the bug mentioned at the bottom of this page -- otherwise it won't work with javascript compression turned on. ==== USAGE ==== and link your image like this {{wiki:dokuwiki-128.png?direct|Image Description}} {{wiki:dokuwiki-128.png?direct|Image Description}} or like this {{wiki:dokuwiki-128.png?200x50&direct|Image Description}} {{wiki:dokuwiki-128.png?200x50&direct|Image Description}} ------------------------- * Is there any way someone could make this js more selective about when it is called? It seems to get called no matter what file I pick whether it is a picture, pdf, doc, whatever. The js always gets activated. Thanks ------------------------- * Can somebody adapt this plugin to be able to use images in bbcode sintax? Thx ------------------------- * Does this plugin work in dokuwiki-rc2007-05-24? I cannot get it to display images with LightBox, only in the same tab. The gallery pligin which uses LightBox (but not version 2, which it states, has DokuWiki-incompatible dependencies) works on the other hand. Thank you. ------------------------- * If you install this Plugin, it seems that the plugin "indexmenu1" doesnt work correctly. Bastian > The reason is that it extends array methods with its prototypes. The result is a lot of functions added as items in any new array. I don't know a way to prevent this and adding extra code to indexmenu in order to check items is not a good solution for me. --- //[[samuele@cli.di.unipi.it|Samuele Tognini]] 2007-10-24 14:10// ---- The temporary link above has no ''syntax.php'' in it. Hence, it cannot work. It works if you put an "empty pseudo" ''syntax.php'' into the plugin directory: '?', 'email' => '?', 'date' => '?', 'name' => 'LightBox v2 Plugin', 'desc' => 'Simply integrate LightBox v2 javascript animation', 'url' => 'http://www.dokuwiki.org/plugin:lightboxv2', ); } function getType(){return 'protected';} function getPType(){return 'block';} function getSort(){return 0;} function connectTo($mode) {return false;} function handle($match, $state, $pos, &$handler){return false;} function render($mode, &$renderer, $data) {return false;} } --- //[[a.c.henke@arcor.de|Anika Henke]] 2007-08-17 16:10// > Completely non-functional on my installation. The requirement of the ''direct'' option in image links makes it impractical anyway. --- //[[carl.manzi@gmail.com|Carl Manzi]] 2007-09-28 17:22// **Don't work with javascript compression turned on** > You don't need the pseudo plugin cause the js-code is included by the js.php script (see [[devel:javascript]]). But an error in the file script.js prevents it from being included if (and only if) **compression for js and css** files is enabled. This is because the first comment contains another comment and therefore is not propberly closed. The compression code deletes the whole file, cause the comment is not closed. Just replace the header comment with the following one and the lightbox is there: // ---- prototype.js /* Prototype JavaScript framework, version 1.4.0 * (c) 2005 Sam Stephenson * * THIS FILE IS AUTOMATICALLY GENERATED. When sending patches, please diff * against the source tree, available from the Prototype darcs repository. * * Prototype is freely distributable under the terms of an MIT-style license. * * For details, see the Prototype web site: http://prototype.conio.net/ * *--------------------------------------------------------------------------*/ --- //[[dw_public@koloro.de|Uwe Koloska]] 2008-01-13 23:00// ==== Conflict ==== It seemed to me that this plugin conflicts with [[plugin:indexmenu2]] (either JavaScript menu or plain HTML) but works fine with [[plugin:indexmenu]]. --- //[[jasonxu.dev=NOSPAM=@gmail.com|Jason Xu]] 2008-01-14 23:13// ==== Both download links broken! ==== The download links on top of the page are both broken. --- //[[l3g3nd4ryf0xREMOVETHISANTISPAM@gmail.com|Dario Berzano]] 2008-07-22 22:32// ==== New working version ==== I did some improvements on this plugin to integrate the v2.04 version of Lightbox in dokuwiki the way lightboxv2 implemented it.\\ Explanations and a downloadable file are available here: [[http://laurent.beneytout.free.fr/doku.php?id=projects:lightbox|http://laurent.beneytout.free.fr/doku.php?id=projects:lightbox]] --- //[[laurent.REMOVETHISANTISPAM beneytout@gmail.com|laurentb]] 2008-08-08 22:45//