[Solved] Phoca Gallery Slideshow Plugin: All thumbs loaded?

Phoca Gallery plugins - plugins for Phoca Gallery extension
oidia
Phoca Member
Phoca Member
Posts: 10
Joined: 31 Mar 2008, 19:44
Location: Germany

[Solved] Phoca Gallery Slideshow Plugin: All thumbs loaded?

Post by oidia »

Hi,
just noticed a strange behaviour of the slideshow plugin. When this plugin is enabled, it causes to load the thumb images of ALL kategories, even though the page does not include any category. They are included in the page header (javascript) as following:

[code]
/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library ()
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at dynamicdrive.com for this script and 100s more
***********************************************/
var phocagalleryplugin1417799369260830846 = new fadeSlideShow({
wrapperid: "phocaGallerySlideshowP1417799369260830846",
dimensions: [640, 480],
imagearray: ["/images/phocagallery/.........
["/images/phocagallery/.........
["/images/phocagallery/.........
],
displaymode: {type:'auto', pause: 2500, cycles:0,
wraparound:false, randomize: 0},
persist: false,
fadeduration: 3000,
descreveal: "peekaboo",
togglerid: ""
})
... and the next category ...
... and another category ...
...
[/code]

Example: http://www.burgtheater-dringenberg.de/aktuell.html

Due to this, the site takes longer and longer to load, the more images and categories I have. I assume this is not intended, but I am unsure what the reason might be. Probably it is an incompatibility with the iCagenda component...

Maybe anyone else using this plugin can check his site? Anyone having an idea?

Thanks, Markus
Last edited by oidia on 10 Jan 2015, 17:47, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48041
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Slideshow Plugin: All thumb images are loa

Post by Jan »

Hi, it loades all images from currenct category, to display them in the slideshow - not all images from gallery :idea:
If you find Phoca extensions useful, please support the project
oidia
Phoca Member
Phoca Member
Posts: 10
Joined: 31 Mar 2008, 19:44
Location: Germany

Re: Phoca Gallery Slideshow Plugin: All thumb images are loa

Post by oidia »

Hi Jan,

well, no. If you examine the HTML code returned by the link I posted, there is a long javascript generated by the slideshow plugin including code for each category and its images (thumbnails). And the most strange thing is that the linked page even does not contain any such slideshow!

Even the linked events on the given page do not contain a slideshow. But there are other events (not displayed on that page) which do contain a slideshow, like this:
http://www.burgtheater-dringenberg.de/c ... ooney.html
If you examine the HTML code returned for this site, only the images of the concrete category are included.

So why does the plugin return all categories incl. thumbnails in the page generated from the link in the 1st post? Any ideas?

Markus
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48041
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Slideshow Plugin: All thumb images are loa

Post by Jan »

Hi, now I understand - it is not produced by component but by plugin.

This seems like there is a list of articles and such articles - every from the list includes one slideshow instance for category (I don't know but maybe this is because every article includes the slideshow plugin)

So maybe you can try to limit the plugin (depends on which version you are using):

Code: Select all

$view = $app->input->get('view', '', 'string');
		if ($view != 'article') { return true;}
This should be added to top of the plugin - in the method:
public function onContentPrepare($context, &$article, &$params, $page = 0) {
....

Then you will limit this plugin to be not displayed on parts which are not "article"

Please, try to customize it and let me know.

Jan
If you find Phoca extensions useful, please support the project
oidia
Phoca Member
Phoca Member
Posts: 10
Joined: 31 Mar 2008, 19:44
Location: Germany

[Solved] Phoca Gallery Slideshow Plugin: All thumb are loade

Post by oidia »

Hi Jan,

sorry for the long delay in answering, but I investigated on the issue and found that it is a bug in the iCagenda component. I discussed with the author of that component and he finally fixed the issue. A new release is not yet available but the fix will be part of the next release of the iCagenda component.

Your plugin is just working fine :-)

Thanks for your support!
Markus
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48041
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Solved] Phoca Gallery Slideshow Plugin: All thumbs load

Post by Jan »

Ok, thank you for the info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply