Re: BuddyBar for bbPress
Here is my bb-config.php file, with the unique keys and such taken out:
<?php
// DEEP INTEGRATION AT THE VERY TOP
if ( !defined( 'ABSPATH' ) & !defined( 'XMLRPC_REQUEST' )) {
define( 'WP_USE_THEMES', false);
include_once( 'http://mydomain.com/wp-blog-header.php' );
//^ wrong way for deep integration, but this keeps the forums integrated between BuddyPress and bbPress, but breaks the BuddyBar for bbPress plugin
//include_once( '/home/username/public_html/mydomain/wp-blog-header.php' );
// ^correct way to do deep integration, works with BuddyBar for bbPress plugin, but breaks forums integration between BuddyPress and bbPress
header( "HTTP/1.1 200 OK" );
header( "Status: 200 All rosy" );
}
// 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_******';
$bb->secure_auth_cookie = 'wordpress_sec_******';
$bb->logged_in_cookie = 'wordpress_logged_in_******';
$bb->admin_cookie_path = '/forums/bb-admin';
$bb->core_plugins_cookie_path = '/forums/bb-plugins';
$bb->user_plugins_cookie_path = '/forums/my-plugins';
$bb->sitecookiepath = '';
$bb->wp_admin_cookie_path = '/wp-admin';
$bb->wp_plugins_cookie_path = '/wp-content/plugins';
/**
* The base configurations of bbPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys and bbPress Language. You can get the MySQL settings from your
* web host.
*
* This file is used by the installer during installation.
*
* @package bbPress
*/
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for bbPress */
define( 'BBDB_NAME', 'database_name' );
/** MySQL database username */
define( 'BBDB_USER', 'username' );
/** MySQL database password */
define( 'BBDB_PASSWORD', 'database_password' );
/** MySQL hostname */
define( 'BBDB_HOST', 'localhost' );
/** Database Charset to use in creating database tables. */
define( 'BBDB_CHARSET', 'utf8' );
/** The Database Collate type. Don't change this if in doubt. */
define( 'BBDB_COLLATE', 'utf8_general_ci' );
/**#@+
* Authentication Unique Keys.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}
*
* @since 1.0
*/
define( 'BB_AUTH_KEY', '******' );
define( 'BB_SECURE_AUTH_KEY', '******' );
define( 'BB_LOGGED_IN_KEY', '******' );
define( 'BB_NONCE_KEY', '******' );
define( 'BB_AUTH_SALT', '*******' );
define( 'BB_LOGGED_IN_SALT', '*******' );
define( 'BB_SECURE_AUTH_SALT', '********' );
define( 'WP_AUTH_COOKIE_VERSION', 1 ); //told this is needed for WordPress MU versions before 2.8
/**#@-*/
define( 'COOKIEHASH', '*******' );
define( 'COOKIE_DOMAIN', '.mydomain.com' );
define( 'SITECOOKIEPATH', '/' );
define( 'COOKIEPATH', '/' );
/**
* bbPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
$bb_table_prefix = 'bb_';
/**
* bbPress Localized Language, defaults to English.
*
* Change this to localize bbPress. A corresponding MO file for the chosen
* language must be installed to a directory called "my-languages" in the root
* directory of bbPress. For example, install de.mo to "my-languages" and set
* BB_LANG to 'de' to enable German language support.
*/
define( 'BB_LANG', '' );
$bb->bb_xmlrpc_allow_user_switching = true;
?>
I realize I’m not incorporating the correct method for deep integration, but this setup is what keeps the forums integrated between BuddyPress and bbPress.
If you have any suggestions on what I should check or look into, I would appreciate it.
Using the bb-config.php file as it is now I can login and out of BuddyPress and bbPress without issue. Cookies are shared and work as expected. The BuddyBar for bbPress plugin seems to have revealed my deep integration issues.
Thanks for any help!