Forums

[resolved] NextGEN Gallery: Album sort order (9 posts)

  1. dressedinvalue
    Member
    Posted 9 months ago #

    On this page: http://www.sojournvisualarts.com/projects/

    We have [album=all,compact] to display the albums.

    I want to reverse the sort order, so that new albums are on top. How to?

  2. alexrabe
    Member
    Posted 9 months ago #

    ngg-db.php line 244

    $album->sortorder = serialize( $wpdb->get_col("SELECT gid FROM $wpdb->nggallery ORDER BY gid DESC") );

  3. dressedinvalue
    Member
    Posted 9 months ago #

    AWESOME THANKS!

  4. MotorChris
    Member
    Posted 8 months ago #

    Sorry to dig up an old thread, but I don't have a ngg-db.php to edit in the newest version. I've tried determining the gallery order in the admin tool, but it doesn't change anything (ascending or descending). I'd really like to have my newest gallery on the top if possible. Can anyone lend a hand?

    I'm using [album id=x] btw, and I'm really happy with the layout, I just want the order reversed.

    http://www.motorfanatic.net/pics/

    Thanks!

  5. bee dudler
    Member
    Posted 8 months ago #

    Hi,
    i dont know if that fits your needs and this only applies to compact albums: http://nextgen.boelinger.com/albumtags/

    best regards
    bee

  6. MotorChris
    Member
    Posted 8 months ago #

    Thanks for the link, and I wish it did fit my needs, but I really don't want to use compact albums and all I would like is the most recent galleries on top. I feel silly because it probably isn't that hard?

    Can anyone else lend a hand?

    Thanks!

  7. bee dudler
    Member
    Posted 8 months ago #

    Hi,
    the ngg-db.php resides now in the "lib" directory an the line to change should be 244.

    best regards
    bee

  8. wpma
    Member
    Posted 5 months ago #

    Hi.
    Anyone know how to do it in 1.3.3?

  9. seattlesubsonic
    Member
    Posted 2 months ago #

    In version 1.3.6 the answer is the same,

    ngg-db.php still resides now in the "lib" directory an the line to change should be 293.

Reply

You must log in to post.

About this Topic