Page 1 of 1

[Solved] Multiple Gallerys in one Article /JAK lightbox prob

Posted: 26 Oct 2014, 12:18
by ffst
Hello to All,

we have trouble with the phoca gallery Plugin and hope somebody can support us.
Settings:

- Joomla 3.3.6
- Phoca Gallery 4.1.2
- Phoca Gallery Plugin 4.1.2
- JAK lightbox default in global settings

We use the gallery code four times in one article:

Description 1
{phocagallery view=category|categoryid=137}

Description 2
{phocagallery view=category|categoryid=135}

Description 3
{phocagallery view=category|categoryid=136}

Description 4
{phocagallery view=category|categoryid=134}


=> The first Gallery opens in JAK light box. The second, third and fourth opens the selected image in the same window without the JAK lightbox.

I set the shadowbox as default and now all gallerys open in the shadowbox window.

It seems that this occurs only with the JAK lightbox

Thanks in advance
Greetings
FFST

Re: Multiple Gallerys in one Article / JAK lightbox problem

Posted: 27 Oct 2014, 01:40
by Jan
Hi, do you get any javascript conflicts there. Some of the javascript libraries can have problems with multiple instances :idea:

https://www.phoca.cz/documents/16-joomla ... -conflicts

Jan

Re: Multiple Gallerys in one Article / JAK lightbox problem

Posted: 27 Oct 2014, 21:03
by ffst
Hi Jan,

thanks for the quick response. In the Console of Firefox i got some Reference Errors in the JS Tab:

ReferenceError: optgjaksPlPhocaGalleryPlf84ae07b is not defined
ReferenceError: optgjaksPlPhocaGalleryPlc4b862d2 is not defined
ReferenceError: optgjaksPlPhocaGalleryPleac12b18 is not defined

The Installation where this Problem occurs is a upgraded Installation of this system:

joomla 2.5.27
Phoca Gallery 3.2.7
Phoca Gallery Plugin 3.2.0

With this config, we had no Problems with the JAK Box.

FFST

Re: Multiple Gallerys in one Article / JAK lightbox problem

Posted: 30 Oct 2014, 01:51
by Jan
Hi, thank you for the info, confirmed. I will fix it in next version.

Quick fix:
open:
administrator\components\com_phocagallery\libraries\phocagallery\render\renderdetailwindow.php

line cca: 270, comment this line:
$library->setLibrary('pg-group-jak-pl', 1);

so:
FROM:

Code: Select all

$library->setLibrary('pg-group-jak-pl', 1);
TO:

Code: Select all

//$library->setLibrary('pg-group-jak-pl', 1);
Jan

Re: [Solved] Multiple Gallerys in one Article /JAK lightbox

Posted: 31 Oct 2014, 11:03
by ffst
Hi Jan,

thanks for the quick Solution and the workaround. I`ve checked it on our Testsystem and now it works.
So we can go on with our migration plan to Joomla3

ffst

Re: [Solved] Multiple Gallerys in one Article /JAK lightbox

Posted: 01 Nov 2014, 22:01
by Jan
Ok, great to hear it.

Jan

Re: [Solved] Multiple Gallerys in one Article /JAK lightbox

Posted: 30 Jun 2015, 23:31
by Jan
Set in Phoca Gallery 4.2.0