Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter Ruth Maude

    (@dandelionweb)

    Ah here we go…. I added this to your plugin and the sites are now in alphabetical order ??

    add_filter('get_blogs_of_user','sort_my_sites');
    function sort_my_sites($blogs) {
            $f = create_function('$a,$b','return strcasecmp($a->blogname,$b->blogname);');
            uasort($blogs, $f);
            return $blogs;
    }

    You could add another tickbox in the admin to choose to order alphabetically or leave in site id order.

    Plugin Author alordiel

    (@alordiel)

    Thanks Ruth,
    That is another great idea for implementing in the next release of the plugin… which i hope will be soon.

    Regards,
    Al

    Sorry I now almost nothing to php.

    Can I get help to where I and in wich file I have to put the sort_filter so til Multi-dropdown show my multi sites alfabetich order.

    Tanks.

    torbenborre

    (@torbenborre)

    Resolved: My [dms] list is now OK-sortet.

    It was a cace-problem.

    Plugin Author alordiel

    (@alordiel)

    Hey torbenborre,

    Yap, but still I should add this as option just in case ??

    Hi where exactly do I need to add this code to get it to work?

    Plugin Author alordiel

    (@alordiel)

    Are you asking where to put Ruth’s code or you ask as general?

    Yes. Where to put the code.

    Plugin Author alordiel

    (@alordiel)

    I believe that in the function.php of your theme will do the job.
    Have in made that if you change that them you should also include the code in the new one.

    Added this to the functions.php with no results.

    Thread Starter Ruth Maude

    (@dandelionweb)

    Add this code to the end of the dropdown-multisite-selector.php file in the plugin.

    Hi Al,
    I too need to be able to sort the items in the dropdown control. But even if I go into dropdown-multisite-selector.php and immediately hit Update File, I get an “unused” error: The server encountered an internal error or misconfiguration and was unable to complete your request.

    I can edit and save any other script I try, but not yours? What’s up with that? Thanks for your help!
    Jim

    Plugin Author alordiel

    (@alordiel)

    Hi Jim,

    That is strange error. I don’t have any “protection” code that can cause this error so I check for some comments on this one. Some one said that clearing the cookies solved the problem but I’m not sure if this is going to help.

    My suggestion is to open the file through ftp and edit it directly from there if the error still occurs after the cookie deletion.

    Any way, I’m really close to the next version where this option is included just need to find some 4 free hours for the testing and it is there : )

    Thanks for the good support, Al…I appreciate it. It appears to be specific to DreamHost. I don’t yet have access to the server error log, but I’ll let you know if I get anymore clues.

    I have one more question. I’m using your dropdown in a widget, but I don’t want it to show up on every page. I’m using the plug-in Display Widgets which has check boxes to control which pages, which widgets show up on. There’s also a plug-in called Widget Logic which uses conditional tags to control which widgets show up on which pages.

    When I open the Dropdown widget it shows all the pages and check boxes, but it says “there are no options for this widget”. I can check the pages I want your widget to show up on, but there’s no Save button, just close. Bottom line, I can’t control which pages your widget shows up on.

    Is there a way I can control which pages your widget shows up on?
    Thanks,
    Jim

    Plugin Author alordiel

    (@alordiel)

    Hi Jim,

    Thanks for the feed back. I have to look at this and see what can be the problem and eventually fix it for the next release.
    Can you just copy – past this issue in new topic so when i have some solution to return the feed back there.

    Thanks & Regards,
    Al

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Can the List of Sites be in Alphabetical order?’ is closed to new replies.