Bug into slideshow plugin

Phoca Gallery plugins - plugins for Phoca Gallery extension
kindUp
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 04 Oct 2009, 10:30

Bug into slideshow plugin

Post by kindUp »

Hi,
On the home page I'm displaying the first article in introtext and fulltext, and three articles - only introtext. When the slideshow will put in the introtext of one of these three articles is ok, but when he will put in the introtext two or three articles is - stack overflow.
In line about 180

Code: Select all

$script .= "if(window.onload) {\n";
$script .= "var temp = window.onload;\n";
$script .= "window.onload=function(e) {\n";
$script .= "temp(e);\n";
$script .= "fadeshowladen".$c."();\n";
$script .= "};\n}\n else{\n window.onload=function(e) {\n";
$script .= "fadeshowladen".$c."();\n";
$script .= "};\n}";
change two lines: 1 and 3 (added ".$c."), solution:

Code: Select all

$script .= "if(window.onload) {\n";
$script .= "var temp".$c."= window.onload;\n";
$script .= "window.onload=function(e) {\n";
$script .= "temp".$c."(e);\n";
$script .= "fadeshowladen".$c."();\n";
$script .= "};\n}\n else{\n window.onload=function(e) {\n";
$script .= "fadeshowladen".$c."();\n";
$script .= "};\n}";
kindUp
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug into slideshow plugin

Post by Jan »

Hi, yes the javascript of the slideshow has some limitation, you can display only two on the site :-(
If you find Phoca extensions useful, please support the project
Post Reply