Page 1 of 1

Phoca Slideshow Plugin - more slideshows on 1 page?

Posted: 22 Jan 2012, 18:40
by petr
Hello,

I would like to use Phoca Slideshow Plugin on a site I'm just working on, it's perfect soulution for what I need.

But when I use the plugin more then twice in one article, slideshow disapears. If there are two plugins only in on article, it's working normaly:

Code: Select all

<div>{pgslideshow id=10|width=100|height=100|delay=3000|image=M}</div>
<div>{pgslideshow id=11|width=100|height=100|delay=3000|image=M}</div>
but when I use the plugin more times like this:

Code: Select all

<div>{pgslideshow id=10|width=100|height=100|delay=3000|image=M}</div>
<div>{pgslideshow id=11|width=100|height=100|delay=3000|image=M}</div>
<div>{pgslideshow id=12|width=100|height=100|delay=3000|image=M}</div>
<div>{pgslideshow id=13|width=100|height=100|delay=3000|image=M}</div>
it's all gone.

Is there any limitation of number of slideshow plugins in one article? Or any idea why this happens?
I use Joomla 1.5.25, Phoca Gallery 2.8.1, Phoca Slideshow Plugin 2.7.1

Thank you very much,

Petr

Re: Phoca Slideshow Plugin - more slideshows on 1 page?

Posted: 30 Jan 2012, 00:30
by Jan
Hi, yes, the slideshow javascript could be in conflict if more than one instance is displayed, but checking two on my test site without any problem ???

Re: Phoca Slideshow Plugin - more slideshows on 1 page?

Posted: 10 May 2012, 01:55
by Scotty87
Hi there,

I am having the same issue with these two following site, where I am using both 3 plugin codes in 1 article but they're not always working properly - only displays 1 or 2 of 3 images sporadically as you reload the page. This random disappearance is happening on the latest version of the following browser: Chrome, Firefox and IE(9).

Using the latest Joomla 2.5.4, Phoca Gallery 3.2.0 and PG Slideshow Plugin 3.1.3

Site examples
https://www.skylaservices.ca/en/designing
http://energreen.coop/

I am still using it as it does work properly more time than not but it would still be nice to have them show up all the time.

Thanks

Re: Phoca Slideshow Plugin - more slideshows on 1 page?

Posted: 14 May 2012, 12:26
by Magic_Lutin
Hi, (sorry for my english)
I'm trying to do the same with 6 slideshows
and sometimes only 4 or 5 appears
after tracking the bug, I've seen that the div id was the same for 2 slideshow,
the $c is not enough randomized in script.
I've modify the /phocagalleryslideshow.php
at line 103:
// $c = time() * rand(1,10);
$c = time() * mt_rand(1,1000);

and now all 6 appears all the time
If that could solve your issue
Claude (FR)

Re: Phoca Slideshow Plugin - more slideshows on 1 page?

Posted: 17 May 2012, 04:19
by Scotty87
Thanks Magic_Lutin! We will give the modifications a try, I'm sure it will work.

Hopefully Jan can add this on the next release... :)

Re: Phoca Slideshow Plugin - more slideshows on 1 page?

Posted: 18 May 2012, 00:22
by Jan
Hi, yes, will be added to next version.

Jan

Re: Phoca Slideshow Plugin - more slideshows on 1 page?

Posted: 18 May 2012, 12:26
by Jan

Re: Phoca Slideshow Plugin - more slideshows on 1 page?

Posted: 22 May 2012, 15:44
by Scotty87
This is great! Thanks Jan :)