You have to add these lines to your bbPress config.php file – not sure who posted it, but it’s not my idea.
//your try to sync cookies
$bb->cookiedomain = '.myurl.com';
$bb->cookiepath = '/';
You also have to edit WP core files I think.
wp-settings.php line 190
FROM
define('COOKIE_DOMAIN', false);
TO
define('COOKIE_DOMAIN', '.myurl.com');
I’ve got it set up so at http://www.loinhead.net (and forums.loinhead.net) and it works nicely.
That seems to have done the trick. Thanks for posting. I can’t tell you how much searching/testing/wild uncontrollable arm-waving code experimenting I’ve been doing. I did get the WP cookie domain issue figured out, hence the conflict.
Anyhow, all seems to be in order now, so I am just plum tickled! (no, I don’t normally say ‘plum tickled’. And yes, I really am plum tickled.) So thanks a million to you, fel64, for posting my much needed solution.
P.S. Checked out your site…I like the look of the “blog” area quite a bit. Loinhead, eh? Funny. Are you using a “Jello Mold” type layout solution for your liquid css layout? Anyway, the site looks great…
Hehe, no problem, and glad you like the site. The site came after the pun, if you were wondering …
Not sure what a Jello Mold solution is? All I’ve done is float: left
ed the sidebar and float: right
ed the main content bar. To get the background going all the way down I put them into another div.
A lot of the work was already done for me, as I started with the Greenflower WP theme, so it wasn’t a great step from that. Glad you like it, though, really
Wow. I have been trying to get this to work for a while and fel64 got it in one! Thanks so much – much frustration is now gone.
Hey
lets say the forum url is
http://forum.mydomain.com
and the wordpress is http://mydomain.com
what do i have to enter where?
Thanks a lot!
I think if you wait until bbPress 0.9 is released and integrate it with WordPress 2.5, things will be a lot easier.
https://bbpress.org/forums/topic/cookies-subtle-bug-single-sign-on-bbpress-and-wordpress#post-14373