Captions without file extensions and Paused slideshow

Everything to do with Templates and Templating for Admiror Gallery.
Post Reply
Message
Author
bhcrow
Posts: 1
Joined: Sat Oct 12, 2013 1:35 pm

Captions without file extensions and Paused slideshow

#1 Post by bhcrow »

Hi,
i have a question about template galleryView

i would like to know is it possible to set captions not to show file extensions (.jpg),

and second question: i dont like auto play slides, can we pause it?

thx

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: Captions without file extensions and Paused slideshow

#2 Post by Vasiljevski »

To pause it the best way is to set very large number for transition_interval. To do that open index.php from galleryView template folder and change:

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
  });
to this:

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'].',
          transition_interval: 86400000,
	  nav_theme: "light",
	  pause_on_hover: true
  });
So now transition will happen only if someone stays at your page for a whole day :)

To remove extension, one way is to define caption for every image or to make a small hack in agGallery.php in function writeDescription($imageName).

Code: Select all

    function writeDescription($imageName) {
        return $this->ag_removExtension($this->descArray[$imageName]);
    }
Hope this helps
Help Admiror Gallery become even better,
give us a review on JED

Post Reply