How to Integrate buddypress to wordpress theme

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

BuddyPress is an open source social networking software package. It is a plugin that can be installed on WordPress to transform it into a social network platform. BuddyPress is designed to allow schools, companies, sports teams or any other niche community to start their own social network or communication tool.

Now the problem is Buddypress is having its own theme. If you are installing buddypress in separate subdomain with separate wordpress then it is fine, you no need to worry at all. It will have its own theme and design. Now if you want buddypress features should be a part of your website then you need to integrate buddypress theme to your existing wordpress theme.

Buddypress Integration to wordpress

Here are the simple step by step procedure to make buddypress compatible wordpress theme.

Step 1: Install wordpress – Get latest from wordpress.org,
It is always better to try in your localhost and once it is perfect then upload it to your actual website. Know more about how to install wordpress on localhost.

I have installed wordpress on localhost and the link is http://localhost/wordpress/. When I brows my website it will be as shown below.

1. Default WordPress Theme
1. Default WordPress Theme

Step 2: Install buddypress plugin -
Download from wordpress Plugin directory and upload to plugin folder and activate it.

Also you can upload through Plugins->add new from dashboard.

2. Install Buddypress plugin
2. Install Buddypress plugin

Step 3: Update Permalink structure
If default permalink structure is configured in your blog then you will get below message.

Buddypress is almost ready. You must update your permalink structure to something.

3. Update your permalink structure
3. Update your permalink structure message

Click “Update your permalink structure” link or brows Settings->permalinks and update as shown below. Select custom structure and write

/%category%/%postname%/

4. Update your permalink structure
4. Update your permalink structure

Once you click save button a message should come “Permalink structure updated“. If you get a message linke “You should update your .htaccess now” then your .htaccess file is not writable and you need to manually update given code.

Once permalink structure is updated and if you brows any other page you will get a message like

BuddyPress is ready. You’ll need to activate a BuddyPress compatible theme to take advantage of all of the features. We’ve bundled a default theme, but you can always install some other compatible themes or upgrade your existing WordPress theme.

Just leave it for time being. We are on the way to make the compatible theme.

Step 4: Install bp-template-pack and configure

Download from WordPress plugin directory and upload to plugin folder. Also you can install through Plugins->add new

5. Install buddypress Template Pack Plugin
5. Install buddypress Template Pack Plugin

Once the installation is done Brows Appearence->BP Compatibility and follow the instructions step by step.

Step one:

6. BP Compatibility settings
6. BP Compatibility settings

Click Move Template files button.

Step Two:

You will get a message like:

Adding support for BuddyPress to your existing WordPress theme can be a straightforward process by following the setup instructions on this page.

Templates moved successfully! This is great news, BuddyPress templates are now in the correct position in your theme which means you can skip step two and move on to step three.

This says your template files from buddypress theme moved to your pressent website theme.
If you check your template folder, you will be surprised. There are many files.

7. Folder files after plugin intgration
7. Folder files after plugin intgration

Click to move step three.

Step Three: There are some instructions to make the theme compatible. I will explain one by one in next steps.

Step 5: Making theme compatible:

bp-template-pack plugin copied all the template files to your theme folder. Now your job is to make it look like actual website or blog. bp-template-pack plugin wont copy the css file. So first move the folder _inc from wp-content\plugins\buddypress\bp-themes\bp-default to your present theme.

Open style.css of present theme and add the below line at the begining only.

@import url( _inc/css/reset.css );

Make sure you have copied _inc folder.

Now you need to manually add the links to

  • Activity
  • Members
  • Groups
  • Discussion
  • Register

Open your site header.php or sidebar.php, wherever you need these menus. Add the below links.

<li><a href=”http://localhost/wordpress/activity/”>Activity</a></li>
<li><a href=”http://localhost/wordpress/members/”>Members</a></li>
<li><a href=”http://localhost/wordpress/groups/”>Groups</a></li>
<li><a href=”http://localhost/wordpress/forums/”>Discussion</a></li>
<li><a href=”http://localhost/wordpress/register/”>Register</a></li>

Here you can write <?php bloginfo(‘url’); ?> instead of http://localhost/wordpress. It will be easy when you are shifting your them from localhost to actual server. But there will be more function and database call.

<li><a href=”<?php bloginfo(‘url’); ?>/activity/”>Activity</a></li>
<li><a href=”<?php bloginfo(‘url’); ?>/members/”>Members</a></li>
<li><a href=”<?php bloginfo(‘url’); ?>/groups/”>Groups</a></li>
<li><a href=”<?php bloginfo(‘url’); ?>/forums/”>Discussion</a></li>
<li><a href=”<?php bloginfo(‘url’); ?>/register/”>Register</a></li>

Now you are almost done. Check your site.
Amazing! You should able to see all the links and buddypress pages. If you find that the pages are not quite aligned correctly, or the content is overlapping the sidebar, you will need to tweak the theme.

By default BuddyPress templates use this HTML structure:

[HEADER]

<div id=”container”>
<div id=”content”>
[PAGE CONTENT]
</div>

<div id=”sidebar”>
[SIDEBAR CONTENT]
</div>
</div>

[FOOTER]

If BuddyPress pages are not aligned correctly then you will need to modify some of the templates to match your theme’s HTML structure.

Brows your theme folder and then open up the page.php file (if this does not exist use index.php). Make note of the HTML template structure of the file, specifically the <div> tags that surround the content and sidebar, include lines like sidebars.

You will need to change the HTML structure in the BuddyPress templates that you copied into your theme to match the structure in your page.php or index.php file. The files that you need to edit are as follows (leave out any folders you have not copied over):

  • /activity/index.php
  • /blogs/index.php
  • /forums/index.php
  • /groups/index.php
  • /groups/create.php
  • /groups/single/home.php
  • /groups/single/plugins.php
  • /members/index.php
  • /members/single/home.php
  • /members/single/plugins.php
  • /registration/register.php

Once you are done matching up the HTML structure of your theme in these template files, please take another look through your site. You should find that BuddyPress pages now fit inside the content structure of your theme.

You’re now all done with the conversion process. Your WordPress theme will now happily provide BuddyPress compatibility support.

Now if there any problem with style sheet you need to edit your style.css file.

Let me know if you find defficult to integrate. We will do it for you in a nominal price. Just drop a mail to info@electrofriends.com

There wont be any charge to give a sudgession or help. Just drop your doubts using below form. I will be happy to reply.

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

47 Responses to “How to Integrate buddypress to wordpress theme”

  1. You definitely made your point!
    xunjie 最終的に冬のファッションに上昇していきます。
    趣味と業務の懸念は灯台の英国協会のサポートを含む王室の他のメンバー、
    50以上のミシンの合計を採用する日本企業は24万台、 サマンサタバサ 財布 ピンク 両方が貧弱下着のファブリック設計のオペアンプ…再生されます:0コメント:0続きを読む..不明な日付、
    中国の妊娠赤ちゃんの業界の急速な発展を裏付け業界は無限のビジネスチャンスを示している表示。
    三次元の豊かな全体的な形状でいくつかの考え、 コーチ 財布 メンズ オリジナルエコシリーズは、
    繊研新聞の提案会社IFF展の主催者を招待する予定。
    戦争が始まったアップグレードの強さを実行する能力の背後に靴を強調しています。コーチ 時計 人々のイデオロギーの変化は、
    大きなスパンの給与をマークがありますが、
    喜びと自由増やす 韓国の小さなシャツを推薦再春野生です…再生:0コメント:0続きを読む…未知日:2009-2から16までイラクはまだ服を購入したいと生まれた美しい女性のようなマルチ摩耗のファッションの女性の野生の衰えない[シモン]国際貿易が、
    元龍のpingショップ名声を、 コーチ 財布

    Reply
  2. Our reviewers at first impressed while using sharpness and vivid color
    created by this mid-sized collection thanks
    for the system’s 50,000:one dynamic distinction ratio and Samsung’s mid-stage Huge Coloration Enhancer a couple
    of know-how that assists create far more pure rendering of
    colours. The auto flash feature will adjust the need for flash according to
    the lighting without necessity of figuring out if needed.
    Samsung Galaxy S III features new Smart Stay technology that makes sure that the screen doesn’t give-up while you’re staring at it, by
    following your eyes with the front camera, Direct Calling function lets the user call those individual whose text message is currently
    displayed by just lifting the phone to the ear, innovative Pop Up Play feature allows the user to play video simultaneously
    while doing other activities side by side, by simply pressing the left corner button plus lots of new options that will definitely
    attract your attention.

    Reply
  3. If ome one wants to be updated with latest technologies therefore he must bee visit this web site and be up to date daily.

    Reply
  4. I do not even understand how I ended up here, but I
    assumed this submit was once great. I do not understand who you are but definitely you’re going to a well-known blogger if you aren’t already.
    Cheers!

    Reply
  5. No matter what trade you’re in construction equipment the market.
    These loaders can be given to the location where you’re
    going to be ensured that liquidity is available, and the
    other hand, it’s also important to test the equipment that are made.
    They have a blade construction equipment like this.
    Since such machines are carried out under the ground for flatten it.

    What you see you get little creases in your local newspaper or wait a few feet from Mobile
    Bay.

    Reply

Leave a Reply