Extension:GeeQuBox

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

Release status:Extension status beta

ImplementationTemplate:Extension#type Skin, User interface
DescriptionTemplate:Extension#description Displays full-size images with the jquery lightbox plugin when clicking on thumbnails.
Author(s)Template:Extension#username David Raison (Clausekwistalk)
Latest versionTemplate:Extension#version 0.02 (2011-2-13)
MediaWikiTemplate:Extension#mediawiki 1.16 and above
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license CC BY-SA 3.0
Download Template:WikimediaDownload/svn
ExampleTemplate:Extension#example Hackerspace.lu image gallery
Hooks usedTemplate:Extension#hook
BeforePageDisplayManual:Hooks/BeforePageDisplay
BeforeParserrenderImageGalleryManual:Hooks/BeforeParserrenderImageGallery

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

Check usage and version matrix.

Description[edit]

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]

Geequbox.png

Setup[edit]

Download[edit]

Mediawiki 1.17[edit]

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]

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]
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/GeeQuBox/REL_0_2
Development branch[edit]
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/branches/REL_1_16/extensions/GeeQuBox/

Installation[edit]

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]

  • 0.1 - Initial release.

Dev[edit]

Bugs[edit]

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

Todo[edit]

  • 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]