An Introduction to BuddyPress

Social Networking with BuddyPress

Automattic, the company behind WordPress, has recently acquired and will be releasing social networking software called BuddyPress. The software, built on top of WordPress, was created by Andy Peatling as way to start your very own social network similar to Facebook. Today, we will take a look at installing BuddyPress.

Step 1 – What is BuddyPress?

BuddyPress

BuddyPress is a social networking application built on top of WordPress Multi-User (MU) as a plugin. WordPress MU is the the software behind WordPress.com. It allows a user to host a network of blogs on a site. BuddyPress adds a large variety of new social interaction features to WordPress. The features can be added all at once or as individual components:

  • A WordPress blog
  • Individual profiles for members
  • Private Message (PM) functionality
  • Friend Networks
  • Groups, which include a blog, photos and other user generated content
  • "The Wire" (like the wall on Facebook)
  • Activity/Action streams of public actions on the site
  • Forums using bbPress
Features

A fully featured demo is available at the BuddyPress website.

Demo

Today, we will install a full installation of BuddyPress (all the bells and whistles), so we can start a social network from scratch.

The software is in its RC stage, but is nearing its final version. The current version will help you get started with social networking by providing an admin control panel and all the basic features outlined above. You will then be ready to upgrade to the final version when the time comes.

Step 2 – Requirements

Before you install the BuddyPress system, your server will require you have two components already in place:

  • a MySQL database to store all the BuddyPress information. If you do not have a database created, create one with a user who has all privileges (such as UPDATE, INSERT, DELETE, SELECT) on that database. Remember the username/password and database name for later steps.
  • a mod rewrite module so you can have clean URLS. If you have used WordPress or another piece of software that has clean URLs, then you should be ready to proceed without adding this component again.
phpMyAdmin

Step 3 – Download WordPress MU

Before you can start the BuddyPress installation you will need a copy of WordPress MU installed. Grab the latest version (ZIP) (TAR.GZ) and unzip it. You should see a folder with a name similar to "wordpress-mu".

Upload the files in this directory to the location where you want to access your site. This can be the main domain or a subfolder. Grab a cup of coffee or tea while you wait for the upload to finish.

FTP/Files

Step 4 – Install WordPress MU

Once the upload has completed you can go ahead and install WordPress MU.

Point your browser to the directory where you uploaded the files so that index.php is executed. You will be shown a screen to enter some details. The settings should be filled as given below:

  • Blog Addresses – For the purpose of this article we will select "sub-directories". If you happen to have Wildcard DNS records enabled, you can select the other option, but that is outside the scope of this article.
  • Database Name – The database name from Step 2
  • User Name – The username from Step 2
  • Password – The password from Step 2
  • Database Host – This is usually localhost if the MySQL server is on the same server as the web server. Only change this if the installation is returning errors about the server/host setting.
  • Server Address – The installer should be able to guess this setting, but double check that it is set to the server/domain you are installing to.
  • Site Title – This will be the name of the social network site, so name it whatever you want.
  • Email – Enter a valid email address to be used for the admin account.
Install

Once you have double-checked all the above settings, click Submit. If all goes well, you should be greeted with an "Installation Finished!" screen that includes your username and password. You have also been sent an email with the same details included.

Before you continue, follow the instructions for setting permissions on the Installation Finished page.

Install

Step 5 – Download BuddyPress

At this point, you can now install the BuddyPress system. Since we are installing the full system, you can download the "combo" archive here.

Unzip the combo file and upload all the contents of the extracted zip to the root mu-plugins folder located in wp-content. Upload ALL the folders and files located in the zip, and make sure these folders and files have been chmodded to 755.

Move the mu-plugins/bp-themes folder you just uploaded to wp-content. Make sure these folders have been chmodded to 755.

Files

Step 6 – Setup BuddyPress

Once the files are uploaded, log in to the WordPress MU admin control panel with the username and password you created earlier. The URL to log in (emailed to you when you installed WordPress MU) is in the form http://yourdomain.tld/folder/wp-login.php

Under the "Site Admin" menu find the "Themes" link and click it. You will be shown a list of installed WordPress MU themes, one of which is the BuddyPress theme. Select "Yes" for "BuddyPress Home Theme" and click "Update Themes".

Themes

Finally, you will need to enable registrations if you want users to be able to sign up for your site. Under the "Site Admin" menu go to "Options" and make sure the Enabled option is selected for "Allow new registrations".

Allow New Registration Settings

Congratulations! Your social network is now ready for use. When logged into the admin control panel, you can manage a few settings from the "BuddyPress" link under "Site Admin". To view your new network and profile click "My Account" from the admin bar at the top of the screen and select "Activity" or "Profile".

Step 7 – Additonal Plugins and Themes

The plugin space for BuddyPress is small right now, but it will probably explode with new activity like WordPress once did. However, there are a few cool plugins available for BuddyPress right now:

  • bpGroups which includes improvements to the group system.
  • Invite Friends which adds some functionality to allow you to add friends from other social networking applications like Twitter, Facebook and GMail.
  • Twitter To Wire which adds your tweets to your wire (the BuddyPress version of Facebook's Wall) automatically.

There is also a page for themes, but no themes have yet been made available for download. If you are curious about the power of the theming system, you can view a few examples at WannaNetwork, GrungePress, and Flokka.

Extend Screen Shot

Closing

I hope this tutorial has been successful in introducing you to BuddyPress and has opened up an opportunity for you to start your own social network site. The WordPress MU / BuddyPress configuration provides more social functionality than can be provided by a simple forum or blog network setup.

Remember, this tutorial is meant to familiarize you with the software and its installation before its final release. If you want to continue with your BuddyPress installation on the programming side of things, the BuddyPress Codex has some developer documentation.

  • Subscribe to the NETTUTS RSS Feed for more daily web development tuts and articles.


Tags: Wordpress
Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://www.broof.de BroOf

    Hey this looks really cool! I think I will try it!

    • http://laranzjoe.blogspot.com lawrence77

      @Collis
      Can Envato release a social Network for us??

      • http://www.enatom.com Enatom

        If they did, theyll sell it to you.

      • http://laranzjoe.blogspot.com lawrence77

        u know what i ask? :x

  • http://rcthegreatblog.com Rahul Chowdhury

    Wow, this article is great. I liked it, and I am thinking about using Buddypress.

    • http://www.quizzpot.com crysfel

      yeah! it looks good, i’ll try too.

  • http://www.darrenmooney.name Darren

    I’ve just been looking at BuddyPress for a project last week.

    Test install was perfect first time. It really is a good setup.

    Nice write up.

  • http://twitter.com/rubenscd/ Rubens Cavalheiro

    That great, i need this tutorial.

  • http://www.freshclickmedia.com Shane

    Nice overview – for those who don’t know, the creators of WordPress have also created forum software called bbPress.

  • Nate

    But I’ve already installed regular WordPress, is there a version for that? Why do I need to get MU?

    • http://www.eraxa.com Sirwan

      The WordPress (non-MU) Version is said to come out when WordPress 2.8 comes out… im waiting too

      • http://eyoosuf.blogspot.com/ Yoosuf

        but some folks using the WP 2.8, eg, jQuery UI blog

  • http://www.johndeszell.com John Deszell

    I looked into this a few months ago, I need to play around with it…when I get some some lol

    I have an idea on what I want to use it for.

  • http://pointandstare.com Lee Rickler

    I’ve been experimenting with BP for some time now – A lot of good elements mixed with a beta feel.
    Slowly we find time to work some more and enjoy it when we can.

  • http://mhuntdesign.com Matt

    One thing I would like to see is a good out-of-thebox solution to real-time instant messaging like you see facebook now. Private messaging is different those are like secret messages found in a users inbox( a standard feature in forums )

    • http://parisvega.com/blog Paris Vega

      Try this. http://www.ajaxim.com/ Its something I came across last year. Haven’t used it yet, but it looks promising.

      • w1sh

        That looks freakin’ awesome! :O***

  • VINAY

    One More wonderful masterpiece from wordpress…

    • r0ger

      Not from wordpress, but bought by WordPress

  • http://synarchydesign.com Kevin Martin

    Wow, pretty concise and thorough. Never knew there was a MU version of WP available to the public. I had thought of making my own script similar to BuddyPress before I found out it existed.
    Good Job.

  • Alen

    great tutorial ! tnx ;)

  • http://vittylib.com Tutorials Library

    Thanks for the good tutorials

  • Pingback: Social Networking with BuddyPress - Nettuts+ - Illuminations

  • Pingback: popurls.com // popular today

  • Al

    News to me.
    Thanks.

  • Ryan Hickman

    Been using buddypress for a few months now, i must say its very cool. I just have issues with wordpress mu — as its not as stable as the regular release

  • paul

    this is like the second best day of my life..the flash tuts one was the first!

    life just get better everyday….

  • http://www.jashsayani.com Jash Sayani

    Wow! Great tutorial!!

    However “start your own social networking site” sounds futile with giants like Facebook, Friendfeed and Twitter.

    But this can be great as companies’ internal social network platform…

    • w1sh

      You’d be surprised how many companies are launching social networking sites every single day.

      Check out some freelance job-posting sites (scriptlance, guru) and you’ll see these going off for $1,200 a pop. ;)

  • http://www.polskieblogi.co.uk Polskie Blogi

    I’m working at this moment on social network based on MU + BBpress. What I’ve found so far that is a little bit “not perfect”:
    1. Instalation process – the way is explain in documents is confusing – if you don’t do things right in the first place the best way is to install once again from zero and,
    2. Somehow it’s very slow. On the same hosting I’ve got few more WP based sites and they run nice and smoothly but MU-WP + BBpress very often work dead slow.

  • xx

    something screwed up with the directions. The read me with buddypress says to do this with the themes not what you said above.

    step 3: Move the themes to their correct locations

    Move the home theme:
    From: ‘wp-content/mu-plugins/buddypress-theme/buddypress-home’
    To: ‘wp-content/themes/buddypress-home/’

    Move the member theme:
    From: ‘wp-content/mu-plugins/buddypress-theme/member-themes/buddypress-member/’
    To: ‘wp-content/member-themes/buddypress-member/’

  • http://parisvega.com/ Paris Vega

    Definitely going to try this out.

  • http://3oneseven.com/ milo

    Seems like you forgot the member themes set up…

  • http://www.wannanetwork.com Dustin Dempsey

    Thanks for the link to WannaNetwork.com

    It’s definitely been an interesting building the network off of WordPress MU and BuddyPress (especially since BP is pre1.0), but we’re glad that we made the decision.

    Thanks.
    Dustin Dempsey
    WannaNetwork.com Developer

  • http://www.contempographicdesign.com Chris Robinson

    been following buddypress for awhile, haven’t had a chance to mess around with it yet

  • http://www.taglatino.com Rob

    For social networking platforms, there are sites/services like Ning.com and competitor SocialGo.com that bundle it all together. Of course, the blogging system is in no way as solid as WP, but these services are headed in the direction of “build-your-own-facebook” sites. Ranges from free to premium services with tons of features — definitely worth a look if you’ve wanted to build something along those lines.

  • http://masonsklut.com Mason Sklut

    Thanks for the tut, I’m glad Automattic came out with this. They’ve done a great job with WordPress, so this should be great.

  • http://www.graphicrating.com/ Andy Gongea

    Don’t know if we need any other social networks.
    Anyway, I’ve tested BP and it looks OK.

  • sid

    does this means that registered users can have their own blog within the social network?

  • Pingback: links for 2009-03-30 on studiowhiz.com

  • Pingback: Daily David — davidgagne.net

  • http://eatstudio.com josheat

    Oh man.
    I’m not sure if I look forward to a flood of new social networking sites.
    Myspace and Facebook are enough to deal with already!

    Sweet app though

  • Pingback: links for 2009-03-30 at DeStructUred Blog

  • Pingback: 开源社交网络程序BuddyPress安装指南

  • http://www.ariyoshahry.net Ariyo

    This is awesome. Exactly what I needed. Thanks!

  • http://twitter.com/socialcoop B. Ackles

    Great Tutorial! Would you be willing to do a follow-up on how to set up the wildcard DNS for the ‘blog address’? I’d love to see how to set up my social networks for custom sub-domains.

  • Pingback: Some interesting links | Your Site is Valid Blog

  • Jack F

    Great tutorial. Any idea if BBpress might intergrate in as well?

    • http://www.wannanetwork.com Dustin

      It’s seemless.

      We use bbpress for the groups forums, and we use simple:press for the main forum on Wannanetwork.com

  • http://www.crearedesign.co.uk Martyn

    If any one needed proof that social media is here to stay then this is it.

    I wish I had enough time to test this out for myself and really come up with something great.

    I Look forward to see how it goes

  • http://www.evanbot.com Evan Byrne

    I tried BP out a while ago, ran into some stupid errors, then gave up on it. Hopefully it is more stable now.

  • http://makemoneyonline-guide.com Paul Morales

    Wow, that’s pretty cool for a wordpress site ;)

  • http://wpmututorials.com Andrea_R

    Actually, there have been themes released for BuddyPress over at freebpthemes.com and buddydress.com.

  • Pingback: BuddyPress רשת חברתית חדשה מבית וורדפרס - ההתקנה | בלוג עיצוב | המזלג

  • http://libertytuga.info ORiOn

    Where the hell is the “Site Admin” menu go to “Options”…

    I can’t find it… lol

    Can someone give me an example link?

  • http://threepixeldrift.co.cc/ Taylor Satula

    was just thinking, Huh i wonder what ever happened to buddypress then i saw this. Huh. :)

  • http://libertytuga.info ORiOn

    I really need help!

    “Where’s the “Site Admin” => “Options”…

    I can’t find it… lol

    Can someone give me an example link?”

    • http://ilovecolors.com.ar Elliot

      I’m adding my link because the ORiOn user asked for an example link. Check my tutorial, what you need to look at is on the third screen capture:
      http://www.ilovecolors.com.ar/starting-with-buddypress-wordpress-mu/

      This article doesn’t address the issues of installing in a local Windows server like WAMP. You can’t just use localhost as your host, instead, you must use localhost.localdomain or something like that, and you must add the new hostname to the hosts file located in c:\windows\system32\drivers\etc.

      Other than that, nice tutorial.

  • Pingback: Weekly Updates of The Top Sites - 4 « Powerusers

  • Pingback: Monday Morning Roundup - April 6, 2009 — WPCandy — WordPress Themes, Plugins, Tips, and Tricks

  • Pingback: Recursos para Wordpress - I | Pupurri.es

  • Pingback: Webzappr’s Lifestream « My Random Web Snippets