It is currently Sat Nov 18, 2017 2:01 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Feb 09, 2015 2:23 pm 
Offline

Joined: Tue Jul 29, 2014 5:18 am
Posts: 3
Hello, I tried to change the settings in agHelper.php in order to see tot it that the newest album is the first in the list. And it worked for the albums. But in an album I like the pictures to be displayed bij name: picture-001.jpg ; picture-002.jpg ; etc. etc.
In my case I like to present pictures of a yearly event (theater play) in a wat that you see the lart event (2015) as the first album, but pictures taken during the play in chronological order. What else could I do please?
F.i.: My album-system contains more than 20.000 pictures. http://www.grolloo.com/fotoalbum?AG_MK=0&AG_form_paginInitPages_0=1&AG_form_albumInitFolders_0=/93%20TOG/2015%20Opa%20Ziedspan&AG_MK=0


Top
 Profile  
 
 Post subject: Reverse order albums in AG 5.0
PostPosted: Mon Feb 09, 2015 2:23 pm 
Top  
PostPosted: Thu Mar 19, 2015 4:54 pm 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
I'm not sure, but it seems to me that you fixed the issue :)

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


Top
 Profile  
 
PostPosted: Sat Mar 28, 2015 5:01 pm 
Offline

Joined: Tue Jul 29, 2014 5:18 am
Posts: 3
Hello,

No, I am sorry, but the main-Albums are OK, because I want them in alphabetic order. (http://www.grolloo.com/fotoalbum)
When I than choose f.i. Crescendo (http://www.grolloo.com/fotoalbum?AG_MK= ... do&AG_MK=0)
You can see that the serie starts with "2002 Aa en Hunze" and so on. Here it whould be nice if I could change things in a way that you see the latest added album was shown first.

When I make changes in agHelper.php than the main-Album is in the wrong way.
I hope I made my self clair.

So, maybe it is not possible. But I like to be sure.

Thanks in advance.


Top
 Profile  
 
PostPosted: Sun Sep 27, 2015 8:07 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
I see your point.

But it's a bit tricky to do that and keep the original behavior for other galleries.

What you could do is add an extra parameter inline, and than check for that parameter in ag_gallery.php so if it exists reverse order else do nothing.
This would be a nice way, if you had a separated gallery's, but I see that in your case you have one and the rest are derived.

The only possible solution that comes to my mind is to check the album name, so if it is "Crescendo" reverse the order, if not do as expected.

In the code that would look like:
Code:
    /**
     *  Loads images array, sorted as defined bu parametar.
     */
    private function loadImageFiles() {
        $this->images = agHelper::ag_imageArrayFromFolder($this->imagesFolderPhysicalPath);
        if (!empty($this->images)) {
            $this->images = agHelper::array_sorting($this->images, $this->imagesFolderPhysicalPath,$this->params['arrange']);
            if(strcmp($imagesFolderName,"Cresendo") == 0) {
                $this->images = array_reverse($this->images);
            }
        }

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