It is currently Sun Dec 17, 2017 12:36 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Oct 30, 2014 12:18 pm 
Offline
User avatar

Joined: Thu Oct 16, 2014 9:59 am
Posts: 7
Location: D-96349 Neufang
 
My gallery contains folders with and without subfolders. So in classic view it looks like this:

Attachment:
before.png
before.png [ 57.36 KiB | Viewed 2591 times ]


I didn't like that mixed view, so I decided to have the same thumbnail for all folders and subfolders. If you wanna have this, too ... edit file "plugins/content/admirorgallery/admirorgallery/classes/agGallery.php".

Find (~ line 185):

Code:
$html.='<img style="height: '.$thumbHeight.'px;" src="'.$thumb_path.'" />' . "\n";

Replace with:

Code:
// $html.='<img style="height: '.$thumbHeight.'px;" src="'.$thumb_path.'" />' . "\n";  // Original-Code
$html.='<img src="path_to_your_thumbnail_image/example-image.jpg" alt="" />' . "\n";  // Same thumbnail for all folders

and change "path_to_your_thumbnail_image/example-image.jpg" to your desired settings.

Now it looks like this:

Attachment:
after.png
after.png [ 16.59 KiB | Viewed 2591 times ]


Top
 Profile  
 
 Post subject: HowTo: Same thumbnail for all image-folders
PostPosted: Thu Oct 30, 2014 12:18 pm 
Top  
PostPosted: Fri Oct 31, 2014 2:01 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
Nice work.
It would be a good idea to consider this as an option in one of the future release.

Thanks :)

_________________
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 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