Gallery albums

Admiror Gallery is free extension for Joomla! 1.6. Joomla! 1.7 and Joomla! 2.5 based websites. Admiror Gallery is all in one, a simple and instant solution for rendering image gallery from folder with images, but very flexible and adaptable.
Post Reply
Message
Author
ankris
Contributor
Contributor
Posts: 20
Joined: Wed Jul 20, 2011 10:06 am

Gallery albums

#1 Post by ankris »

Hi,

I would like to create a Gallery from a folder which contains only subfolders with images in them. The Gallery folder itself doesn't have any images in it.
Something like the image I posted below.

If I put {Gallery folder} into the article, nothing shows. The albums are not created. I have to put at least 1 image into the "Gallery" folder
for the albums to be created. I don't like this. How can I change this behaviour ?
Attachments
image_gallery.jpg
image_gallery.jpg (22.52 KiB) Viewed 15784 times

Admiror Gallery 5 - Fundraising Campaign

fourmat
Posts: 1
Joined: Thu Nov 10, 2011 4:11 pm

Re: Gallery albums

#2 Post by fourmat »

I am having a similar issue. I thought I read a post in the past that said an empty album would be replaced with the default album icon? This is not working for me using the Classic gallery template. Any advice?

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

Re: Gallery albums

#3 Post by Vasiljevski »

Hmm this is strange, I just tested this and saw that in case ankris described (folder that only contains folders with images) I did see albums:
parks->animals->[images]
|| ->landscape->[images]
folderview.jpg
folderview.jpg (24.18 KiB) Viewed 15761 times
Used: {AG}parks{/AG}
Here is the result:
siteview.jpg
siteview.jpg (28.23 KiB) Viewed 15761 times
Did I misunderstood your intension's?
Help Admiror Gallery become even better,
give us a review on JED

ankris
Contributor
Contributor
Posts: 20
Joined: Wed Jul 20, 2011 10:06 am

Re: Gallery albums

#4 Post by ankris »

That' exactly what I mean, but it doesn't work for me like that.
I get a blank page until an image would be placed inside the parks folder.

bbdoc
Maegashira
Maegashira
Posts: 13
Joined: Sun Jun 23, 2013 10:40 am

Re: Gallery albums

#5 Post by bbdoc »

Hello,

I'm new to Admiror Gallery, and really love it (coming from Ozio, but Admiror is far better!).

Anyway, I'm having the same issue... Admiror doesn't want to show me an album unless I put at least a picture in it.

Vasiljevski, if I look at your example, this also works fine for me, because you have at least one picture in your "animals" and "landscape" directory, but if you try to create one more subdirectory, e.g. :

Code: Select all

- test
   - parks
       - animals
       - landscape

and then try to show {AG}test{/AG}

You'll see you won't get anything, because you don't have any picture in your "parks" folder.

In my opinion, it should show the folders, either with a default album pic (that could be set in config) or using the first picture of the first subdirectory it finds (in this case the first picture in "animals" directory...

Thanks for your support

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: Gallery albums

#6 Post by Vasiljevski »

Hmm I see what you mean and thanks for clearing this for me :)

Both of you are wright, it should display some default Thumbnail for folder.

Here is a quick fix, open \plugins\content\admirorgallery\admirorgallery\classes\agGallery.php and make the following changes:
Comment out line 205:

Code: Select all

                if (!empty($thumb_file)) {
                    $this->Album_generateThumb($folderName, $thumb_file);
                } else {
                    //continue; // SKIP IF NO THUMB IMAGES
                }
Also replace line 209 with:
if(!empty($thumb_file))
{
$html.='<img src="' . $this->sitePath . PLUGIN_BASE_PATH . 'thumbs/' . $this->imagesFolderName . '/' . $folderName . '/' . basename($thumb_file) . '" />' . "\n";
}
else
{
$html.='<img src="' . $this->sitePath . PLUGIN_BASE_PATH .'defaultAlbum.png" />' . "\n";
}
And add attached image
Default album thumb
Default album thumb
defaultAlbum.png (3.8 KiB) Viewed 15636 times
to plugins\content\admirorgallery\admirorgallery or create your own, just be sure to name it defaultAlbum.png :)

This should fix this issue. I will add this to the future releases :)
Help Admiror Gallery become even better,
give us a review on JED

ankris
Contributor
Contributor
Posts: 20
Joined: Wed Jul 20, 2011 10:06 am

Re: Gallery albums

#7 Post by ankris »

I made the changes to include the default folder thumbnail.
com_admirorgallery_4.5_FolderFix_en_de_nl.zip
Admiror Gallery 4.5 Complete package including default folder thumbnail fix and Dutch, improved English and German language files
(744.34 KiB) Downloaded 1569 times

bbdoc
Maegashira
Maegashira
Posts: 13
Joined: Sun Jun 23, 2013 10:40 am

Re: Gallery albums

#8 Post by bbdoc »

Thanks a lot for this correction...

Anyway, in a next version, would be nice to add the possibility to define a personal image folder (so one that would not appear as an image with the parent folder, but would only be used as the folder image).

Thanks

Post Reply