Admiror Joomla! Community
http://www.vasiljevski.com/forum/

Captions without file extensions and Paused slideshow
http://www.vasiljevski.com/forum/viewtopic.php?f=35&t=1067
Page 1 of 1

Author:  bhcrow [ Sat Oct 12, 2013 1:38 pm ]
Post subject:  Captions without file extensions and Paused slideshow

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

Author:  Vasiljevski [ Tue Oct 15, 2013 11:36 am ]
Post subject:  Re: Captions without file extensions and Paused slideshow

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:
  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:
  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:
    function writeDescription($imageName) {
        return $this->ag_removExtension($this->descArray[$imageName]);
    }


Hope this helps

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/