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

Phoca Gallery plugins - plugins for Phoca Gallery extension
ffst
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 26 Oct 2014, 12:01
Location: Germany / Bavaria

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

Post 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
Last edited by ffst on 31 Oct 2014, 11:00, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple Gallerys in one Article / JAK lightbox problem

Post 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
If you find Phoca extensions useful, please support the project
ffst
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 26 Oct 2014, 12:01
Location: Germany / Bavaria

Re: Multiple Gallerys in one Article / JAK lightbox problem

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

Re: Multiple Gallerys in one Article / JAK lightbox problem

Post 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
If you find Phoca extensions useful, please support the project
ffst
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 26 Oct 2014, 12:01
Location: Germany / Bavaria

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

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

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

Post by Jan »

Ok, great to hear it.

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

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

Post by Jan »

Set in Phoca Gallery 4.2.0
If you find Phoca extensions useful, please support the project
Post Reply