Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorariley
    • CommentTimeMay 17th 2007
     
    Is there a way I can set the sort order on the manage tab under the plogger admin screen? All of the collections, galleries, and pictures I've added so far are showing up in random order. It's kind of hard to add comments like this.
    • CommentAuthorariley
    • CommentTimeMay 23rd 2007 edited
     
    Ok, after digging around and playing with stuff I shouldn't have, I've found out how to get the names of the albums and pictures in order, but I can't find any information on how to get the collections arranged by name, or path. How do I do this????

    Lines 500-505 in plog-manage.php for those interested

    // determine the filtering conditional based on the level and id number
    if ($level == "albums" or $level == "comments"){
    $cond = "WHERE `parent_id` = '$_REQUEST[id]' ORDER BY `name`";
    }
    else if ($level == "pictures"){
    $cond = "WHERE `parent_album` = '$_REQUEST[id]' ORDER BY `path`";
    Thankful People: dime
    • CommentAuthornatebot
    • CommentTimeJun 23rd 2007 edited
     
    Just add an additional Else If conditional after lines 500-505:
    =============================================================
    / determine the filtering conditional based on the level and id number
    if ($level == "albums" or $level == "comments"){
    $cond = "WHERE `parent_id` = '$_REQUEST[id]' ORDER BY `name` ";
    }
    else if ($level == "pictures"){
    $cond = "WHERE `parent_album` = '$_REQUEST[id]' ORDER BY `path` ";
    }
    else if ($level == "collections"){
    $cond ='ORDER BY `name`' ;
    }
    ===============================================

    You can also use:
    else { $cond ='ORDER BY `name`' ; }
    Since there currently no other values for $level (other than 'slideshow' but it's not used on this admin page)
    Thankful People: ariley