Not signed in ( Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

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

    •  
      CommentAuthoralpheratz
    • CommentTimeJun 6th 2009
     permalink
    (Apologies for posting the original in the wrong [Announcements]) section...maybe it should be removed from there!)

    Is there a (simple) way to sort the contents of the drop-down menus that are shown in the "Write Entry" page.

    I now have a load of images, and it is getting inconvenient to go through an unsorted menu...

    Cheers,

    Alph
    •  
      CommentAuthoralpheratz
    • CommentTimeJun 12th 2009
     permalink
    Tracked it down to getList in fp-includes/core/core.filesystem.php:

    Change from:

    function getList() {
    //$this->_listFiles($this->_directory);
    return $this->_list;
    }


    To:

    function getList() {
    //$this->_listFiles($this->_directory);
    // BOB: do sorting here
    sort($this->_list);
    return $this->_list;
    }


    Now my lists are nicely sorted!

    Maybe this could be rolled into the standard distro?

    Cheers,

    Alph
    •  
      CommentAuthorNoWhereMan
    • CommentTimeJun 12th 2009
     permalink
    I've left it as it is because they're usually sorted by creation date, that is, the files you uploaded last come last in the list, which I found actually more convenient than scanning them alphabetically
    •  
      CommentAuthorzeuder
    • CommentTimeJul 19th 2009
     permalink
    mmm
    this is useful, but this alters the widget panel
    •  
      CommentAuthorlantaca
    • CommentTimeMay 11th 2010
     permalink
    perfect, it works fine for me
    •  
      CommentAuthorStanley
    • CommentTimeMay 11th 2010
     permalink
    I just tried it - yes, it sorts the list of images perfectly but, as Zeuder found out, it does some strange things to the widget panel. I've reverted back to the higgledy-piggledy list of images.
    •  
      CommentAuthorNoWhereMan
    • CommentTimeMay 11th 2010 edited
     permalink
    why are you altering the main class?

    just edit fp-plugins/bbcode/plugin.bbcode.php

    code
    •  
      CommentAuthorStanley
    • CommentTimeMay 11th 2010
     permalink
    Posted By: NoWhereManwhy are you altering the main class?


    Ouch!

    Thanks! Adding that line worked great.
    •  
      CommentAuthorlantaca
    • CommentTimeMay 12th 2010
     permalink
    thanks NWM...