Phoca Gallery Image:controls and arrows multipling!

Phoca Gallery modules - modules for Phoca Gallery extension
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Re: Phoca Gallery Image:controls and arrows multipling!

Post by phidias81 »

Hello, I just updated component and module to the last version available, and nothing changed, and as you can see in the linked image at top right, there is a bar opened for each image view, so I have to turn off Detail view on the module.


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

Re: Phoca Gallery Image:controls and arrows multipling!

Post by Jan »

Hi, which latest version: 2.8.1 or 3.2.3 (or 4)

- how much instances of module you are running on the site?
- does your site user another extension using Highslide?
- can I see the site live? (to see the html code)?

Jan
If you find Phoca extensions useful, please support the project
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Re: Phoca Gallery Image:controls and arrows multipling!

Post by phidias81 »

The version is 3.2.3 and I have 3 instances on the homepage and 2 in the rest. This is the link http://www.nomadtravellers.com/
I also use highslite to open the images in the articles. In this moment the Phoca module is connected to Category view, not to detail view. Let me know if I should switch
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Image:controls and arrows multipling!

Post by Jan »

Hi, the problem is the count of instances, reduce it to only one as the module is only one instance module (it can be used for more instances but then it can make problems like by Highslide JS. As there is only one ID possible for module and such ID is in conflict by different instancies)

The system can use only one ID to detect the module, so it can be used only one time per site (such feature (used e.g. by Highslide JS) unfortunatelly does not allow to use the module with more instances) It is not possible to add different IDs for different module instances as the component renders the unique code for the module ID and component code have no information about how many instances the module will produce, this is why the module should be used as one instance module :-(

Not sure how to explain it better. The component has a static code with static module ID (it cannot include dynamic code as the code get no information about system and its parts). So the module which should work as one instance module is tied to static code of the component and use only one ID (this is used by Highslide JS - some other methods don't use ID in html code, instead of it e.g. they use class attribute and therefore other methods can run multiinstancies). The module can be modified so every instance get other module ID but then it will not get any code from component (in case the id is static and unique - it gets it from component as the component use this static information, in case it is dynamic, the module get no information because component has no dynamic possibilites :-( )

So in fact you can run 3 instancies of Highslide JS on the site:
module, component, plugin as all three parts have own static javascritp methods

but you cannot run 3 instancies for modules only as module has only one static javascript method so this:

component, plugin, 3 x module ... is in conflict then :-(

Jan

Jan
If you find Phoca extensions useful, please support the project
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Re: Phoca Gallery Image:controls and arrows multipling!

Post by phidias81 »

Ok, thank you for this complete answer!
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Re: Phoca Gallery Image:controls and arrows multipling!

Post by phidias81 »

You better change Detail view method, or if you want to live Highslide, you shouldn't link it to detail view, but rather to category view.
I eventually abandoned highslide and I'm using nopopup with multibox on instead, and I have no more problems

http://www.nomadtravellers.com/photo-al ... &buttons=1
Post Reply