Gallery View auto-slide.

Everything to do with Templates and Templating for Admiror Gallery.
Post Reply
Message
Author
User avatar
ph55
Posts: 2
Joined: Tue Jan 24, 2012 1:44 am

Gallery View auto-slide.

#1 Post by ph55 »

Hi. Glad to join community.
How to disable auto-slide on Gallery View? ;)

Regards.

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: Gallery View auto-slide.

#2 Post 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 :)
Help Admiror Gallery become even better,
give us a review on JED

Post Reply