14
Sep
2010

Remove BuddyPress Bar From Some Themes

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

13
Sep
2010

How Do I Get A Facebook Username?

Facebook don’t always make things clear, often you end up having to google what your looking for and still then there isn’t always a clear instruction.

If you run a Fan page and want a username for better promotion or if you simple want a better profile username then you can get a nice short version providing you have some friends following you, I’m not sure how many friends you need but it will be somewhere in the region of 20 as I post this.

Anyway, get your username here: http://www.facebook.com/username/

Here are some of our Facebook pages:

http://facebook.com/HauntedEngland

http://facebook.com/GhostsUK

http://facebook.com/TimothyKyleBowers

Its really that simple and helps people find you or your brand much easier. :-)

12
Sep
2010

WordPress 3.0 Redirect Issue With Domain Mapping Plugin!!

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:

  1. Remote Login
  2. Permanent redirect (better for your blogger’s pagerank)
  3. User domain mapping page
  4. Redirect administration pages to site’s original domain (remote login disabled if redirect disabled)

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. :-)