It is currently Sun Mar 24, 2019 9:22 pm

All times are UTC + 1 hour [ DST ]

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Oct 22, 2014 1:31 pm 
User avatar

Joined: Thu Oct 16, 2014 9:59 am
Posts: 7
Location: D-96349 Neufang
Hi, first of all ... thanxxx a lot for this great component!

I've added some code to the "index.php" of fancybox-popup (Path: ./plugins/content/admirorgallery/admirorgallery/popups/fancybox) to show an image counter. Now my part of "index.php" looks like this:

<script type="text/javascript" charset="utf-8">
   AG_jQuery("a[rel=' . $this->popupEngine->rel . ']").fancybox({
      \'transitionIn\' : \'fade\', // Options: none, elastic, fade
      \'transitionOut\' : \'fade\',
      \'easingIn\' : \'easeOutBack\', // Option: swing
      \'easingOut\' : \'easeInBack\',
      \'overlayOpacity\' : \'1.0\', // Background-Transparency
      \'overlayColor\' : \'#000\', // Background-Color
      \'titleShow\' : \'true\',
      \'titlePosition\' : \'over\',   // Options: inside, outside, over || Also change <span id> at titleFormat!
      \'titleFormat\' : function(title, currentArray, currentIndex, currentOpts) {
         return \'<span id="fancybox-title-over">Image \' +  (currentIndex + 1) + \' of \' + currentArray.length + \'</span>\';   // code without image-title
         // return \'<span id="fancybox-title-over">Image \' +  (currentIndex + 1) + \' of \' + currentArray.length + \'&nbsp;-&nbsp;\' + title + \'</span>\';   // code with image-title

'Cause I'm an absolutely JavaScript-Noop, -Dummy (or whatever you want to say) ... can anyone please check this code, if there's a security risk?

BTW: I've removed the copyright-link from the gallery and added it to the credits of my site. Is this ok or allowed?

Update 30.10.2014:

After the code was checked by members of stackoverflow, I changed the subject to a "HowTo".

Last edited by MVN on Fri Nov 07, 2014 8:49 am, edited 1 time in total.

 Post subject: HowTo: FancyBox - Image Counter
PostPosted: Wed Oct 22, 2014 1:31 pm 
PostPosted: Fri Oct 31, 2014 2:13 am 
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1249
Location: Novi Sad, Serbia
Nice work.


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

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 3 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:  

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

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