WordPress.org

Ready to get started?Download WordPress

Forums

WP-TopBar
[resolved] WP-TopBar & Buddypress (9 posts)

  1. Itookmyprozac
    Member
    Posted 7 months ago #

    Hi,

    I'm runing a site with buddypress and I would like to show WP-TopBar in every blog of the network (not only in the main site). Is there any way to do it?

    Thanks!

    http://wordpress.org/plugins/wp-topbar/

  2. Bob
    Member
    Plugin Author

    Posted 7 months ago #

    I have no experience using buddypress. Can you give me a URL so that I can see what you are describing?

    Thanks!

  3. Itookmyprozac
    Member
    Posted 7 months ago #

    Unfortunately, I'm working in a preproduction site of a company so it's not posible.

    I have read another thread where it was described the option of network enabling the plugin. The problem is that in this case, the menu of WP-TopBar (great work, by the way!) would be available for every blog.

    Anyway, I think that your plugin can work perfectly with Multisite Plugin Manager http://wordpress.org/plugins/multisite-plugin-manager/ to avoid that access.

    Thank you fot your attention, Bob.

  4. Bob
    Member
    Plugin Author

    Posted 7 months ago #

    Understood.. Based on this, I could an add option under the new General Settings tab for this. Something like: "Only Mutisite Network (Super) Admins to have access to the TopBar Admin page: Yes/No"

    I think that would work for you.

    Bob

  5. Bob
    Member
    Plugin Author

    Posted 7 months ago #

    Try version 5.14. I tested it against a WPMU install, not BuddyPress.

  6. Itookmyprozac
    Member
    Posted 7 months ago #

    Hi Bob,

    Thanks for your quick answer!

    Well, I have network-activated the pluging (v. 5.14) and selected "YES" in the network settings: "ONLY Show Admin Pages for Multi-Site Network Admins".

    In the preproduction site, a subscriber of the main site (default role of a member in my case) who has also a blog in the network can access to the settings of WP-TopBar in his/her blog.

    Am I doing something wrong?

  7. Bob
    Member
    Plugin Author

    Posted 7 months ago #

    Hmm..

    I added some debug info to help in case there are problems.

    At the bottom of the General Settings for the non-admin user (aka subscriber), there is a section called Multisite Check:. It comes after all the Rotation settings.

    It will look something like:

    Multisite Check:
    Multisite: Yes
    Super Admin: Yes
    Super Admin Only: yes

    Can you reply with what settings are shown for that user?

    Bob

  8. Bob
    Member
    Plugin Author

    Posted 7 months ago #

    I think I found it.

    Look in wp-topbar.php for this:
    if (( isset($wptbNetworkGlobalOptions [ 'multisite_super admin_only' ] )) && ($wptbNetworkGlobalOptions [ 'multisite_super_admin_only' ] == "yes"))

    replace it with this (fixed a missing "_")

    if (( isset($wptbNetworkGlobalOptions [ 'multisite_super_admin_only' ] )) && ($wptbNetworkGlobalOptions [ 'multisite_super_admin_only' ] == "yes"))

    I don't know how that escaped my testing.

    Let me know if that works for you.

    Bob

  9. Itookmyprozac
    Member
    Posted 7 months ago #

    Yes, It worked! The menu WP TopBar now is only showed to Super admin.

    Thank you very much, Bob.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags