It requires “deep integration” which I know I will catch hell from _ck_ for requiring, but for anyone that’s integrating BuddyPress and bbPress, and wants to have their BuddyBar in their forums, this is my solution.
Happy testing!
It requires “deep integration” which I know I will catch hell from _ck_ for requiring, but for anyone that’s integrating BuddyPress and bbPress, and wants to have their BuddyBar in their forums, this is my solution.
Happy testing!
OK, I have sort of a weird problem that I am hoping I can get some help with.
I have multiple WP sites integrated with each other – 1 install on the root domain, and numerous installs on subdomains.
In order to integrate users and cookies to maintain a login valid across all the installs the Authentication Unique Keys section in my wp-config is set up like this:
define (‘COOKIE_DOMAIN’, ‘.mydomain.com’);
define(‘COOKIEPATH’, ‘/’);
define(‘AUTH_KEY’, ‘mygeneratedkey’);
define(‘SECURE_AUTH_KEY’, ‘mygeneratedkey’);
define(‘LOGGED_IN_KEY’, ‘mygeneratedkey’);
define(‘NONCE_KEY’, ‘mygeneratedkey’);
$baseurl = ‘http://www.mydomain.com’;
$cookiehash = md5($baseurl);
define(‘COOKIEHASH’, $cookiehash);
define (‘AUTH_SALT’,’AUTH_SALT’.COOKIEHASH);
define (‘LOGGED_IN_SALT’, ‘LOGGED_IN_SALT’.COOKIEHASH);
define (‘AUTH_COOKIE’, ‘AUTH_COOKIE’.COOKIEHASH);
// define (‘SECURE_AUTH_COOKIE’, ‘SECURE_AUTH_COOKIE’.COOKIEHASH); // If you use connection SSL
define (‘LOGGED_IN_COOKIE’,’LOGGED_IN_COOKIE’.COOKIEHASH);
define (‘TEST_COOKIE’, ‘TEST_COOKIE’.COOKIEHASH);
As a result, I can’t find the salts needed in wp-admin/options.php as they are not listed. I’ve tried using the same settings in bbpress as above in the bb_config file (see below), but no love. I’ve also tried changing them to BB_%WHATEVER% which doesn’t seem to work either.
define (‘COOKIE_DOMAIN’, ‘.mydomain.com’);
define(‘COOKIEPATH’, ‘/’);
define( ‘BB_AUTH_KEY’, ‘mygeneratedkey’ );
define( ‘BB_SECURE_AUTH_KEY’, ‘mygeneratedkey’ );
define( ‘BB_LOGGED_IN_KEY’, ‘mygeneratedkey’ );
define( ‘BB_NONCE_KEY’, ‘mygeneratedkey’ );
$baseurl = ‘http://www.mydomain.com’;
$cookiehash = md5($baseurl);
define(‘COOKIEHASH’, $cookiehash);
define (‘AUTH_SALT’,’AUTH_SALT’.COOKIEHASH);
define (‘LOGGED_IN_SALT’, ‘LOGGED_IN_SALT’.COOKIEHASH);
define (‘AUTH_COOKIE’, ‘AUTH_COOKIE’.COOKIEHASH);
// define (‘SECURE_AUTH_COOKIE’, ‘SECURE_AUTH_COOKIE’.COOKIEHASH); // If you use connection SSL
define (‘LOGGED_IN_COOKIE’,’LOGGED_IN_COOKIE’.COOKIEHASH);
define (‘TEST_COOKIE’, ‘TEST_COOKIE’.COOKIEHASH);
All of the users can login to bbpress using the same username and password as on the wp sites, but the cookie integration doesn’t work, and again – I cant find the correlating values in wordpress.
Does anyone have any suggestions?
anyone has idea about this???
Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘admin’@’localhost’ (using password: YES) in /home/a6494964/public_html/forums/bb-includes/backpress/class.bpdb.php on line 123
Hi –
I want any user who I register on my WPMU site to automatically get the cookie-share-log-on-goodness that bbpress provides.
HOWEVER!!!
I do NOT want any user who registers at my bbpress site to get a WPMU account. I don’t even want them to get a “subscriber” account.
Any ideas?
I’m trying to protect page on another subdomain… but unfortunately bbPress is not authenticating the cookie. (they are set for .domainabc.net)
for test.domainabc.net:
Cookie: bbpress_logged_in_00aa30280fe74d40ca269b5b2efffba3=rich%7C1247421898%7Cfbd785e0974af74814b56550af9c49dc
for forums.domainabc.net
Cookie: bbpress_logged_in_00aa30280fe74d40ca269b5b2efffba3=rich%7C1247421898%7Cfbd785e0974af74814b56550af9c49dc
on test.domainabc.net i have something like this:
require_once ('../forums.domainabc.net/bb-load.php');
function add_allowed_redirect_hosts() {
$allowed_redirects = array('test.domainabc.net');
return $allowed_redirects;
}
add_filter('allowed_redirect_hosts', 'add_allowed_redirect_hosts');
bb_auth( 'auth' );
It will properly redirect to the login page, enter info, redirect back to test.domainabc.net – but then it will issue another 302 redirect back to forums.domainabc.net.
and if i place a die statement within this bb_auth else on test.domainabc.net it will echo
if ( 'auth' === $scheme && !bb_is_user_logged_in() ) {
//redirects fine to login page the first time...
} else {
//echo - this happens when returning a 2nd time
}
BUT… if i return to forums.domainabc.net i’m logged in… and everything works.
I just tried to upgrade a 0.8.3 forum to 1.0.1. I am experimenting, so I did the following:
– Created a copy of my production forum db (didn’t turn off plugins or anything first) – call it “DBCOPY”
– Copied the 1.0.1 bbPress files to a domain I use to stage upgrades – call it “stage.com”
– Browse to “stage.com/forum”
The first strange thing was that after the first step in the upgrade process I checked “bb-config.php” and BBDB_NAME was *not* what I specified in the form. Somehow the upgrade process had found a previous bbPress database that I had associated with stage.com and used that instead (!). This seemed so strange that I repeated the entire process, with the same result.
I manually set the DB to the correct name, and then the upgrade then appeared to complete without a hitch, but…
1. When I browsed to “stage.com/forum” I see the message “Could not determine site URI”
2. The “New bbPress installation” email message has “Please give me a name!” in the from field
I then started from scratch with bbPress 0.9.0.5 and everything went as expected. Upgrade completed flawlessly.
Is upgrade from 0.8.3 not supported? I don’t see that written anywhere. If bbPress is really overriding my BBDB_NAME specification then this is a pretty serious bug.
I’ve noticed that when I’m commenting on bbpress.org, there’s also a “tags” field.
Does that allow me to tag the topic itself? Or just my individual post? Or maybe the goal is to encourage commenters to help tag the topic?
Wondering if this is a new option or if it’s always been there but just off by default (it doesn’t show up on my 0.9 installs). I worry that it would be slightly confusing for new users… but thought I’d check what everyone else thought!
Hi,
I did not see information on how to upgrade from 1.0-alpha-x to 1.01. Are there any problems? Someone already did this?
I’ve bbPress 1.0-alpha-2 with WP integration (v. 2.
SMS
i’m having some issues with some of my plugins not working, i think it might have to do with folder permissions.
my-plugins/my-templates folder are set to 750, whereas all the other folders are set to 705.
any thoughts/opinions?
thanks in advance. hosting is at godaddy.
Hello BB gurus……
I have a strange issue with my profile permalinks. They all work with permalinks off but only some work with permalinks on! As an example, http://new.bikeking.com.au/forum/profile/admin is fine but http://new.bikeking.com.au/forum/profile/AdamBarron says user not found!?! I imported a bunch of user profiles from an old DB (these seem to be the ones not working) but don’t know how to fix it.
Even if you don’t know what is wrong, can you at least point me to the file the reads the profile variable (I love BB but the documentation is pretty bad).
Please help!
Cheers.