Extension:GeeQuBox

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
GeeQuBox

Release status: beta

Implementation Skin, User interface
Description Displays full-size images with the jquery lightbox plugin when clicking on thumbnails.
Author(s) David Raison (Clausekwistalk)
Latest version 0.02 (2011-2-13)
MediaWiki 1.16 and above
Database changes No
License CC BY-SA 3.0
Download Template:WikimediaDownload/svn
Example Hackerspace.lu image gallery
Hooks used
BeforePageDisplay

BeforeParserrenderImageGallery

Translate the GeeQuBox extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

Description[edit | edit source]

GeeQuBox incorporates Leandro Vieira Pinho's lightbox plugin for jquery into MediaWiki's thumbnails and image galleries.

When a user clicks on an image in a gallery, the page darkens and the image is displayed full-size "on top of" the page. Clicking anywhere off the image returns everything to normal.

Images in galleries are treated as being part of a slideshow, and have "previous" and "next" images.

This extension is derived from and can be considered an upgrade from the SlimboxThumbs extension.

Screenshot[edit | edit source]

Geequbox.png

Setup[edit | edit source]

Download[edit | edit source]

Mediawiki 1.17[edit | edit source]

You can download the most current version of the code directly via SVN from the MediaWiki source code repository, at http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/GeeQuBox/. From a command line, you can use the following:

svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/GeeQuBox/

Mediawiki 1.16[edit | edit source]

If you're not using the latest in mediawiki development, you might want to use the latest version that is known to work with your version of mw.

Stable release[edit | edit source]
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/GeeQuBox/REL_0_2
Development branch[edit | edit source]
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/branches/REL_1_16/extensions/GeeQuBox/

Installation[edit | edit source]

Place the GeeQuBox directory within the main MediaWiki 'extensions' directory. Then, in the file LocalSettings.php in the main MediaWiki directory, add the following line:

include_once("$IP/extensions/GeeQuBox/GeeQuBox.php");

Release Notes[edit | edit source]

  • 0.1 - Initial release.

Dev[edit | edit source]

Bugs[edit | edit source]

  • If there are multiple galleries on one page, they are treated as being part of one big slideshow.

Todo[edit | edit source]

  • Set resize height according to browser height
  • Change resize width & height on window.resize()
  • Try to replace the regexp mess with some better hook or data handling...
  • Support non-gallery thumbnails.

See also[edit | edit source]