Search Results for 'bbpress'
-
Search Results
-
I have written instructions (in Swedish) on how to find and use a Swedish language localization, it can be found here:
Topic: Unable to turn off Gravatar?
Hi,
I just set up a vanilla bbPress installation (0.9.0.2), as I am curious as to how it looks, feels and works. The first thing I did was to turn on Gravatar support, because Gravatar is awesome. However, it seems like I can’t turn it off again! When I uncheck the box and press “Update Settings”, I return to the same page but now with a green box saying “Settings saved.”, suggesting everything went smoothly. However, when I scroll down, I find that the damned box is checked again. What do I do? (And where do I file a bug report if this is not just me?)
// Job
Now that I converted my board from phpbb to bbpress I need to know how to redirect the old stuff to where the new board is (so people coming from google can at least get to the new bbPress index and not just get a 401 – which is what is currently happening). I suppose I need to do this in my htaccess file. Does anyone have the code for this? Thanks.
Ok, it’s a slight fix since it’ll only solve one of the issues (I was having) with integration.
The problem was that I could not for the life of me force bbPress to set a ‘logged_in’ cookie with path ‘/’.
WordPress: domain.com
bbPress: domain.com/forum/
This meant once I’d logged in via bbPress, when I was browsing WordPress (although it set the ‘auth’ cookie fine and I could view wp-admin/) it ‘appeared’ that I was logged out (log in and register link, instead of log out and site admin).
I’d already tried this in bb-config.php, along with the other ‘integration speedups’ bbPress supplied;
$bb->sitecookiepath = '';
I’d also tried setting it to ‘/’ as well, but every time the cookie would not get set.
And here was the culprit; line 673 in bb-settings.php;
$bb->sitecookiepath = rtrim($bb->sitecookiepath, '/');
Then on line 735, it checks if $bb->;sitecookiepath is not set or empty. Otherwise, the ‘logged_in’ cookie for sitecookiepath will not get added to the $cookies array, and hence will not be set when wp_set_auth_cookie is called (specifically line 172, pluggable.php).
Changing the culprit to this fixed it for me;
$bb->sitecookiepath = '/' . trim($bb->sitecookiepath, '/');
The complete fix (for me) was to force all logins, registrations and logouts through bbPress with this in a .htaccess at the WordPress root;
RewriteCond %{QUERY_STRING} action=register
RewriteRule ^wp-login.php forum/register.php [R=301,NC,L]
RewriteCond %{QUERY_STRING} action=logout
RewriteRule ^wp-login.php forum/bb-login.php?logout=1 [R=301,NC,L]
RewriteRule ^wp-login.php$ forum/bb-login.php [R=301,NC]
This actually worked out better for me, since bbPress by nature allows you to skin the login, and users get to enter a little more info for their profile during registration.
Hope this of some help to others!