Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: bbPress Integration plugin for WPMU

John,

I came across your other posting ‘Integrating WPMU trunk and bbPress RC2’ and added the following to bb-press.php:

// DEEP INTEGRATION AT THE VERY TOP
// (Sam, I can see you shaking your head right now)
if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST') & !defined('BB_IS_ADMIN')) {
define('WP_USE_THEMES', false);
include_once( '/absolute/path/to/domain.com/wp-blog-header.php' );
//unset($wp_object_cache);
header("HTTP/1.1 200 OK");
header("Status: 200 All rosy") ;
}
'
and

'
// WordPress database integration speedup
$bb->wp_table_prefix = 'wp_';
$bb->wordpress_mu_primary_blog_id = 1;
$bb->user_bbdb_name = '';
$bb->user_bbdb_user = '';
$bb->user_bbdb_password = '';
$bb->user_bbdb_host = '';
$bb->user_bbdb_charset = '';
$bb->user_bbdb_collate = '';
$bb->custom_user_table = '';
$bb->custom_user_meta_table = '';

// WordPress cookie integration speedup
$bb->wp_siteurl = 'http://mydomain.com'; // no trailing slash
$bb->wp_home = 'http://mydomain.com'; // no trailing slash
$bb->cookiedomain = '';
$bb->cookiepath = '/';
$bb->authcookie = 'wordpress_HASH-FROM-FIREFOX';
$bb->secure_auth_cookie = 'wordpress_sec_HASH-FROM-FIREFOX';
$bb->logged_in_cookie = 'wordpress_logged_in_HASH-FROM-FIREFOX';
$bb->admin_cookie_path = '/SUB-DIRECTORY/bb-admin';
$bb->core_plugins_cookie_path = '/MY-SUB-DIRECTORY/bb-plugins';
$bb->user_plugins_cookie_path = '/MY-SUB-DIRECTORY/my-plugins';
$bb->sitecookiepath = '';
$bb->wp_admin_cookie_path = '/wp-admin';
$bb->wp_plugins_cookie_path = '/wp-content/plugins';
define('WP_AUTH_COOKIE_VERSION', 1);

The result being the user integration is working, HOWEVER admin no longer is recognized as ‘KEY MASTER’ nor does it know about my second bbPress user I created as administrator to be used as the user in WPMU’s Forum integration. Using the admin as that user did not solve the problem either of being able post or create topics/groups. It seems that I either get partial data integration or user integration but not both. What a mess.

BTW, I have working without any problem WPMU 2.7.1 and BudyPress 1.0.1. Trying to integrate bbPress 1.0-RC2. I had originally working WPMU 2.7.1, BuddyPress 1.0 and bbPress 1.0-Alpha-6. I should have left things alone.

Skip to toolbar