Page 1 of 1

Gallery View auto-slide.

Posted: Tue Jan 24, 2012 8:36 am
by ph55
Hi. Glad to join community.
How to disable auto-slide on Gallery View? ;)

Regards.

Re: Gallery View auto-slide.

Posted: Wed Feb 08, 2012 1:02 pm
by Vasiljevski
I looked the script documentation but I couldn't find any option to stop auto-slide elegantly :)

But you could always use dirty solution :)

Go to : [root]\plugins\content\AdmirorGallery\templates\galleryView3.0, open "index.php" from line 18 to 26 is the init code,

Code: Select all

AG_jQuery("#AG_'.$AG->getGalleryID().' #photos").galleryView({
	  panel_width: '.$AG->params['frameWidth'].',
	  panel_height: '.$AG->params['frameHeight'].',
	  frame_width: '.$AG->params['thumbWidth'].',
	  frame_height: '.$AG->params['thumbHeight'].',
	  nav_theme: "light",
	  pause_on_hover: true,
	  overlay_opacity: 0
  });
add one more parameter :transition_interval: 86400000

Code: Select all

  AG_jQuery("#AG_'.$AG->getGalleryID().' #photos").galleryView({
	  panel_width: '.$AG->params['frameWidth'].',
	  panel_height: '.$AG->params['frameHeight'].',
	  frame_width: '.$AG->params['thumbWidth'].',
	  frame_height: '.$AG->params['thumbHeight'].',
	  nav_theme: "light",
	  pause_on_hover: true,
	  overlay_opacity: 0,
	  transition_interval: 86400000
  });
Now it will take 24 hours for a transition, so it will look like it never moves :)