Not signed in (Sign In)

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

    • CommentAuthorbjl6d
    • CommentTimeMar 19th 2007
     
    When I go to import a directory, the screen sort of haphazardly lists all the files in that folder, seemingly in no order at all. Is there a way to list the files alphabetically by filename on this screen? Thanks!
    • CommentAuthorbjl6d
    • CommentTimeMar 20th 2007
     
    Anyone? It truly is a lot of work to import 100+ pictures at a time and have it all in random order so you can't add a caption to each of them easily in chronological order (which is the same as SORT BY FILENAME for me...I just don't know where to add it)
    • CommentAuthorbjl6d
    • CommentTimeMar 20th 2007
     
    Never mind, problem solved. Found this old thread:
    http://www.plogger.org/forum/comments.php?DiscussionID=498

    Change plog-manage.php:

    line 504

    else if ($level == "pictures"){
    $cond = "WHERE `parent_album` = '$_REQUEST[id]' ORDER BY `path`";
    }
    • CommentAuthorbjl6d
    • CommentTimeMar 20th 2007
     
    Or not. That sorts it under the Manage screen. I'm looking to sort in the Import screen.
    • CommentAuthorbjl6d
    • CommentTimeMar 20th 2007
     
    Problem Solved. Added
    sort($tmp);
    after line 83 so it looks like:

    // Finish off the function
    closedir($dir);
    sort($tmp);
    return $tmp;

    under function get_files($directory) {

    You can close this thread off. Sorry for the monologue
    • CommentAuthorAlly
    • CommentTimeOct 16th 2007
     
    Is there any way to do this in the new version of Plogger??
    • CommentAuthorbjl6d
    • CommentTimeJan 3rd 2008
     
    You can do this in the new version of Plogger by adding the following "sort($files);" (without the quotations) after line 239, so it looks like:

    $albums = get_albums();
    $queue_func = "";
    $keys = array();
    sort($files);
    for($i=0; $i<count($files); $i++) {
    $file_key = md5($files[$i]);