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
Multipile gallery slideshow plugins in one article
-
- Phoca Newbie
- Posts: 7
- Joined: 10 Jun 2009, 11:31
- Jan
- Phoca Hero
- Posts: 48676
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Multipile gallery slideshow plugins in one article
Hi, the javascript library has some limiation, it can be displayed on the site at most twice 
Jan

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 1
- Joined: 13 Apr 2012, 14:21
- Location: Germany, Munich
Re: Multipile gallery slideshow plugins in one article
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):
Generated HTML:
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:
change to
works fine, tested with 10 Slideshows in a single article!
(sorry for my bad english, my native language is german)
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}
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>
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);
Code: Select all
$c = time() . mt_rand();
(sorry for my bad english, my native language is german)
- Jan
- Phoca Hero
- Posts: 48676
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Multipile gallery slideshow plugins in one article
Hi, thank you for this info, I will add it to next release.
Jan
Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48676
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Multipile gallery slideshow plugins in one article
If you find Phoca extensions useful, please support the project