MENUMENU

WordPress bbPress login problem

1 Etoile2 Etoiles3 Etoiles4 Etoiles5 Etoiles
WordPress bbPress login problem

This page is in English only - Wordpress bbPress unique login and single sign on problem. Here is the solution to avoid sign out between your blog and your forum

Once you followed all bbPress instructions to install and connect your forum to your WordPress blog, your realize single sign one does not work: your are signed out when you switch from your blog to your forum, and vis versa…

Here is the solution that worked for me…

Your wordpress path

First, check out where you wordpress blog is installed. If you have no idea, then create a new blank file path.php and insert the following line of code into it:
<?php echo getcwd(); ?>
Then open this page in your web browser by typing http://www.yoursite.com/path.php.
-> you should get something like /home/xyz/public_html/sitename/.

Activate php 5, even on bbPress

On your bbpress root directory, make sure you have a .htaccess with the following line SetEnv PHP_VER 5 in it to make sure that when bbpress call wordpress, it won’t hang out.

Load your WordPress header

Edit your bb-config.php file and add the following code at the beginning:
if ( !defined(‘ABSPATH’) & !defined(‘XMLRPC_REQUEST’)) {
define(‘WP_USE_THEMES’, false);
include_once( ‘PASTE ABSOLUTE PATH HERE/wp-blog-header.php’ );
header(“HTTP/1.1 200 OK”);
header(“Status: 200 All rosy”);
}

Suivre nos prochains articles sur les réseaux sociaux

Laisser votre commentaire








Autres bons plans

error: Contenu protegé.