It,s my first post. Sorry for my english (i'm from Poland).
Does anyone have a problem with displaying shadowbox with this Plugin? Here is the solution:
Into file: plugins/content/phocagallery.php near line 358 (
I changed a few lines and this number line into my file is 358) you must replace window.onload function to window.addEvent:
orginal:
Code: Select all
if ( $libraries['pg-group-shadowbox']->value == 0 ) {
$document->addCustomTag('<script type="text/javascript">
Shadowbox.loadSkin("classic", "'.JURI::base(true).'/components/com_phocagallery/assets/js/shadowbox/src/skin");
Shadowbox.loadLanguage("'.$sb_lang.'", "'.JURI::base(true).'/components/com_phocagallery/assets/js/shadowbox/src/lang");
Shadowbox.loadPlayer(["img"], "'.JURI::base(true).'/components/com_phocagallery/assets/js/shadowbox/src/player");
window.onload = function(){
Shadowbox.init();
}
</script>');
$library->setLibrary('pg-group-shadowbox', 1);
}
Code: Select all
if ( $libraries['pg-group-shadowbox']->value == 0 ) {
$document->addCustomTag('<script type="text/javascript">
Shadowbox.loadSkin("classic", "'.JURI::base(true).'/components/com_phocagallery/assets/js/shadowbox/src/skin");
Shadowbox.loadLanguage("'.$sb_lang.'", "'.JURI::base(true).'/components/com_phocagallery/assets/js/shadowbox/src/lang");
Shadowbox.loadPlayer(["img"], "'.JURI::base(true).'/components/com_phocagallery/assets/js/shadowbox/src/player");
window.addEvent(\'domready\', function(){
Shadowbox.init()
});
</script>');
$library->setLibrary('pg-group-shadowbox', 1);
}