HowTo: Same thumbnail for all image-folders

Admiror Gallery 5.x.x for Joomla 3.x. support forum.
Post Reply
Message
Author
User avatar
MVN
Posts: 7
Joined: Thu Oct 16, 2014 9:59 am
Location: D-96349 Neufang
Contact:

HowTo: Same thumbnail for all image-folders

#1 Post by MVN »

 
My gallery contains folders with and without subfolders. So in classic view it looks like this:
before.png
before.png (57.36 KiB) Viewed 7720 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: Select all

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

Code: Select all

// $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:
after.png
after.png (16.59 KiB) Viewed 7720 times

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: HowTo: Same thumbnail for all image-folders

#2 Post by Vasiljevski »

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

Post Reply