Not signed in (Sign In)

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

  1.  
    I've been searching around and can't seem to figure this out. I've found some posts concerning this but they seem to refer to an older version as the line/file references provided in them don't exist in my files.

    I'd like to sort my albums by filename instead of the seemingly random order they get posted in. Is there a way to hack the code to do this in Beta 3? Are there plans to add this functionality to the admin interface?
    •  
      CommentAuthorsidtheduck
    • CommentTimeMay 13th 2008
     
    michaelphill,

    Open 'plog-admin-functions.php', find the following code in two places under the function plog_picture_manager($id,$from,$limit) {:
    plogger_init_pictures(array(
    'type' => 'album',
    'value' => $id,
    'from' => $from,
    'limit' => $limit,
    ));
    and edit it to read:plogger_init_pictures(array(
    'type' => 'album',
    'value' => $id,
    'from' => $from,
    'limit' => $limit,
    'sortby' => 'filename'
    'sortdir' => 'ASC'
    ));


    That should do it for you!
  2.  
    Thanks for your reply. That got my photos to sort in alphabetical order in the admin area, but the front-end album level still isn't sorting in that order.

    I opened plog-functions.php and modified the "plogger_init_pictures(array(" code so it was the same as you provided, but that ended up in an error.
    •  
      CommentAuthorsidtheduck
    • CommentTimeMay 23rd 2008
     
    To get your front-end album images to sort by filename, just change the 'Default Sort Order' in the Admin -> Options section to Filename, Ascending

    That should do it for you!
  3.  
    Mmmmm...

    That's not working for me. I tried setting the default sort order to both Ascending and Descending by filename and the order didn't change.
    •  
      CommentAuthorsidtheduck
    • CommentTimeMay 23rd 2008
     
    Yeah, I'm just noticing that. It looks like this is broken, so I'll try to find out why it is not working.