Extension:FancyBoxThumbs

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

Release status:Extension status stable

ImplementationTemplate:Extension#type User interface
DescriptionTemplate:Extension#description Displays thumbnailed images in a Mac-style "lightbox" that floats overtop of web page.
Author(s)Template:Extension#username Jason Gill (gilluminatetalk)
Latest versionTemplate:Extension#version 2.1 (2013-11-26)
MediaWikiTemplate:Extension#mediawiki 1.17+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 3.0 or later
Download
ParametersTemplate:Extension#parameters
  • $fbtFancyBoxOptions
TagsTemplate:Extension#tags
* shadowbox
  • lightbox
  • slimbox
  • fancybox
  • thumbnail
  • preview
  • images
Hooks usedTemplate:Extension#hook
BeforePageDisplayManual:Hooks/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. Rename gilluminate-FancyBoxThumbs-xxxxxx to FancyBoxThumbs
  4. Add to the end of LocalSettings.php:
    require_once "$IP/extensions/FancyBoxThumbs/FancyBoxThumbs.php";
    
  5. 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]