WordPress.org

Forums

Multisite Admin Bar Switcher
[resolved] question about modifying the plugin (6 posts)

  1. AutomatedKid
    Member
    Posted 2 years ago #

    just curious, is there an easy way to modify the plugin where all logged in users below the admin will have a similar drop down menu like the admin but would look like the following??

    <SITE NAME><<<site name stays the same and will always show
    <<<remove dashboard link
    A>>site1 <<<direct link to each site
    B>>site1
    site2
    C>>site1
    etc
    etc

    in other words, keep the site name showing when the user is on X site, remove dashboard link when logged in, and then have a drop down with letters, just like the admin back-end, but will only have each site name with a direct link to the blog home page.

    i'm having a difficult time coming up with a simple solution to make network site links accessible to users, ur plugin is working brilliantly, and i thought this would be a creative way to resolve a problem which i think others wp users running a multisite may find useful as well.

    http://wordpress.org/extend/plugins/multisite-admin-bar-switcher/

  2. flynsarmy
    Member
    Plugin Author

    Posted 2 years ago #

    Yep it's possible and relatively easily. The method you're after is is_super_admin(). Add that check in the various spots you want to hide stuff for non super admins.

    I don't have time to write you up a modified version but it shouldn't be difficult for you to figure out if you're a developer.

  3. AutomatedKid
    Member
    Posted 2 years ago #

    not a developer, sorry! ;(

    i can see the one reference to is_super_admin(). but it's not that i want to hide anymore stuff from non admins since it's already hidden by the way u wrote it, i'd like to show more, specifically, the extended menu with letters and blog name with a direct link to the blog home page.

    in other words, these sections from ur plugin....

    Adds the blog list under their respective letters
    Adds a letter submenu for each blog to sit in
    Returns an alphabetically sorted array of blogs

    ...with the third item as the cutoff, sorted array of blogs, where the user can click the blog name and be taken to the blog home page, not the admin menu like it is right now, and last admin menu (dashboard, visit site, etc) will continue to be hidden from the user.

    do i hear a tip #2? :)

  4. AutomatedKid
    Member
    Posted 2 years ago #

    flyn, if u can help me out and if ur gmail listed in ur plugin is linked to paypal, can i buy u a few beers for ur trouble?

  5. AutomatedKid
    Member
    Posted 2 years ago #

    got the plugin modified. not an easy task, trust me, but it works great for regular users to easily jump site-to-site.

    and flynn, thanks for offering the plugin to the community.

  6. flynsarmy
    Member
    Plugin Author

    Posted 2 years ago #

    Hey sorry for lack of reply. I'm on holidays ATM and haven't been around much. Glad you got it sorted :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Multisite Admin Bar Switcher
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.