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.
The JS code was largely rewritten by Thijs Kinkhorst based on the approach in SlimBoxThumbs version 2014-04-01, which is copyright Vitaliy Filippov, GNU GPL 3.0 or later. This is to incorporate adequate scaling of the displayed images.
- Version 2 was completely re-written.
- Takes advantage of ResourceLoader
- Makes better use of JQuery for the URL rewrite.
- Upgraded to fancyBox v2
- Provides ability to customize fancyBox options
This Extension is released under the GPLv3 license.
This project includes fancyBox JQuery Extension fancyBox 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.
- Download the .zip file
- Extract the files to your
extensions
directory - Rename
gilluminate-FancyBoxThumbs-xxxxxx
toFancyBoxThumbs
- Add to the end of LocalSettings.php:
require_once("$IP/extensions/FancyBoxThumbs/FancyBoxThumbs.php");
- Installation can now be verified through
Special:Version
page on your wiki
You can set fancyBox options by setting a $fbtFancyBoxOptions
variable in LocalSettings.php after setting the require_once
above.
For example:
require_once("$IP/extensions/FancyBoxThumbs/FancyBoxThumbs.php"); $fbtFancyBoxOptions = '{"openEffect":"elastic","closeEffect":"elastic","helpers":{"title":{"type":"inside"}}}';