Shadow box problem

Phoca Gallery plugins - plugins for Phoca Gallery extension
labarik
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 25 Mar 2009, 19:11

Shadow box problem

Post by labarik »

Hi all,

I want to display images from a category in an article. Here is my code :

Code: Select all

{phocagallery view=category|categoryid=16|limitstart=0|limitcount=4|detail=3|displayname=0|displaydetail=0|displaydownload=0|imagebgcolor=#000000|bgcolor=#000000|bgcolorhover=#333333|bordercolor=#666666|bordercolorhover=#666666}
It works fine... except that "detail" appears not to be taken into account. When I click on my images, there is no shadow box, only the large image in a new browser page.
Do I have to do something else ?
Thanks a lot for your help.
Best,

Lab.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Shadow box problem

Post by Jan »

Hi, please let me know your site, maybe the modal library was not correctly loaded into your site ?

Jan
If you find Phoca extensions useful, please support the project
labarik
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 25 Mar 2009, 19:11

Re: Shadow box problem

Post by labarik »

Hi Jan,

First, thanks for all your work.
Second, I have found where the problem was : in the plugin you don't call the right JS method here :

Code: Select all

window.onload = function(){...} (line 647 in the addCustomTag function)
I have checked the component which is working great and realised I had to put this :

Code: Select all

window.addEvent(\'domready\', function(){...} (category/view.html.php, line 481, addCustomTag function)
Now it's working like a charm.
Best,

Lab.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Shadow box problem

Post by Jan »

Hi, thank you for this information, I have fixed it in plugin.

Jan
If you find Phoca extensions useful, please support the project
Post Reply