Multiple gallery with HighSlide

Phoca Gallery plugins - plugins for Phoca Gallery extension
cultroy
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 02 Mar 2016, 15:33

Multiple gallery with HighSlide

Post by cultroy »

Hello,

I have a problem with phoca Gallery plugin v 4.2.1.
My version of Joomla is: Joomla 3.4.8
My version component Phoca: 4.2.2

The problem is with multiple galery highslide.

In my article I have 2 category has displayed:

Code: Select all

<Div id = "one"> {phocagalleryview=category|categoryid=2|limitstart=0|limitcount=0|imageshadow=none|detail=5|displayname=1|displaybuttons=1|displaydescription=1|pluginlink=0|type=0|imageordering=7}</div>
<Hr />
<Div id = "two"> {phocagallery view = category | categoryid = 4 | limitstart = 0 | limitcount = 0 | detail = 5 | float = left | pluginlink = 0 | type = 0} </ div>
but both galery is the same group (slideshowGroup = C0) !!! So thumbnails of two gallery are displayed in thumbnails.
multiple instance of not working

I'm looking for, but without finding the reason.

I specify that on Joomla 2.5 is the latest component and plugin it works ...

http://mlgb.iweb-concept.fr/index.php/galerie-test
Thank you for your help.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple gallery with HighSlide

Post by Jan »

Hi, I get 404 on the page :idea:

Jan
If you find Phoca extensions useful, please support the project
cultroy
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 02 Mar 2016, 15:33

Re: Multiple gallery with HighSlide

Post by cultroy »

Sorry, here is the link:
http://mlgb.iweb-concept.fr/index.php/galerie-test

Thank you for your reply
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple gallery with HighSlide

Post by Jan »

Hi, there is a common problem which cannot be solved. HighSlide JS can be displayed in articles and if e.g. two different codes are set, both get own unique ID and they are not grouped. But on the site, there are displayed two articles (I suppose in some blog or article list view) - both get the same ID, as the setting ID is only working inside the article.

There are different ways to somehow solve it:
- add the plugin after read more - so it will be displayed only when full article is displayed
- try to use another popup method
- or try to customize it and set for each article an ID but this can be problematic because it can be then in conflict

Try the following:
EDIT: plugins\content\phocagallery\phocagallery.php line cca 381
FROM:

Code: Select all

$btn->hsClass				= $highslide_class;
TO:

Code: Select all

$btn->hsClass				= $highslide_class;
$btn->articleId				= (int)$article->id;
AND EDIT: administrator\components\com_phocagallery\libraries\phocagallery\render\renderdetailwindow.php line cca 221
FROM:

Code: Select all

$document->addCustomTag( self::renderHighslideJS($this->extension, $this->popupWidth, $this->popupHeight, $this->hsSlideshow, $this->hsClass, $this->hsOutlineType, $this->hsOpacity, $this->hsCloseButton));
TO:

Code: Select all

if (!isset($this->aritcleId)) {
	$this->articleId = '';
}
$document->addCustomTag( self::renderHighslideJS($this->extension, $this->popupWidth, $this->popupHeight, $this->hsSlideshow, $this->hsClass, $this->hsOutlineType, $this->hsOpacity, $this->hsCloseButton, $this->articleId));
and line 227

FROM:

Code: Select all

$this->b1->set('highslideonclick', self::renderHighslideJSImage($this->extension, $this->hsClass, $this->hsOutlineType, $this->hsOpacity, $this->hsFullImg));
TO:

Code: Select all

$this->b1->set('highslideonclick', self::renderHighslideJSImage($this->extension, $this->hsClass, $this->hsOutlineType, $this->hsOpacity, $this->hsFullImg, $this->articleId));
This should solve it, please let me know if it works, if yes, I will try to implement it in next version.

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

Re: Multiple gallery with HighSlide

Post by Jan »

Hi, set in version 4.3.0

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