BuddyPress + MultiSite Admin Bar Links Point at Root Blog
-
I’ve installed WP3 at mysite.com. I then installed multisite, and created a new site at site1.mysite.com. I then installed the BuddyPress plugin, and activated the BP Default theme at site1.mysite.com. Everything looks great, except that all the links in the admin bar point to mysite.com, not site1.mysite.com, therefore breaking all the links. Example: mysite.com/members/ doesn’t work, because BuddyPress is actually installed at site1.mysite.com/members/.
Its also worth mentioning that I’m using the Domain Mapping Plugin (http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/) to map site1.mysite.com to a completely separate domain, like http://www.awesomesitename.com, although I don’t think this is effecting the links in BuddyPress’ admin bar.
I started digging around in BuddyPress to see where these links are coming from, specifically in bp-core-adminbar.php at the bp_core_admin_bar() function, and then searching for the bp_adminbar_menus action, though I didn’t turn up any results.
I figured I’d ask here before I go mucking with core files.
-
BuddyPress is installed in main site, i.e. http://www.mysite.com, by default.
You need this to set up BP in secondary blog – https://codex.buddypress.org/getting-started/install-buddypress-on-a-secondary-blog/Worked like a charm. Thanks for the tip!
One issue has come up: Users registering at site1.mysite.com are showing up as being registered for the mysite.com blog, not the blog running BuddyPress where they signed up (site1.mysite.com). I’ve set the BP_ROOT_BLOG to “2”, which is site1.mysite.com, but when they register they’re showing up in Super Admin > Users as registered for blog “1”.
mercime –
thanks for the link – but what if I wanted to actually run BP on multiple blogs? I’ve enable buddypress for multiple blogs, but the problem is it pulls all of the user info from across all of the networks. (I’m using multi-network plugin). I’d like http://www.domain.com/blog1 – to only post activity from members registered to blog1 and http://www.domain.com/blog2 (or http://www.domain2.com in multi-network) only post activity from members registered to blog 2?
- The topic ‘BuddyPress + MultiSite Admin Bar Links Point at Root Blog’ is closed to new replies.