Slimbox WordPress Plugin

29 Jul 07

WordPress plugin used to overlay images on the current page into neat Javascript-powered overlay popups.

This plugin includes the new Slimbox 1.64 javascript written by Christophe Beils and got transformed into a WordPress Plugin by me. Slimbox is a 7kb visual clone of the popular Lightbox JS v2.0 by Lokesh Dhakar, written using the ultra compact mootools framework. It was designed to be small, efficient, more convenient and 100% compatible with the original Lightbox v2.
Because Slimbox was designed to be 100% compatible with Lightbox, you can just replace the Lightbox 2 WordPress Plugin whit Slimbox Plugin and your Lightbox effects will work just as well as before.
Use the title attribute if you want to show a caption. Click on the images below for an example.


test1Roma 2

Installation

  • Upload slimbox-plugin folder to the /wp-content/plugins/ directory.
  • Activate the plugin through the ‘Plugins’ menu in WordPress.
  • Add a rel=”lightbox” attribute to any link tag to activate the lightbox, or rel=”lightbox[roadtrip]“ for image set.
  • Optional: Use the title attribute if you want to show a caption.
  • If you want to add automatically the lightbox effect to your post’s images, open lighbox.php and remove the comment ‘//’ from lines 21 to 24.

Single example:
<a href=”img1.jpg” rel=”lightbox” title=”my caption”>thumbnail1</a>
Image set example:
<a href=”img1.jpg” rel=”lightbox[roadtrip]“>thumbnail1</a>
<a href=”img2.jpg” rel=”lightbox[roadtrip]“>thumbnail2</a>
<a href=”img3.jpg” rel=”lightbox[roadtrip]“>thumbnail3</a>
Tnx to my sister for the photos! Link me in your site!

Changelog

Version 1.3 (22-08-2008)

Update Slimbox to version 1.64

  • v1.64
    • Fixed a bug where in some cases, Flash animations inserted using SWFObject would not show properly after Slimbox closes.s.
  • v1.63, requires mootools >= 1.2.
    • Updated code for mootools 1.2.
    • Slimbox is now fully compatible with Opera 9.5 and quirks mode web pages!

Version 1.2 (09-06-2008)

Update Slimbox to version 1.52

  • v1.52 (2008-06-08)
    • Added the “loop” option to allow navigation between the first and last images of a Slimbox gallery, when there is more than one image to display.
    • Fixed a bug which allowed to change the image while Slimbox was closing.
    • API: The Slimbox elements functions now return “this” to allow chaining.
    • Small optimizations.
  • v1.51 (2008-05-30)
    • Fixed an error which occurred when Slimbox was used in combination with SWFObject in Firefox. Also fixes a memory leak in Internet Explorer.
  • v1.5 (2008-05-23)
    • Most of the code has been rewritten with a new approach. It s now much smaller! (4kb)
    • Added the “overlayOpacity” option to specify the level of opacity of the overlay.
    • Added the “counterText” option to specify a custom or localized counter text.
    • Slimbox does not take up any space at the bottom of the page any more in some browsers.
    • Now Slimbox does not wait for the caption animation to complete before enabling navigation. So you can navigate faster between images.
    • Keyboard events are now captured when Slimbox is open to prevent page scrolls when using the arrow keys to navigate.
    • You can now have two times the same image in an images set.
    • The CSS file now includes Z-index definitions that are required if your web page design relies on elements with Z-index.
    • The provided GIF images are now smaller.
    • API: Slimbox now extends the Element and Elements classes. You can now associate a Slimbox gallery to any group of link elements using $$(elements).slimbox([options]).
    • API: You can now specify different options for each group of link elements where you applied the slimbox([options]) function.
    • API: When you call slimbox() on elements, you can now specify an optional filter function and an optional mapper function for maximum flexibility (see documentation).
    • The Lightbox compatibility code is now fully optional. It s implemented in a few lines using the new API and a filter function.
    • API: The main entry point has been renamed from “Lightbox” to “Slimbox”
    • API: Lightbox.show() and Lightbox.open() have been merged into Slimbox.open()
    • The Slimbox distribution now includes mootools, an example page and a Readme file.

Version 1.0 (29-07-2007)

First version.

Download Slimbox WordPress Plugin

If you appreciated this plugin or my support, donate me so i can buy a cup of coffee, tnx u!
caffe

  • Upnews
  • Digg
  • del.icio.us
  • Google Bookmarks
  • PDF
Scritto da Peppe

[...] Slimbox Plugin (ver1.3) [...]

16 Jun 10 , 1:53 pm

gallery:

Thanks for the plugin and also thanks for Andy for gallery-upgrade!

17 Jun 10 , 5:26 pm

manlio:

Ciao , grazie mille per il plugin è molto bello e lo cercavo da tempo.
Il problema nel tema che uso io è che mi va in conflitto con lo slider che c’è in homepage, quindi non mi carica + quello…sapresti dirmi se devo modificare qlc file ?

23 Jun 10 , 10:26 am

daniela:

Hi, I try to use your fantastic plugin for a small customer – thank you so far!

The automatic overlay works fine with single pics in a post.

But I have a problem with the standard gallery. If I insert several pics into a post as a gallery – how can I use the overlay effect here?

Thank you for any help! For the relevant example look at http://www.gfjk-training.at/mentor – no overlay (the html in the dashboard is [gallery="file"].

Thank you Daniela!

29 Jun 10 , 12:19 am

devilsoulblack:

i have the same issue as daniela, any idea how to solved ?

29 Jun 10 , 12:25 am

Peppe:

user the rel=”lightbox[mygallery]“ where mygallery is your gallery, add to all images the same gallery name, bye

19 Aug 10 , 10:42 pm

shkaf:

THANKS a lot for the plugin! I`ve used it on my furniture blog! Keep working!

26 Aug 10 , 4:25 pm

Chris Younger:

Hi I’m using this plugin on my blog but it is not working.

You can view a page that should work at:
http://www.chrisyounger.co.uk/2010/08/blog-art-1-an-apology/

I’m using WordPress version 3.0.1

Is the plug in compatible with this version or is it possibly my theme which is the problem?

« 1 2 3 4 5 6 7 8 Mostra tutto

359 commentiLascia un commento

Articoli Correlati
4MJ – Internet News © 2002 - 2010 è basato su piattaforma WordPress
Progetto e Design sono esclusiva proprietà di Giuseppe Argento.
Mappa Sito, Articoli (RSS) e Commenti (RSS) | Contatti