You are browsing the archive for How To.

Ning To BuddyPress Importer (Free)

April 19, 2010 in Community, How To, News

Just a quick update on the status of the Ning user import plugin mentioned in the previous post. Boone has now updated the plugin to support the transfer of both users and their custom profile data.

If you’re looking for an easy way to import from Ning then this free plugin is a great choice.

You can find all the latest details and download link over at Boone’s site: Free import from Ning to BuddyPress plugin.

Installing BuddyPress Locally on a Mac

July 3, 2009 in How To, Screencasts

I’ve recently noticed some posts on the BuddyPress forums where people are having problems getting WordPress MU and BuddyPress running locally on their machine.

I spent some time today to put together a twenty minute video that will show you how to set up and run WordPress MU and BuddyPress locally on a Mac. There is a tool you can use that will make this very easy called MAMP. For those of you running Windows, there is a similar tool called WAMP that will basically do the same thing.

I also make use of Textmate in this screen cast to edit the hosts file, if you don’t use it you can simply open the Finder, use the “Go” menu, and then the “Go to folder” option. Enter /etc/ as the folder and then scroll to the “hosts” file and use the editor of your choice. If you are familiar with the terminal you can also use your command line editor of choice.

I highly recommend you turn on the HD option for this video and make it full screen, that way you’ll easily be able to read and follow along.

Customizable Slugs in BuddyPress

May 5, 2009 in How To

Now that 1.0 is out in the wild and the development style and standards of BuddyPress have been solidified, it’s time to share a few development style posts.

The first one is all about using custom slugs for the built in BuddyPress components.

BuddyPress (by default) functions around the URL structure. That is, when you punch in a particular URL it analyzes that URL and then works out what you are trying to do.

For example, the URL http://example.org/members/andy/messages tells BuddyPress that you are looking at the members area for member andy, and then in the messages component trying to view the newest messages in your inbox. BuddyPress will then perform all its internal checks to make sure you have the credentials to view this page, fetch the messages, then forward onto a template file to display them.

As you can see from that example, slugs in BuddyPress are an integrated part of how the application functions. So how do we change them?

It’s actually as simple as defining the slugs you want to use in your wp-config.php file. All the slugs for every built in component can be changed. Here’s a list of settings you can add (with some alternate slugs already set), that will change the slugs for each component:

define ( 'BP_ACTIVITY_SLUG', 'streams' );
define ( 'BP_BLOGS_SLUG', 'journals' );
define ( 'BP_MEMBERS_SLUG', 'users' );
define ( 'BP_FRIENDS_SLUG', 'peeps' );
define ( 'BP_GROUPS_SLUG', 'gatherings' );
define ( 'BP_MESSAGES_SLUG', 'notes' );
define ( 'BP_WIRE_SLUG', 'pinboard' );
define ( 'BP_XPROFILE_SLUG', 'info' );

/* Some other non-component slugs */
define ( 'BP_REGISTER_SLUG', 'signup' );
define ( 'BP_ACTIVATION_SLUG', 'enable' );
define ( 'BP_SEARCH_SLUG', 'find' );
define ( 'BP_HOME_BLOG_SLUG', 'news' );

It’s just a matter of picking and choosing which slugs you’d like to change. You can then just paste the lines you need for those slugs from above, into your wp-config.php file somewhere before the “Stop Editing!” line.