Fotogalerie : pictures displayed in wrong order

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Post Reply
delan10
Posts: 32
Joined: Sat May 24, 2008 6:18 pm

Fotogalerie : pictures displayed in wrong order

Post by delan10 » Fri May 22, 2015 4:59 pm

Hello

I'm using the Fotogalerie plugin (v4.0) for some of my websites, which I find very usefull.

But is there a way to display the pictures in chronological order ? Indeed I would like the last picture uploaded to be shown in first position in the album (and not last as by default).

What piece of code should I modify for that ?

Thanks in advance for your help.

Cheers,
François

Gert
Posts: 3054
Joined: Fri May 30, 2008 4:53 pm
Location: Berlin
Contact:

Re: Fotogalerie : pictures displayed in wrong order

Post by Gert » Sat May 23, 2015 7:02 am

Hi François,

for me it's the right order ;)

Try following in index.php of FotoGalerie:

Code: Select all

     // search for:
    ... 
    $groups=fogaRFile($fngroup); 
    $files=fogaRFile($fnfile);

    rsort($files); // add this new line
    ...
It's not update-save, but it seems you do not update anyway, the current version is FotoGalerie 7.2 ... ;)

Gert
Gert Ebersbach | CMSimple | Templates - Plugins - Services

Ulrich

Re: Fotogalerie : pictures displayed in wrong order

Post by Ulrich » Sat May 23, 2015 8:45 am

Gert wrote: It's not update-save, but it seems you do not update anyway, the current version is FotoGalerie 7.2 ... ;)
Gert
Which is in no way compatible with _xh - except you delete a couple of superfluous lines in the source code.... :mrgreen:

delan10
Posts: 32
Joined: Sat May 24, 2008 6:18 pm

Re: Fotogalerie : pictures displayed in wrong order

Post by delan10 » Sat May 23, 2015 9:37 am

Try following in index.php of FotoGalerie:

Code: Select all

Code: Select all
         // search for:
        ... 
        $groups=fogaRFile($fngroup); 
        $files=fogaRFile($fnfile);

        rsort($files); // add this new line
        ...
Thank you very much, this does exactlly what I wanted :)

Post Reply