Phoca Slideshow Plugin - more slideshows on 1 page?

Phoca Gallery plugins - plugins for Phoca Gallery extension
petr
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 22 Jan 2012, 18:17

Phoca Slideshow Plugin - more slideshows on 1 page?

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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 ???
If you find Phoca extensions useful, please support the project
Scotty87
Phoca Member
Phoca Member
Posts: 24
Joined: 24 Oct 2008, 07:39

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

Post 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
Magic_Lutin
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 14 May 2012, 12:17

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

Post 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)
Scotty87
Phoca Member
Phoca Member
Posts: 24
Joined: 24 Oct 2008, 07:39

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

Post 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... :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hi, yes, will be added to next version.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

If you find Phoca extensions useful, please support the project
Scotty87
Phoca Member
Phoca Member
Posts: 24
Joined: 24 Oct 2008, 07:39

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

Post by Scotty87 »

This is great! Thanks Jan :)
Post Reply