Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Garrett Hyder

    (@garrett-eclipse)

    FYI – Here’s my workaround in the meantime.

    // Fix for Admin Bar User Switching to make Scrollable
    function user_switch_admin_bar_fix() {
       echo '<style type="text/css">
               #wp-admin-bar-abus_switch_to_user .ab-sub-wrapper { max-height: 1000px; overflow: scroll; }
             </style>';
    }
    
    add_action('admin_head', 'user_switch_admin_bar_fix');

    Hope someone finds it useful.
    Cheers

    I see your point here, however for sites with more than 20 users or so there are potential other problems that can occur. I am going to work on something asap based around this:

    https://github.com/wpmark/admin-bar-user-switching/issues/4

    Thread Starter Garrett Hyder

    (@garrett-eclipse)

    Thanks Mark,

    For sure I understand that, ran into it myself. Killed the loading of the site. Was thinking something could be done for sites with >20 users by changing it from a list to a search field or something to do the query via jquery rather than PHP to save on load.

    Happy to work with you testing anything you come up with.

    All the best,
    Cheers

    This has been resolved with the release of version 1.

    Thread Starter Garrett Hyder

    (@garrett-eclipse)

    Thanks Mark, greatly appreciated, I’ve re-enabled on my site and it’s no longer bogged down.
    My only suggestion would be to implement an ajax auto-suggestion mechanism to help in finding usernames. I have 3000+ users so can’t recall all their usernames exactly but I usually know the first name of the user so would be awesome if when I started typing it did an ajax call to present me with a list of usernames that start with what I’ve already entered. This shouldn’t bog the site down any as it’s a js-ajax call rather than php which was why the original implementation wasn’t suited for large userbases.
    Also another thought would be provide an option where if you are a small site you can have the original implementation of it listing users, or even have an option to combo the two.
    Anyway thank you for the update, just wanted to share some feedback.
    All the best,
    Cheers
    P.S. The Ajax Auto-Suggestion concept came to me from Buddypress Groups ‘Add New Members’ input as well as Co-Authors Plus ‘Add Co-Author’ input.

    Maybe in the next update I can implement this – sounds like a good idea.

    Thread Starter Garrett Hyder

    (@garrett-eclipse)

    Sounds great, thanks Mark.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Please make it scrollable’ is closed to new replies.