Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • russell-crosswy
    Participant

    @russell-crosswy

    Versions I’m using:

    WordPress MU 2.7.1

    BuddyPress 1.0.2

    bbPress 1.0.1


    russell-crosswy
    Participant

    @russell-crosswy

    Here is my bb-config.php file, with the unique keys and such taken out:

    <?php

    // DEEP INTEGRATION AT THE VERY TOP
    if ( !defined( 'ABSPATH' ) & !defined( 'XMLRPC_REQUEST' )) {
    define( 'WP_USE_THEMES', false);
    include_once( 'http://mydomain.com/wp-blog-header.php' );
    //^ wrong way for deep integration, but this keeps the forums integrated between BuddyPress and bbPress, but breaks the BuddyBar for bbPress plugin

    //include_once( '/home/username/public_html/mydomain/wp-blog-header.php' );
    // ^correct way to do deep integration, works with BuddyBar for bbPress plugin, but breaks forums integration between BuddyPress and bbPress
    header( "HTTP/1.1 200 OK" );
    header( "Status: 200 All rosy" );
    }

    // WordPress database integration speedup
    $bb->wp_table_prefix = 'wp_';
    $bb->wordpress_mu_primary_blog_id = 1;
    $bb->user_bbdb_name = '';
    $bb->user_bbdb_user = '';
    $bb->user_bbdb_password = '';
    $bb->user_bbdb_host = '';
    $bb->user_bbdb_charset = '';
    $bb->user_bbdb_collate = '';
    $bb->custom_user_table = '';
    $bb->custom_user_meta_table = '';

    // WordPress cookie integration speedup
    $bb->wp_siteurl = 'http://mydomain.com'; // no trailing slash
    $bb->wp_home = 'http://mydomain.com'; // no trailing slash
    $bb->cookiedomain = '';
    $bb->cookiepath = '/';
    $bb->authcookie = 'wordpress_******';
    $bb->secure_auth_cookie = 'wordpress_sec_******';
    $bb->logged_in_cookie = 'wordpress_logged_in_******';
    $bb->admin_cookie_path = '/forums/bb-admin';
    $bb->core_plugins_cookie_path = '/forums/bb-plugins';
    $bb->user_plugins_cookie_path = '/forums/my-plugins';
    $bb->sitecookiepath = '';
    $bb->wp_admin_cookie_path = '/wp-admin';
    $bb->wp_plugins_cookie_path = '/wp-content/plugins';

    /**
    * The base configurations of bbPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys and bbPress Language. You can get the MySQL settings from your
    * web host.
    *
    * This file is used by the installer during installation.
    *
    * @package bbPress
    */

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for bbPress */
    define( 'BBDB_NAME', 'database_name' );

    /** MySQL database username */
    define( 'BBDB_USER', 'username' );

    /** MySQL database password */
    define( 'BBDB_PASSWORD', 'database_password' );

    /** MySQL hostname */
    define( 'BBDB_HOST', 'localhost' );

    /** Database Charset to use in creating database tables. */
    define( 'BBDB_CHARSET', 'utf8' );

    /** The Database Collate type. Don't change this if in doubt. */
    define( 'BBDB_COLLATE', 'utf8_general_ci' );

    /**#@+
    * Authentication Unique Keys.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}
    *
    * @since 1.0
    */
    define( 'BB_AUTH_KEY', '******' );
    define( 'BB_SECURE_AUTH_KEY', '******' );
    define( 'BB_LOGGED_IN_KEY', '******' );
    define( 'BB_NONCE_KEY', '******' );
    define( 'BB_AUTH_SALT', '*******' );
    define( 'BB_LOGGED_IN_SALT', '*******' );
    define( 'BB_SECURE_AUTH_SALT', '********' );

    define( 'WP_AUTH_COOKIE_VERSION', 1 ); //told this is needed for WordPress MU versions before 2.8
    /**#@-*/

    define( 'COOKIEHASH', '*******' );
    define( 'COOKIE_DOMAIN', '.mydomain.com' );
    define( 'SITECOOKIEPATH', '/' );
    define( 'COOKIEPATH', '/' );

    /**
    * bbPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each a unique
    * prefix. Only numbers, letters, and underscores please!
    */
    $bb_table_prefix = 'bb_';

    /**
    * bbPress Localized Language, defaults to English.
    *
    * Change this to localize bbPress. A corresponding MO file for the chosen
    * language must be installed to a directory called "my-languages" in the root
    * directory of bbPress. For example, install de.mo to "my-languages" and set
    * BB_LANG to 'de' to enable German language support.
    */
    define( 'BB_LANG', '' );

    $bb->bb_xmlrpc_allow_user_switching = true;
    ?>

    I realize I’m not incorporating the correct method for deep integration, but this setup is what keeps the forums integrated between BuddyPress and bbPress.

    If you have any suggestions on what I should check or look into, I would appreciate it.

    Using the bb-config.php file as it is now I can login and out of BuddyPress and bbPress without issue. Cookies are shared and work as expected. The BuddyBar for bbPress plugin seems to have revealed my deep integration issues.

    Thanks for any help!


    russell-crosswy
    Participant

    @russell-crosswy

    @Russell:

    HOWEVER…

    I lose the forums function in BuddyPress groups

    Remember you also need the XMLRPC call in your bb-config.php as well for group forums.

    $bb->bb_xmlrpc_allow_user_switching = true;

    (goes right before ?> in bb-config.php)

    Do this again and make sure you have the XMLRPC line in bb-config.php

    I’ve had the line: $bb->bb_xmlrpc_allow_user_switching = true; is since the beginning.

    Should I just post my bb-config.php file to troubleshoot?

    Omitting of course the unique keys and such… :)


    russell-crosswy
    Participant

    @russell-crosswy

    JJJ’s method, it looks like /home/public_html/…

    But that way will get BuddyBar in bbPress to work and my forums integration from BuddyPress breaks.

    The only way to keep the forums integration in BuddyPress is to leave it as http://mywebsite.com/wp-blog-hear.php

    I just have no idea why that works…


    russell-crosswy
    Participant

    @russell-crosswy

    I followed r-a-y’s advice and used the ABS path in my bb-config.php file.

    I can activate and use the BuddyBar in bbPress normally.

    HOWEVER…

    I lose the forums function in BuddyPress groups, but if I go back to bb-config.php and use the URL for the include_once line I get the forums functionality back and BuddyBar stops working, i.e. it disappears from bbPress.

    I guess I don’t REALLY have deep integration working, but the forums functionality works as I would expect and right now that is what I am concerned about.

    I’m going to have to sit out and watch this play out and hopefully an easy to follow guide comes out to integrate the latest versions of WPMU, BP, and BB.

    My setup may not be “right” but it works as I want it so that’s all I can ask for right now.


    russell-crosswy
    Participant

    @russell-crosswy

    Ok, using John’s deep integration method loses the forums functionality between BuddyPress and bbPress. Why would that happen?


    russell-crosswy
    Participant

    @russell-crosswy

    Thank you…

    The abs.php file returned a different path I wasn’t considering.

    When I put that path into bb-config.php I lose the integration between BuddyPress and bbPress.

    So, I’m thinking I’m doing something else wrong in the integration between WPMU, BP, and BB.

    I’ll dig in to check settings, any suggestions on where to start?


    russell-crosswy
    Participant

    @russell-crosswy

    In the readme it says to use:

    include_once( '/homepages/8/d149961498/htdocs/codeismusic/wp-blog-header.php' );

    Is that different from:

    include_once( 'http://mydomain.com/wp-blog-header.php' ); ?

    Should I leave out http://mydomain.com?

    Appreciate the help, just not sure what I should change or look into…


    russell-crosswy
    Participant

    @russell-crosswy

    @Russell

    Use the official instructions from the readme.txt.

    http://svn.wp-plugins.org/buddybar-in-bbpress/trunk/readme.txt

    Swap out the include_once line for this:

    include_once($_SERVER[‘DOCUMENT_ROOT’].’/wp-blog-header.php’);

    In most cases that will work, but let us know what happens!

    Tried that and forums would not work with BuddyPress.

    The only way I can keep the forums working with BuddyPress is to keep that line in bb-config.php as:

    include_once( 'http://mydomain.com/wp-blog-header.php' );

    Now leaving that line in bb-config I can post from BuddyPress groups into the forums.

    AND I can now activate the BuddyBar in bbPress plugin, BUT I don’t see the BuddyBar in bbPress!

    Now, could this be an issue somewhere else in bb-config.php?

    I have the integration working and everything, but I’m wondering if I have set something somewhere that is throwing this off…

    Thanks for the help!


    russell-crosswy
    Participant

    @russell-crosswy

    I meant to say that that button will disappear when I change out that line of code…


    russell-crosswy
    Participant

    @russell-crosswy

    Ok, the fix I posted about earlier fixed the issue with BuddyBar…

    However, it breaks the BuddyPress to forums functionality.

    I just checked and switching out that one line of code in bb-config.php will make the “Enable discussion forum” button in a group’s settings and I can’t post to the forum from a group page in BuddyPress.

    I’m pasting verbatim into bb-config.php:

    require_once($_SERVER['DOCUMENT_ROOT'].'/wp-blog-header.php');

    Is that correct? Or do $_SERVER and DOCUMENT_ROOT need to be filled in with different items?


    russell-crosswy
    Participant

    @russell-crosswy

    I don’t have the coding skills to develop this plugin, but I would love to see this come to fruition.


    russell-crosswy
    Participant

    @russell-crosswy

    Ok got it working….

    Thanks for the help!

    Used one of the steps r-a-y proposed to matthijsv earlier that didn’t work for matthijsv:

    Hey matthijsv,

    What happens when you switch out in bb-config.php:

    include_once( ‘/the/absolute/path/to/your/wp-blog-header.php’ );

    for

    require_once($_SERVER[‘DOCUMENT_ROOT’].’/wp-blog-header.php’);


    russell-crosswy
    Participant

    @russell-crosswy

    @r-a-y

    Sorry I missed the second part of your response to me.

    I read matthijsv’s fix, but isn’t the main part of his fix turning off the transposh plugin?

    I don’t have that plugin installed.


    russell-crosswy
    Participant

    @russell-crosswy

    @r-a-y

    BuddyPress and bbPress Integration


    russell-crosswy
    Participant

    @russell-crosswy

    One thing I should add is that I have a privacy plugin on the WPMU side, but I disabled that and still got the same error message.


    russell-crosswy
    Participant

    @russell-crosswy

    I’m getting the same error as matthijsv, fatal error at line 37 of the plugin file.

    I have deep integration working as I can post from BuddyPress or bbPress.

    WPMU 2.7.1

    BuddyPress 1.0.2

    bbPress 1.0.1

    Any suggestions?

Viewing 17 replies - 1 through 17 (of 17 total)
Skip to toolbar