Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • itgl72 Friend
    #127023

    In the gallery component, when you click on the LATEST link you get All The Latest Added Pictures no matter what gallery they are in.

    I would like for GALLERIES to have this ability TOO for their own pictures within the gallery.

    It seems like the first picture in a gallery is the OLDEST.

    How can we change this in order to make all pictures in a gallery go from NEWEST to OLDEST?

    (Theres another thread on the board somewhere abou this too but Ill post it here too in case it was missed. It would also be nice to list categories with new pictures on the front page from newest gallery with newest pics to oldest gallery/oldest pics in the front page category link)

    Basically, when it comes to pictures, by default, I prefer everything to show from NEWEST to OLDEST.

    Sherlock Friend
    #243531

    Plz edit gallery.php (componentscom_rsgallery2templatesja_semantichtml) :
    Search those line :

    <li><a title="Latest Added" href="<?php echo sefRelToAbs($toollink."&filter_order=date&filter_order_Dir=DESC&limit=".$_limit);
    ?>">Latest</a></li>

    Change to :

    <li><a title="Newest Added" href="<?php echo sefRelToAbs($toollink."&filter_order=date&filter_order_Dir=ASC&limit=".$_limit);
    ?>">Newest</a></li>

    itgl72 Friend
    #243577

    Hello again, this is backwards I am afraid. This is also not in the place I need adjusted.

    The LATEST/NEWEST link worked fine, and making your change actually shows OLDEST first with ASC in the sql.

    What I need to find, and change, is where you display pictures in a gallery when you click on a gallery. When you click on a gallery it is listed OLDEST or FIRST PICTURE ENTERED as the first picture. I want it to show the LAST picture entered into the gallery FIRST. I’m sure we can change the ORDER BY or from ASC to DESC or whatever but I dont know WHERE that is in this module.

    Can you find it? Show where to make change so NEWEST pictures show first when you click on a GALLERY?

    Thanks and sorry if I was not clear first time around.

    Sherlock Friend
    #243718

    hi itgl72.
    Open gallery.class.php (administratorcomponentscom_rsgallery2includesgallery.class.php), search this line(line 174)

    $orderby = ' ORDER BY ordering ';
    Change to

    $orderby = ' ORDER BY date DESC ';
    Hope can help you.

    itgl72 Friend
    #243749

    Thanks, did it work? Yes, did I discover another problem for me? Yes.

    If I have a gallery I just want to show the latest images first, then all is well. I have tried sorting by date and id.

    What I did not anticipate is it takes the picture order I originally had and sorts them in reverse too. For example I had a gallery of an event, and it was shown from beginning of event to last action of day. After doing this it has started with end of day going towards beginning of day.

    This is no fault of yours, you have shown me how to do what I asked and a thank you credit has been issued.

    It may work better for me in the future if I leave the setting as is, then any new uplaods will be pu in correct order as I upload them and new additions will be listed first.

    Either way, thank you.

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  itgl72 16 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum