Page 1 of 1

Multipile gallery slideshow plugins in one article

Posted: 06 Mar 2012, 08:56
by hagen_fenris
Hi,
i just installed the Phoca Gallery Slideshow Plugin.
I`ve created 6 categories at the Phoca Gallery Component and published each categorie with the plugin in an article.

So i have got:
{pgslideshow id=1|width=100|height=100|delay=2800|image=M}
{pgslideshow id=2|width=100|height=100|delay=2800|image=M}
{pgslideshow id=3|width=100|height=100|delay=2800|image=M}
{pgslideshow id=4|width=100|height=100|delay=2800|image=M}
{pgslideshow id=5|width=100|height=100|delay=2800|image=M}
{pgslideshow id=6|width=100|height=100|delay=2800|image=M}

Unfortunatly not all the plugins show the images of each categorie at the same time, when in vist article at the frontend.
Instead of 6 slideshows, i only got 4 on the screen.
Next time i load the same page, i get 3 oder 4 slideshows.
Another time i get 4 slideshows but others than bevore.....
Sometime i get the whole 6 slideshows...but that`s just luck.

Example: When i visit the page the first time, i get categorie 1,2,3 and 4 to see.
Next time i get 2,3,5 and 6
Next time 2,4,5 and 6

What could that be?
You can see my site here: http://popelgnom.pytalhost.de/

Thanks for yout help.
Regards
Hagen

Re: Multipile gallery slideshow plugins in one article

Posted: 07 Mar 2012, 01:21
by Jan
Hi, the javascript library has some limiation, it can be displayed on the site at most twice :-(

Jan

Re: Multipile gallery slideshow plugins in one article

Posted: 13 Apr 2012, 14:39
by h246198
I have the same problem.

I analysed why it differs every time i reload the page and i see, that perhaps the developer need only change 1 line of code to solve it.

Exampel plugin-Code (5 copys in this example, could be more):

Code: Select all

{pgslideshow id=1|width=90|height=90|delay=1200|image=O}
{pgslideshow id=1|width=90|height=90|delay=1200|image=O}
{pgslideshow id=1|width=90|height=90|delay=1200|image=O}
{pgslideshow id=1|width=90|height=90|delay=1200|image=O}
{pgslideshow id=1|width=90|height=90|delay=1200|image=O}
Generated HTML:

Code: Select all

<div class="phocagalleryslideshow"><div id="phocaGallerySlideshowP6671597510"></div></div>
<div class="phocagalleryslideshow"><div id="phocaGallerySlideshowP2668639004"></div></div>
<div class="phocagalleryslideshow"><div id="phocaGallerySlideshowP12008875518"></div></div>
<div class="phocagalleryslideshow"><div id="phocaGallerySlideshowP12008875518"></div></div>
<div class="phocagalleryslideshow"><div id="phocaGallerySlideshowP6671597510"></div></div>
The problem is, that the id of the <div> shoud generated unique, but it isn't

In this example "phocaGallerySlideshowP12008875518" and "phocaGallerySlideshowP6671597510" is used twice, so the second use of them doesn't work.

The solution shoud be, to generate this id randomly or check, why the used random doesn't work correct.

EDIT: Solution found

The error is in Line 103 in phocagalleryslideshow.php:

Code: Select all

$c = time() * rand(1,10);
change to

Code: Select all

$c = time() . mt_rand();
works fine, tested with 10 Slideshows in a single article!
(sorry for my bad english, my native language is german)

Re: Multipile gallery slideshow plugins in one article

Posted: 18 Apr 2012, 22:24
by Jan
Hi, thank you for this info, I will add it to next release.

Jan

Re: Multipile gallery slideshow plugins in one article

Posted: 18 May 2012, 12:27
by Jan