Forum Replies Created
-
In reply to: Slashes being added in front of apostrophes
thank you RCanine!
In reply to: WordPress + bbPress Integration 101ok update as ive been messing with thing maybe too much.
if i include the wp-blog-header.php to use WP functions i am never recognized as logged in on BB side even though using the bb form gets me logged in on wp side. everything redirects me to the forum homepage when trying to go to admin or profile. weird.
with the include not there I can login and be shown logged in on bbpress side, but i cannot logout! omg it doesnt end. maybe its because i have had 5 hours of sleep the past two nights but any help on this would rock!
In reply to: WordPress + bbPress Integration 101Im integrating my second wp and bb site and this time around it seems there are some easier steps only I cant get this setup to work. I can login to the WP side fine. But when i login from bb side it just redirects to the forum homepage. It will login the person on the wp side but not let them do a thing on the bb side.
I dont have admin access until wipe out the theme and clear the cookies. its very strange.
I followed all steps correctly in the writeup. any help would be much appreciated.
here is what my bb-config file looks like
require_once('/path/to/blog/wp-blog-header.php');
// ** MySQL settings ** //
define(‘BBDB_NAME’, ‘db’); // The name of the database
define(‘BBDB_USER’, ‘user’); // Your MySQL username
define(‘BBDB_PASSWORD’, ‘pswd’); // …and password
define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change these last few
define(‘BBDB_CHARSET’, ‘utf8’); // If you are *upgrading*, and your old bb-config.php does
define(‘BBDB_COLLATE’, ”); // not have these two contstants in them, DO NOT define them
// If you are installing for the first time, leave them here
define(‘COOKIEPATH’, ‘/’ );
define(‘SITECOOKIEPATH’, ‘/’);
// Change BB_SECRET_KEY to a unique phrase. You won’t have to remember it later,
// so make it long and complicated. You can visit https://www.grc.com/passwords.htm
// to get a phrase generated for you, or just make something up.
// If you are integrating logins with WordPress, you will need to match the value
// of the “SECRET_KEY” in the WordPress file wp-config.php
define(‘BB_SECRET_KEY’, ‘secretkeydotcom’); // Change this to a unique phrase.
// If you are running multiple bbPress installations in a single database,
// you will probably want to change this.
$bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!
// Change this to localize bbPress. A corresponding MO file for the
// chosen language must be installed to bb-includes/languages.
// For example, install de.mo to bb-includes/languages and set BB_LANG to ‘de’
// to enable German language support.
define(‘BB_LANG’, ”);
/* Stop editing */
if ( !defined(‘BB_PATH’) )
define(‘BB_PATH’, dirname(__FILE__) . ‘/’ );
require_once( BB_PATH . ‘bb-settings.php’ );
$bb->wp_siteurl = ‘http://www.site.com/blog/’;
// that’s your WordPress URL, not bbPress
$bb->wp_home = ‘http://www.site.com/blog/’;
// almost always the same as siteurl unless you tinker
$bb->wp_table_prefix = ‘wp_’;
// should almost always be wp_ unless you tinkered
$bb->user_bbdb_name = ‘db’;
// this is the MYSQL database name for *WordPress*
// you can copy it right out of WordPress !
$bb->user_bbdb_user = ‘user’;
// this is the MYSQL user name for *WordPress*
// you can copy it right out of WordPress !
$bb->user_bbdb_password = ‘pswd’;
// this is the MYSQL password for *WordPress*
// you can copy it right out of WordPress !
$bb->user_bbdb_host = ‘localhost’;
// 99.9% of the time it’s going to be localhost, unless you are on DreamHost or some other weird ISP
$bb->custom_user_table = ‘wp_users’;
// 99.9% of the time it’s going to be wp_users
$bb->custom_user_meta_table = ‘wp_usermeta’;
// 99.9% of the time it’s going to be wp_usermeta
$bb->authcookie = ‘wordpress_randomnumbers’;
// in theory you should be able to leave this out
// but this is going to be copied from WordPress cookie
// this *must* match the WordPress setting
// do NOT use the 1234567 part, use your own cookiehash from WordPress – see the note at the very bottom
$bb->cookiedomain = ‘.site.com’;
// note the leading DOT – this is important
// this *must* match the WordPress setting
$bb->cookiepath = ‘/’;
// I *highly* recommend you set the cookie path to /
// this *must* match the WordPress setting
$bb->sitecookiepath = ‘/’;
// I *highly* recommend you set the cookie path to /
// this *must* match the WordPress setting
//tried this – doesnt work with or without…ugh
$bb->usercookie = ‘wordpressuser_randomnumbers’;
$bb->passcookie = ‘wordpresspass_randomnumbers’;