It is currently Sat Dec 16, 2017 11:15 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Oct 12, 2013 1:38 pm 
Offline

Joined: Sat Oct 12, 2013 1:35 pm
Posts: 1
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


Top
 Profile  
 
 Post subject: Captions without file extensions and Paused slideshow
PostPosted: Sat Oct 12, 2013 1:38 pm 
Top  
PostPosted: Tue Oct 15, 2013 11:36 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
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

_________________
Help Admiror Gallery become even better,
give us a review on JED


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

 


All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

This is the official Admiror Joomla! Community Forum. You are welcome to join the Admiror Joomla! Community. All Admiror Joomla! Extensions Users, Joomla! Developers, PHP or mySQL Developers are welcome to support & contribute to Admiror Joomla! Projects.

Joomla! is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect for your website!

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques and software patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla! is the property of Open Source Matters, Inc. All rights reserved. Read more about Joomla! at http://www.joomla.org/.


Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group