Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Integrating WPMU trunk and bbPress RC2


John James Jacoby
Keymaster

@johnjamesjacoby

Here is what worked for me, on my WPMU sub-domain setup. (Sam, when you go through this, I understand that bbPress stores the salts in the DB and that they aren’t needed here, but for some reason I just feel better inside knowing I put them there the same as they are in wp-config.php :) )

2:05pm eastern time – UPDATE: I have confirmed these settings work on both WPMU subdomain and subdirectory installs. All logins/logouts, cookie clears, posting, and admin panel access works 100%.

WordPress MU is installed on the domain root, bbPress is installed in a SUB-DIRECTORY called “support”

Terms

SUB-DIRECTORY = Name of directory that bbPress is installed in
HASH-FROM-FIREFOX = Cookie hash taken from pre-integrated login cookie
GENERATED = String generated by WordPress key/salt generator

bb-config.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") ;
}

// Typical database stuff - blah blah blah

define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '/');
define('COOKIEHASH', 'HASH-FROM-FIREFOX' );

define('BB_AUTH_KEY', 'GENERATED');
define('BB_SECURE_AUTH_KEY', 'GENERATED');
define('BB_LOGGED_IN_KEY', 'GENERATED');
define('BB_NONCE_KEY', 'GENERATED');
define('BB_AUTH_SALT', 'GENERATED');
define('BB_LOGGED_IN_SALT', 'GENERATED');
define('BB_SECURE_AUTH_SALT', 'GENERATED');

$bb->bb_xmlrpc_allow_user_switching = true;

// 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://domain.com'; // no trailing slash
$bb->wp_home = 'http://domain.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 = '/SUB-DIRECTORY/bb-plugins';
$bb->user_plugins_cookie_path = '/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);

wp-config.php

define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '/');
define('COOKIEHASH', 'HASH-FROM-FIREFOX');

define('AUTH_KEY', 'GENERATED');
define('SECURE_AUTH_KEY', 'GENERATED');
define('LOGGED_IN_KEY', 'GENERATED');
define('NONCE_KEY', 'GENERATED');
define('AUTH_SALT', 'GENERATED');
define('LOGGED_IN_SALT', 'GENERATED');
define('SECURE_AUTH_SALT', 'GENERATED');

Skip to toolbar