Error on the gallery Highslide JS (Image Only)

Phoca Gallery - image gallery extension
fabietto488
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 24 Apr 2014, 01:00

Error on the gallery Highslide JS (Image Only)

Post by fabietto488 »

Hello guys!

I use Joomla 3.x and I have a problem: using the plugin button, in the creation on new article, by entering 2 or more image galleries on:

Phoca Gallery Image -> Images -> Detail Window: Highslide JS (Image Only)

after click on a image, the Control Bar remain on the left side in the screen and multiplies for all new click on the images.

Please, can you help me?

For more details, see the images below:

Image

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

Re: Error on the gallery Highslide JS (Image Only)

Post by Jan »

Hi, try to see similar posts in this forum, there was similar problem in some previous versions, but since Phoca Gallery 3 (Joomla! 2.5) this was solved :idea:

Jan
If you find Phoca extensions useful, please support the project
dfs
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 01 Jul 2014, 11:27

Re: Error on the gallery Highslide JS (Image Only)

Post by dfs »

hi,

this error still exist: when there are multiple galleries on one page e.g. in the blog category view then hs.addSlideshow() is called more than once which causes this error.
how can i fix that? all those

Code: Select all

 var phocaZoom = { 
 objectLoadTime : 'after', wrapperClassName: 'dark', outlineWhileAnimating : true, enableKeyListener : false, minWidth : 856, minHeight : 453, dimmingOpacity: 0.8,  fadeInOut : true, contentId: 'detail', objectType: 'iframe', objectWidth: 856, objectHeight: 453 }; if (hs.addSlideshow) hs.addSlideshow({ 
  slideshowGroup: 'groupC0',
  interval: 5000,
  repeat: false,
  useControls: true,
  fixedControls: true,
    overlayOptions: {
      opacity: 1,
     	position: 'top center',
     	hideOnMouseOut: true
	  }
 });
should be combined into one call, but how to do that? :idea:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error on the gallery Highslide JS (Image Only)

Post by Jan »

Hi, this should be solved with the current solution :idea: :

There is this variable:

Code: Select all

var $_plugin_number	= 0;
which means, that it should count the number of instances of the plugin:

Code: Select all

public function _setPluginNumber() {
		$this->_plugin_number = (int)$this->_plugin_number + 1;
	}
and some code is added only first time, then if the plugin number is increased, then it is not more added :idea: :idea:

Jan
If you find Phoca extensions useful, please support the project
maras26
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 23 Jul 2014, 23:49

Re: Error on the gallery Highslide JS (Image Only)

Post by maras26 »

I've got the same problem, after I did upgrade to joomla 3.3. Is there any solution to this? I would like to use boxplus instead of this, but it does not recognize pictures. Pictures are cut. Are there any settings of phoca to eliminated this problem in boxplus? Thanx for any help :)
thedonald
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 26 Jul 2014, 01:41

Re: Error on the gallery Highslide JS (Image Only)

Post by thedonald »

Hi Jan,
I am seeing the exact same issue as the first poster. I upgraded from Joomla 2.5x to 3.3.1 ( and since to 3.3.3) I upgraded phoca gallery and the plugin to the Joomla 3.x versions and all of it seems to be working correctly except when the plugin is used more than once on the same page. Any suggestions to resolve this?

Thanks
-Donald
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error on the gallery Highslide JS (Image Only)

Post by Jan »

Hi, I am still testing it and really cannot find why the if condition for loading the class only one time is ignored - for now I recommend to user other popup method - still trying to find the problem:
- I don't get the problem when more instances are loaded but only e.g. in blog view (when more articles are loaded - maybe the best solution for blog view is to not display the plugins there and display it only in full article :idea: )

Jan
If you find Phoca extensions useful, please support the project
thedonald
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 26 Jul 2014, 01:41

Re: Error on the gallery Highslide JS (Image Only)

Post by thedonald »

Thank you for your effort on this. Perhaps to help you search for issue: I am using the phoca gallery plugin to add images to articles. As you say when there is only one instance of an image on an article page everything is fine. Also when I set "Highslide JS Slide Show = NO in the parameters detail view settings, the image works, though this also removes the navigation bar, and just has the expansion icon in the lower right corner of the image.

hope this helps!

-Donald
AntiDrama
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 21 Nov 2014, 12:15

Re: Error on the gallery Highslide JS (Image Only)

Post by AntiDrama »

Got the same problem in Firefox, Joomla 3, Gallery ver. 4.1.2
Pls help to slove it
AntiDrama
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 21 Nov 2014, 12:15

Re: Error on the gallery Highslide JS (Image Only)

Post by AntiDrama »

for now my solution is adding in components/com_phocagallery/assets/highslide/highslide.css

.highslide-controls {
display:none;
Post Reply