It is currently Fri Dec 15, 2017 12:31 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun May 05, 2013 12:27 pm 
Offline

Joined: Sun May 05, 2013 12:19 pm
Posts: 1
Just using Admiror Gallery 4.5.0 for an photo gallery. The only extra thing I want to do is put the caption of the image below the thumbnail instead of below on it in the pop-up.
I have tried to edit the template in plugins/content/admirorgallery/admirorgallery/templates/classic/index.php by line 47 and further

Code:
if (!empty($AG->images)) {
    foreach ($AG->images as $imageKey => $imageName) {
        $html.= '<span class="ag_thumb' . $AG->params['template'] . '">';
      $html.= $AG->writePopupThumb($imageName);
      $html.= test caption;
        $html.='</span>';

The extra line "$html.= test caption;" puts the "test caption" text below every thumbnail. No I'm looking for the correct code to put the caption text filled in at the back-end of the component below it instead of this static text. Could anyone help me with this missing code line?

\\Edit: Found it here viewtopic.php?f=5&t=11#p454 :)


Top
 Profile  
 
 Post subject: Add captions below thumbnails -SOLVED
PostPosted: Sun May 05, 2013 12:27 pm 
Top  
PostPosted: Sun Jun 02, 2013 12:34 pm 
Offline

Joined: Sun Jun 02, 2013 12:27 pm
Posts: 1
Thanks for the great fix!

However when I apply the same solution, the captions appear on the right of each thumbnail instead of below it.

Code:
if (!empty($AG->images)) {
    foreach ($AG->images as $imageKey => $imageName) {
        $html.= '<span class="ag_thumb' . $AG->params['template'] . '">';
        $html.= $AG->writePopupThumb($imageName);
   $html.= $AG->writeDescription($imageName); // Bing: added this to include caption under thumbnails.
        $html.='</span>';
    }
}


Tried kekeljevic's solution (http://www.vasiljevski.com/forum/viewtopic.php?p=455#p455) to use tables to display each thumbnail but that ended up displaying each thumbnail in a new line instead.

Any help will be greatly appreciated!

Edit: Issue solved! Realised I need to update the CSS class names in template.css in my custom template 'classic-captions'. To change all CSS class with 'classic' to 'classic-captions'.


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 1 guest


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