Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyBar for bbPress

Viewing 25 replies - 76 through 100 (of 153 total)

  • Rohan Kapoor
    Participant

    @rohan_kapoor

    @John: no problem. I don’t mind waiting. If you find anything out, I would really appreciate it. Thanks again for all of your help.

    @Russell: I would recommend it! It helps with troubleshooting.


    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!


    Rohan Kapoor
    Participant

    @rohan_kapoor

    Hey John,

    just for a test I installed bbpress at http://wpmu.zyrot.com/forums and the deep integration works fine. For some reason the different subdomains are throwing it off. Can you tell me if you can figure anything out because I need the different subdomains to work!

    Thanks!

    It could be because the ‘root’ of forums. is different than the root of wpmu.

    If the wpmu stuff is looking for root or relative drive mappings, then when you have the forums calling it from a folder outside the relativity of the wpmu install, it can’t find the files.

    That’s a WAG without enough coffee in my system. I wonder if a symlink would trick it…


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    @Russel Crosswy, the reason deep integration doesn’t work when you use your http:// method is because you cannot include an external PHP script, you can only do it via an internal method. As soon as it crosses the HTTP, the file will exist but not get included by the server, so you’re not actually including that file at all.

    Which version of WPMU are you using?

    @Rohan, I’m curious to setup something like you have because it’s something I’d like to have eventually for myself also. I’m afraid I won’t have time today to set it up, but it is on my list of things to figure out.


    Rohan Kapoor
    Participant

    @rohan_kapoor

    Hmmm! That is very interesting and it leads to some very though provoking stuff!

    I tried basic symlinks already linking the subdomains folder to the one that works. That didn’t work.

    What I’m gonna try is changing the docroot to the wpmu/forums directory and see if that works. This is getting complicated!


    Rohan Kapoor
    Participant

    @rohan_kapoor

    @John: Don’t worry too much. I’m trying it a bit myself! We’ll see what happens!


    russell-crosswy
    Participant

    @russell-crosswy

    Versions I’m using:

    WordPress MU 2.7.1

    BuddyPress 1.0.2

    bbPress 1.0.1


    Rohan Kapoor
    Participant

    @rohan_kapoor

    @ipstenu: i tried what you said but changing the document root also didn’t help. I am quite honestly stuck now!


    Rohan Kapoor
    Participant

    @rohan_kapoor

    I think I might be able to pull something fancy with mod_rewrite. i’ll try tomorrow!


    argyris
    Participant

    @argyris

    Hi,

    I’ve installed the plugin and everything seemed to work just fine, with the exeption that now the bb lang file is not loaded or not used, so my bb interface is back to the default lang (ie en)

    I’m using wpmu 2.8.1 bp 1.0.2 and bb 1.0.1 (with the deep integration)

    Any help will be apreciated.

    Thank you!


    Brian Neil Katz
    Participant

    @briankatz

    I completed installation of the following

    WPMU 2.8.1, (trunk 1867)

    BuddyPress 1.1

    bbpress 1.01, (trunk 2311)

    BuddyBar 1.0.3

    Site:

    http://www.wpmeetups.com

    http://www.wpmeetups.com/forums/

    Integration has been successfully set-up between Forums and BuddyPress Group Forums.

    Problem: Insertion of the following in bb-config.php: (generates a white screen)

    <php

    if ( !defined( ‘ABSPATH’ ) & !defined( ‘XMLRPC_REQUEST’ )) {

    define( ‘WP_USE_THEMES’, false );

    include_once( ‘/var/www/vhosts/wpmeetups.com/httpdocs/wp-blog-header.php’ );

    header( “HTTP/1.1 200 OK” );

    header( “Status: 200 All rosy” );

    }

    Question: Will the following correction to 2 core files correct this problem:

    You’ll actually need to patch two CORE files, to make this work now.

    wp-includes/wpmu-functions.php on line 317 and line 352

    Change _init to __constuct (__construct)

    And then in wp-includes/capabilites.php on line 84 and 99

    Change _init to __constuct (__construct)

    Ugh… I hope this is fixed soon.


    Rohan Kapoor
    Participant

    @rohan_kapoor

    @Brian: Yes the correction to thos two core files will solve your problems. Chances are the next version will have done something about it as well.


    Rohan Kapoor
    Participant

    @rohan_kapoor

    @argris: chances are the deep integration is overriding your language defaults. Check if you have the correct language in all of your programs (mu, buddypress and bbpress)


    Brian Neil Katz
    Participant

    @briankatz

    @Rohan Thanks for the help with the modification of the two core files:

    1) wpmu-functions.php

    2) capabilities.php

    No longer receiving a ‘white screen; however I do not see the Buddy Bar?

    http://www.wpmeetups.com

    http://www.wpmeetups.com/forums

    Any idea? I thinking I left something out?


    argyris
    Participant

    @argyris

    @Rohan

    The other programs (mu and buddypress) have indeed the correct language. Only bbpress has the problem after the deep integration.

    Any ideas?


    Rohan Kapoor
    Participant

    @rohan_kapoor

    @Brian: did you activate the plugin? At one point after solving the white screen i had forgotten to activate the plugin, :D!

    @argyris: Do you the language files have anything to do with the bb-config.php file? I don’t think they do therefore I’m not sure why you would have that problem. It sounds like the language has been “disabled.”


    argyris
    Participant

    @argyris

    Strange! When I comment the include part of the ‘deep integration’, everything gets back to normal, but without the baddybar :(


    nielowait
    Participant

    @nielowait

    @the wall:

    I spent most of the day trying to figure out (like many others) why buddypress groups and bbpress wasn’t integrating. In the end I managed to track down that, in my instance, the xmlrpc wasn’t working for some reason. The connection seems to be closed prematurely. When I eventually tracked down the fault to where the buddybar plugin gets included, and once I deactivated it, the xmlrpcs (and thus the integration) started functioning properly.

    Please excuse if this has already been addressed in this thread, it’s been a long day, so don’t have the energy to read through everything right now, but I wanted to share what I found out in case it could help anyone else.

    As soon as I can, I’ll try using the bleeding edge version and see if I can’t figure out what’s happening with the particular setup I’m working with to cause this to happen. The odds are good that it might even work without any fuss using the above-mentioned version.


    Brian Neil Katz
    Participant

    @briankatz

    Woo Hoo! Thank you for everyones help : @JJJ and @Rohan

    http://www.wpmeetups.com

    http://www.wpmeetups.com/forums/

    Fully Integrated with the following:

    1) 2.8.1 WPMU (latest trunk – 1867)

    2) BuddyPress 1.1

    3) bbPress 1.01 (latest trunk – 1361)

    4) BuddyBar 1.03

    5) Modification of of two core files

    a) wpmu-functions.php b) capabilities.php

    Thanks Again


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Regarding the capabilities issue. please refer to this fix from donncha. It is an official changeset to WPMU, so using this method will be future safe and not involve editing the WordPress core files going forward.

    Thanks donncha for listening. :)


    argyris
    Participant

    @argyris

    Thanks John :)

    Any idea anout the language problem?


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    @argyris, nope, haven’t even checked it out yet and probably won’t for a few days.

    My guess is that WordPress is overriding the language setting for bbPress in a way it doesn’t understand. Lots of times the filters don’t jive 100%, so I’ll need to see which setting gets flushed and rehook it.

    Probably not a big deal, just in the middle of two big projects this week. :/


    Rohan Kapoor
    Participant

    @rohan_kapoor

    @Brian: glad to see we could help.

    The bloody .htaccess method is pissing me off. :D


    argyris
    Participant

    @argyris

    Thanks, I’ll wait !

Viewing 25 replies - 76 through 100 (of 153 total)
  • The topic ‘BuddyBar for bbPress’ is closed to new replies.
Skip to toolbar