updating shadowbox version to 3.03

Phoca Gallery - image gallery extension
gerilla
Phoca Member
Phoca Member
Posts: 33
Joined: 04 Nov 2008, 17:16

updating shadowbox version to 3.03

Post 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)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: updating shadowbox version to 3.03

Post by Jan »

Hi, thank you for this guide.

Jan
If you find Phoca extensions useful, please support the project
etkritikonspoudon
Phoca Member
Phoca Member
Posts: 23
Joined: 04 Oct 2010, 03:10

Re: updating shadowbox version to 3.03

Post 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?
Post Reply