Never really had a need before but I just set up Donncha’s Domain Mapping plugin and ran into some session issues when logging in and out, in addition to the fact that the BuddyPress bar still uses the main networks URL which is why I think the issue arrises.
Anyway, If you would like have a quick links bar you could always install Admin Bar for those Mapped Domains, the only thing is it doesn’t display in the front end when you logged out, so no random site or login links and such.
Locate the theme directory for the theme you don’t want the BuddyPress bar on and open functions.php then add the following:
remove_action( 'wp_footer', 'bp_core_admin_bar', 8 ); //Front end Buddy
remove_action( 'admin_footer', 'bp_core_admin_bar' ); //Back end Buddy
remove_action('init', 'bp_core_add_admin_bar_css'); // CSS for both front and back
Save and upload, then refresh the site using that theme and the BuddyPress bar will be gone.
And if you don’t want the BuddyPress bar to appear on any site then place the following into you your wp-config.php file:
define( 'BP_DISABLE_ADMIN_BAR’, true );
Hope this saves someone ripping some hair out. lol
If you using WordPress 3.0 along with the Domain Mapping plugin by Donncha then you may have come across a redirect issue where the page keeps reloading but appears white like nothing is happening.
It was really frustrating me, I couldn’t figure out what the bleeding hell was causing it at first. Well all becomes clear if you have a nosey in the admin of the Mapping Plugin. You see 4 check boxes:
For some reason I had option one enabled but not option 4. For speed I’ll quote from a person called “Otto” with a brief explanation:
- Remote Login – This will make your login pages for all sites redirect to your main site to do the actual login. The benefit of this is that when you log in to one, you log into all of them. The downside is that the URL changes to another domain in order to log in.
- Permanent redirect (better for your blogger’s pagerank) – This makes your subdomain or subdirectory sites redirect to their domains. You should leave this on.
- User domain mapping page – Turn this on if you want users to be able to put in their own domains for mapping.
- Redirect administration pages to blog’s original domain (remote login disabled if redirect disabled) – This makes all admin pages show up on the original domain instead of on the new domains. You need this enabled for remote login to work.
With these options set I got the redirect loop, with both checked it appeared to work but really I wanted mapped domains to use the actual domain and not refer to original virtual host (sub.domain.com) for logging in and out which it does with both checked.
So the short answer is check both or uncheck both, the redirect should then stop, it did for me.