Since I'm using Mootools elsewhere on my site, which is not compatible with the "Prototype/scriptaculous"-library used in SOBI Gallery, I've changed the code to make use of "Slimbox" instead (a Lightbox clone for Mootools).
A positive side effect is that I no longer have any problem with Flash items (mp3 player etc) floating on top of the Lightbox.
This is how I did it, if anyone are curious.
Go to:
http://www.digitalia.be/software/slimbox and download the slimbox.
Uncompress it and place it on your server, let's say at:
www.yoursite.com/myscripts/slimboxIf you are not already using Mootools, then go to:
http://mootools.net/downloadThis library is modular, and you can choose just the parts needed for the Slimbox to function. If you believe that you will not experiment with it further, then click the following checkboxes (otherwise, click them all):
Native: Array, String, Function, ElementWindow: Window.Base, Window.SizeEffects: Fx.Style, Fx.Styles, Fx.Transitions...then click the download button.
Place the downloaded file where you can find it on your server. Like next to the slimbox folder at:
www.yoursite.com/myscripts/mootools.jsNow for the changes in the code:
Find the file "gallery.class.php" which should be located at:
www.yoursite.com/components/com_sobi2/plugins/gallery/gallery.class.phpOpen it and find the following piece of code (somewhere around line 83-90):
$config->loadScript("prototype");
$mainframe->addCustomHeadTag("<script type='text/javascript' src='{$mosConfig_live_site}/components/com_sobi2/plugins/gallery/lightbox.js'></script>");
$mainframe->addCustomHeadTag("<script type='text/javascript' src='{$mosConfig_live_site}/components/com_sobi2/plugins/gallery/scriptaculous.js?load=effects'></script>");
$style = "<style type=\"text/css\"> \n\t" .
"#prevLink:hover, #prevLink:visited:hover { background: url({$mosConfig_live_site}/components/com_sobi2/plugins/gallery/images/prev.gif) left 15% no-repeat; } \n\t\t" .
"#nextLink:hover, #nextLink:visited:hover { background: url({$mosConfig_live_site}/components/com_sobi2/plugins/gallery/images/next.gif) right 15% no-repeat; } \n\t\t" .
"</style>\n";
$mainframe->addCustomHeadTag($style);
Comment it out by placing a slash and a star (
/* ) before this code snippet, and a star and slash after it (
*/ ).
Like this:
/*
(the codesnippet shown above)
*/
Then add the following instead:
$mainframe->addCustomHeadTag("<script type='text/javascript' src='{$mosConfig_live_site}/myscripts/mootools.js'></script>");
$mainframe->addCustomHeadTag("<script type='text/javascript' src='{$mosConfig_live_site}/myscripts/slimbox/js/slimbox.js'></script>");
$mainframe->addCustomHeadTag("<link rel='stylesheet' href='{$mosConfig_live_site}/myscripts/slimbox/css/slimbox.css' type='text/css' media='screen' />");
(If you are already using Mootools in your site template, you can probably skip the first line above. If you named the folders differently, adjust the paths shown )
Save, and upload the modified file. Done!