Skip to:
Content
Pages
Categories
Search
Top
Bottom

Login Integration Issues – bbpress and wordpress mu


  • eyashwant
    Member

    @eyashwant

    I installed wordpress mu and bbpress in single database and installed integration plugins of respective ones on both. And configured it.

    As of today mine is the latest wordpress mu version and bbpress version. The problem I am facing is :

    1) Login integration

    2) User roles integration

    3) Theme integration

    In detail :

    1) Login integration :

    When I login in to wordpress and then move to forum, I am logged in. Also when I logout of wordpress and then go to forum I am logged out. This works perfectly. The problem is when I login in to forum and then move to wordpress, it does not work. Also when I logout at forum and then move to wordpress I am still logged in. I can access wp-admin. When I access wp-login it seems like I am logged out. But if I access wp-admin I am logged in. If I press log out I get error :

    You are attempting to log out of Test 1

    Please try again.

    URL of where I am getting is http://test1.soulblog.net/wp-login.php?action=logout_wpnonce=f3ec0d7e0f

    2) User roles, in wordpress I installed Role manager. In bbpress I see the registered users as “Inactive (no role)”

    3)I want to integrate wordpress theme in the forum. I followed the steps below :

    ____________________________________________

    styling your forum

    1. Open bb-config.php and add the following line (replacing PATHTOYOUR with the

    relative path to your blog):

    require_once(‘/PATHTOYOUR/wp-blog-header.php’);

    2. Navigate to the folder for the theme you are using on the forum (the default is

    Kakumei, which is in /bb-templates/kakumei) and open the header.php

    file. Replace the contents with <?php get_header(); ?>.

    3. After the <?php get_header(); ?>, ����������������������������������insert the following line of code:

    <link rel=”stylesheet” href=”<?php bb_stylesheet_uri(); ?>”

    type=”text/css” />.

    4. You can do the same with the footer, replacing it with <?php get_footer(); ?>

    if you wish.

    5. Open the style.css file for the bbPress theme you are using. Search for the

    following line in the header: class.

    background: url(‘images/page_header_bblogo.png’) no-repeat

    Remove that line and save the file.

    6. View the forum. It should now be very similar in look and feel to the rest of the

    blog network.

    __________________________________________

    This replaced the header and footer, but did not integrate well.

    So some one please guide me with these 3 issues and get me solved asap.

Viewing 12 replies - 1 through 12 (of 12 total)

  • chrishajer
    Participant

    @chrishajer

    Rescued from akismet today. Sorry about that


    eyashwant
    Member

    @eyashwant

    Oh that is fine, just want a solution quick. Waiting for some good soul to help me

    # 1

    WordPressMU user integration with bbPress

    1 When installing wordpressmu/bbpress do NOT use “www.” Example: use http://bbpress.org not http://www.bbpress.org and use the same database. You do not need to change the prefix, I prefer you don’t because you’ll run into problem later.

    2 Make sure bbpress is in a folder in wordpress. example: wordpress/bbpress/ not on the same level.

    3 The folder does not have to be named bbpress, most people make it “forum” or “forums”.

    *After successfully installing both programs open wp-config.php file (in the wordpress folder). Around line # 45-# 48 you’ll see define(‘AUTH_KEY’…. go to this URL (https://api.wordpress.org/secret-key/1.1/salt) and get the EIGHT keys and REPLACE the FOUR keys that are there. Save and upload. Keep the file open for now.

    4 Open bb-config.php (in the bbpress folder) do the same thing here. With the SAME keys you put in the wordpress file put in the bb-config file around line # 41-45. You have to add BB_ to the front of the names. Example: BB_AUTH_KEY to all eight. Save and upload. Keep the file open for now.

    5 Clear your cache on your browser. Log into your bbpress dashboard and go to Settings->Wordpress Integration-> WordPress Administrator should be keymaster. Every other option should be member for now. WordPress address (URL) should be the URL again NO www. Blog address (URL) the same as before. The last 3 should be LOCKED if not repeat the steps 3&4.

    6 Login to your wordpress dashboard. Go to Plugins->Add New-> search for “bbPress Integration” it should be the first one. Install it and activate.

    7 Go to Settings-> bbPress Integration. Enter the bbPress URL without the www. Your plugins URL leave blank. Check WordPressMU. Click on Save Changes. On the bottom box you’ll see some text copy it. Most likely it will say

    define( 'COOKIEHASH', 'xxxxxxxxxxxxxxxxxxxxxxx' );
    define( 'COOKIE_DOMAIN', '.xxxxxxxxx.com' );
    define( 'SITECOOKIEPATH', '/' );
    define( 'COOKIEPATH', '/' );

    8 Paste the all FOUR lines in wp-config.php file around line # 16 (MUST be on top. Don’t know why) and paste the LAST THREE (leave out cookiehash line) in bb-config.php in line # 13 (Must be on top). Save. You can delete the plugin, it’s no longer needed.

    9 Clear your cache on your browser and you’re done.

    Known Problems

    *Two different database, one for WP and one for BBP, does not always work.

    *Changing the database prefix. There are tutorials out there that tell you to do it, just don’t.

    *Hosting companies that offer free databases, have buggy databases.

    *BBpress not being in WordPress folder. I don’t think the plugin takes that into account.

    *When you upgrade from an older version (wordpressmu/bbpress) the XX-config.php files are different than what you already have. Check wp-config.php against wp-config-sample.php & bb-config.php against bb-config-sample.php should be fairly simple.

    I followed gerikg’s instructions & all seems well, except, when I log into bbPress, then go to WPMU it appears as if I’m logged in. Until I try to admin the site, then & have to log in again. Seems to be that a cookie is not being set.

    bakercad, another issue I ran into last few days was when you choose subdomain as a MU options.

    site.com/blog1 works well

    blog1.site.com sometimes does not work

    I haven’t found a solution that works so far.


    kasper777ny
    Member

    @kasper777ny

    Hey whats up gerikg

    Ive done everything step by step that you wrote about. I even reinstalled and started over from scratch. yet it still seems the cookies are not working. wordpress and bbpress are linked because bbpress actually lets my wordpress logins work… but no matter what i do, i still cant get keep myself logged in when going back &amp; forth from wordpress to forum.

    is this a common issue that just is not working yet?


    wordpress mu 1.9.2

    bbpress 1.0.2

    Who is your hosting company?

    I have one more thing you can do.


    thomas.joy
    Member

    @thomasjoy-1

    hello

    after i do your guide

    the admin of bbpress doesn’t work anymore.

    now when you click admin it stays on the same page

    my keymaster user for bbpress is admin. my main wordpress user is also admin, would this cause it..

    i only have one user/account in wordpress (apart from a user named luzia.selsby without admin privileges) and that is admin


    thomas.joy
    Member

    @thomasjoy-1

    also in notepad++ (advanced text editor) the text stays green (meaning it looks like it stays in the commented out bit and has looks like it has no effect) for the wp-config.php

    where can i go to reverse the changes made to wordpress integration settings in bbpress?


    Ashfame
    Participant

    @ashfame

    this is a small glitch in bbPress that you can’t access the dashboard when logged in from WordPress side. Just login from the bbPress side and everything will be fine.


    thomas.joy
    Member

    @thomasjoy-1

    how can the wordpress admin username/password be used in bbpress login and log in successfully (globally)

    also how can the bbpress (if necessary) be used to successfully log in to wordpress and have the global admin?

    same for users, which i haven’t tried yet

    i’ve setup these (codes removed)

    wp-config.php:

    define(‘AUTH_KEY’, ”);

    define(‘SECURE_AUTH_KEY’, ”);

    define(‘LOGGED_IN_KEY’, ”);

    define(‘NONCE_KEY’, ”);

    define(‘AUTH_SALT’, ”);

    define(‘LOGGED_IN_SALT’, ”);

    define(‘SECURE_AUTH_SALT’, ”);

    bb-config.php:

    define( ‘BB_AUTH_KEY’, ” );

    define( ‘BB_SECURE_AUTH_KEY’, ” );

    define( ‘BB_LOGGED_IN_KEY’, ” );

    define( ‘BB_NONCE_KEY’, ” );

    i copied the corresponding ones to the bb-config.php one

    when i log out of bbpress wordpress is still logged in..


    chrishajer
    Participant

    @chrishajer

Viewing 12 replies - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.