Extension:FancyBoxThumbs

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
FancyBoxThumbs
Release status: stable
Implementation User interface
Description Displays thumbnailed images in a Mac-style "lightbox" that floats overtop of web page.
Author(s) Jason Gill (gilluminatetalk)
Latest version 2.1 (2013-11-26)
MediaWiki 1.17+
Database changes No
License GNU General Public License 3.0 only
Download
Parameters
  • $fbtFancyBoxOptions
Tags
* shadowbox
  • lightbox
  • slimbox
  • fancybox
  • thumbnail
  • preview
  • images
Hooks used
BeforePageDisplay
Translate the FancyBoxThumbs extension if it is available at translatewiki.net
Check usage and version matrix.

The FancyBoxThumbs extension displays thumbnailed images in a Mac-style "lightbox" that floats overtop of web page. This can create a more user friendly environment, where the user doesn't leave the page every time they click a thumbnail.

Version 2.0[edit]

Licenses[edit]

This Extension is released under the GPLv3 license.

This project includes fancyBox JQuery Extension which is licensed under Creative Commons Attribution-NonCommercial 3.0 license. You are free to use fancyBox for your personal or non-profit website projects. You can get the author's permission to use fancyBox for commercial websites by paying a fee.

Installation[edit]

  1. Download the .zip file (or git clone https://github.com/gilluminate/FancyBoxThumbs.git)
  2. Extract the files to your extensions directory
  3. Add to the end of LocalSettings.php:
    require_once "$IP/extensions/FancyBoxThumbs/FancyBoxThumbs.php";
    
  4. Installation can now be verified through Special:Version on your wiki

Configuration[edit]

You can set fancyBox options by setting a $fbtFancyBoxOptions variable in LocalSettings.php after setting the require_once above.

Example
require_once "$IP/extensions/FancyBoxThumbs/FancyBoxThumbs.php";
$fbtFancyBoxOptions = '{"openEffect":"elastic","closeEffect":"elastic","helpers":{"title":{"type":"inside"}}}';

Known issues[edit]

See also[edit]