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.
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.
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.
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.
Click “Update your permalink structure” link or brows Settings->permalinks and update as shown below. Select custom structure and write
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
Once the installation is done Brows Appearence->BP Compatibility and follow the instructions step by step.
Click Move Template files button.
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.
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
Open your site header.php or sidebar.php, wherever you need these menus. Add the below links.
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:
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):
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 email@example.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.
This is the one stop educational site for all Electronic and Computer students. If you want to learn something new then we are here to help. We work on Microcontroller projects, Basic Electronics, Digital electronics, Computer projects and also in basic c/c++ programs.
Copyright©2012 electrofriends.com All Rights Reserved