Page 1 of 1

Shadow box problem

Posted: 25 Mar 2009, 19:33
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.

Re: Shadow box problem

Posted: 30 Mar 2009, 17:13
by Jan
Hi, please let me know your site, maybe the modal library was not correctly loaded into your site ?

Jan

Re: Shadow box problem

Posted: 31 Mar 2009, 10:20
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.

Re: Shadow box problem

Posted: 02 Apr 2009, 00:53
by Jan
Hi, thank you for this information, I have fixed it in plugin.

Jan