Gallery3:Modules:fancybox - Gallery Codex
Personal tools


From Gallery Codex

Under construction


Allows integration of Fancybox within Gallery 3.

Once activated, it inserts the needed JavaScript into your page for Fancybox support.
Additional configuration is required. Please make sure visit module's admin page and save settings at least once

Installation / Configuration

Activate the module: Login -> Admin -> Modules. Check the box next to the module. Visit Module Configuration Page to fine-tune the presentation

Please note, module does not replace default functionality of the Wind theme. The following steps are required:

  • in page.html.php comment out line <?= $theme->script("gallery.show_full_size.js") ?>
  • in photo.html.php comment out lines $(".g-fullsize-link").click(function() { $.gallery_show_full_size(<?= html::js_string($theme->item()->file_url()) ?>, full_dims[0], full_dims[1]); return false; });
  • in fancybox module configuration, specify .g-fullsize-link as a target


Necessary javascript references would be added to the page.


version 1.5:

  • Added reminder to make sure that module is initialized before first use
  • Optimized so that G3 does combine JS/CSS code

version 1.4:

  • Fixed issue with module in default state not properly creating JS with settings
  • Some layout cleanup

version 1.3:

  • ADMIN: Added support for [Overlay Dynamic] title position
  • ADMIN: Added option to allow cyclic navigation
  • Fixed issue with [Title Position = Hide] still showing title

version 1.2:

  • Fixed syntax error in IE7/IE8 Compatibility Mode
  • FancyBox core updated to 1.3.4
  • Admin form backend optimization

version 1.1:

  • Options, Options, more options
  • Dynamic JS generation improved

version 1.0

  • Initial release