Getting Buddypress to work when wordpress installed in subdirectory (not in root)

Hello?

Hi, I have installed Wordpress 3.01 in a subdirectory http://www.example.com/subdirectory.

The site is also running buddypress and BP templack pack making the theme Buddypress Compatible

I have moved the index.php into the root director /public_html from /public_html/subdirectory

This is the code I put in the index.php is


<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./subdirectory/wp-blog-header.php');
?></blockquote

>

Now the site works fine like about pages/ posts etc. However the buddypress sites such as profiles and member information won't work. What configuration do I need to change to point the buddypress theme files to the right subdirectory.