Hey, nice port to drupal, thx.
My question is the same - http://shadowbox-js.com/forum.html

Its quite easy but then I need to use SB without your module, coz have no idea how to do this with it.

Can you help ?

Comments

benone’s picture

sorry, once again, the link to original issue:

http://shadowbox-js.com/forum.html#nabble-td5464818

thx

matthewn’s picture

Hello. Came across this page, hoping to find an answer. Found none and redoubled my efforts. Tried a few things; here's the first one that worked. (There may be a better/cleaner way.)

In shadowbox.module at line 366, change this:

// Initialize Shadowbox.
drupal_add_js('
  Shadowbox.path = "' . base_path() . $shadowbox_location . '/";
  Shadowbox.init(Drupal.settings.shadowbox);
', 'inline', 'footer');

to this:

// Initialize Shadowbox.
drupal_add_js('
  Shadowbox.path = "' . base_path() . $shadowbox_location . '/";
  Drupal.settings.shadowbox.onOpen = function(currentImage){Shadowbox.play();Shadowbox.pause();};
  Shadowbox.init(Drupal.settings.shadowbox);
', 'inline', 'footer');
manfer’s picture

Status: Active » Closed (fixed)