Page 1 of 1

updating shadowbox version to 3.03

Posted: 13 Nov 2010, 18:14
by gerilla
i have an obbession about using latest versions o f applications :D so i have integrated latest shadowbox plugin to phoca gallery. it is simple... just download the latest shadowbox version from here with mootools adapter and only image player. then delete all files under /public_html/components/com_phocagallery/assets/js/shadowbox and copy all new files under this directory.

finally open /public_html/components/com_phocagallery/views/category/view.html.php file and delete this row:

Code: Select all

$document->addScript(JURI::base(true).'/components/com_phocagallery/assets/js/shadowbox/adapter/shadowbox-mootools.js');
and change this:

Code: Select all

				$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");
to this:

Code: Select all

$document->addCustomTag('<link rel="stylesheet" type="text/css" href="'.JURI::base(true).'/components/com_phocagallery/assets/js/shadowbox/shadowbox.css">
<script type="text/javascript">
thats all. good luck 8)

Re: updating shadowbox version to 3.03

Posted: 16 Nov 2010, 22:16
by Jan
Hi, thank you for this guide.

Jan

Re: updating shadowbox version to 3.03

Posted: 16 Nov 2010, 23:48
by etkritikonspoudon
that's nice, some cool features in there for the display of images and video...

Anyone else brave enough to try it and verify it's working?