Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Integration: HELPING HINTS

  • ***Updated June 3rd, 2009 and works with BB RC 1.0, BP 1.0, MU 2.7.1 *******

    I notice that this forum thing is really not that easy for everyone to put in place and I had to do it several times myself to get it working properly. What worked on one server didn’t work as planned on another one. Strange, but I thought I would write this to see if it helps anyone out.

    Integration Assumptions:

    First off, this assumes that you are using SVN of bbPress of at LEAST 1.0 alpha 4 and nothing less. Do not try this on bbPress alpha 7 when it is released! No more than alpha 6. Buddypress beta or SVN as well. I also haven’t tested this without at least having bbPress using the WPMU user tables for integration. You also NEED to be running WPMU 2.7+ SVN or WPMU 2.7 Branch until the release of WPMU 2.7.1 as it doesn’t work on earlier versions of WPMU.

    *** these are requirements for running the bp-forums integration, not buddypress in general! ***

    bbPress Side (First):

    1) you have bbpress installed and a new user created on the “bbPress” side which you granted “administrator” rights by the keymaster

    2) you copy the “buddypress-enable.php” plugin out of the bp-forums folders and copy it into your /my-plugins/ folder (create if it doesn’t exist) so it is /my-plugins/buddypress-enable.php ****People ask about /bb-plugins/ versus /my-plugins/ and put it in /my-plugins/

    3) Enable the plugin through your bbPress administration side for plugins

    4) Edit “settings” to enable xmlrpc and pingbacks (both)

    5) edit your bb-config.php and just before the closing php call at the bottom of the page put:

    $bb->bb_xmlrpc_allow_user_switching = true;

    buddypress Side (Second):

    6) Go into your main blog dashboard as the “site-admin” and go to the “bbPress Forums” page. Put in the URL of your forum like http://yoursite.com/forums/ and make sure you have the ending slash on that one.

    7) Put in the user that you created in step 1 with the bbPress “administration” rights and their password. I never changed the password, just used the random one it sent me, but it is up to you. I usually save it a couple of times to ensure it was entered due to a refreshing bug at time of writing this.

    8) Go to one of your groups (new or existing) and go to the group admin page. Make sure “discussion” is turned off. If it was already off that is fine, but if it was enabled already, turn it off

    9) Turn the group “discussion” back on and then physically go to your forums URL and see if it created the forum on the bbPress side without trying to create a new topic on the buddypress side.

    If you have the new forum now, then you should skip to step 10. If not, go through steps 1-9 again and make sure you got all the steps perfectly.

    10) If you have made it this far, it will work, but I like to create the first post in the new forum on the bbPress side and then see if it shows up in the buddypress group forum. Old habit, but for odd circumstance, it seems to work best for me. If it works, try creating a new topic on the group you have working.

    ***Don’t forget that you have to do step 8 for every group that was created before you enabled the forum integration! Very important***

    Other notes:

    1) The refreshing bug in step 7 killed it for me a couple of times and I made sure I saved it at least 2 times.

    2) Forgetting the line in bb-config.php killed it for me a couple of times as well.

    3) In one install I had to change the bbPress “user” with administration rights password and on the bbPress side and then completing step 7 again.

    4) I also found that through “previous testing” I had some bp_groupmeta entries that were screwing things up with duplicates for the same forum in the database. Shouldn’t happen to anyone else, but that screwed some things up for me as well.

    In terms of having buddypress and bbPress working together, I am sure it works with buddypress on one server and bbPress on another since it works through the xmlrpc module which makes it very powerful.

    Let me know if I am out to lunch as well or you have anything else to add!

    Trent

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

  • John James Jacoby
    Keymaster

    @johnjamesjacoby

    Yep that’s exactly correct. In theory, to create a post from within the Group forum, you should not need cookie integration, because the XMLRPC request happens very ajax-like behind the scenes and does not require for you as a specific user to be logged into both platforms.

    However, to click over to the forums and post inside of them, you will want to have cookie integration for the transparent optimal user experience that most of us are striving for.


    Matt Kern
    Participant

    @mattkern

    Interesting point John, thanks.

    After spending a few hours with little success, it seems I am having difficulties on 2 fronts: wpmu and bbpress integration and buddypress xmlrpc integration.

    I am at times not sure which one I am troubleshooting.


    Matt Kern
    Participant

    @mattkern

    Alright, got xmlrpc all worked out. I was make an assumtion in Trents directions that was not correct. I found this doc and it answered a few questions I had.

    https://trac.buddypress.org/browser/trunk/bp-forums/installation-readme.txt (btw – this link should be made much clearer in the BP install docs. Maybe make is a sidebar nav link)

    Still trying to integrate cookies. Anyone got any words of wisdom on that one?

    What assumption did you make in my directions that were not correct? Just trying to understand how everyone interprets things. Getting forums integrated seems like a simple task, but it really can be a pain for so many people! As well, cookie integration is a nice thing to do *after* getting this working since it complicates things in my opinion due to the massive amount of information coming at you even without getting into cookies….

    Trent


    Matt Kern
    Participant

    @mattkern

    Trent, the part I glossed over was

    >>1) you have bbpress installed and a new user created on the “bbPress” side which you granted “administrator” rights by the keymaster

    Reading it now, it is obvious, but before – I was not creating a second user and giving him administrator rights. I was using my first “admin/keymaster” account as the main one.

    Once I created that second account and followed the rest of your directions, the xmlrpc worked fine.

    The other part was

    6) …and go to the groups admin page.

    It is actually the “bbPress Forums” page. Maybe the terms changed at some point.

    As far as cookie integration, this seems to be the definitive resource so far

    http://umwblogs.org/wiki/index.php/Integrating_WPMu,_BuddyPress,_and_bbPress

    But I just can’t seem to make it happen yet.

    Thanks for all the help Trent. I appreciate it.


    Matt Kern
    Participant

    @mattkern

    Well, I hate to resort to a hack, but I did get integration going.

    https://bbpress.org/forums/topic/share-solution-for-bbpress-10-alpha-6-wordpress-mu-27-cookie-integration

    simply defining BB_HASH as an emtpy string.

    I did notice them my cookie names did not seem to follow the naming convention that the Reverend was mentioning on his site.

    Anyway, now I can move on to the fun stuff….


    bobman024
    Participant

    @bobman024

    Ok so…integration for me is working between BBpress Alpha 1.6, Buddypress RC1 and WPMU 2.7. I can seamlessly switch between platforms while logged in. Everything is installed properly…However when I go to activate/enable any forum for a group i get this:

    Are you sure you want to do this?

    Please try again.


    bobman024
    Participant

    @bobman024

    Oh and to update the previous post…I can’t delete groups either. Same error!

    ///****Update*****/////

    Ok so this was fixed by adding in the nonce stuff from RC1. I didnt follow the upgrade instructions properly from beta2 to RC1…

    It should be noted that now I don’t get the error message anymore, but my forums are still not synced up.


    Matt Kern
    Participant

    @mattkern

    Alright, I am on to my next install and having a few different problems.

    “There was an error posting that reply.” is the group error message after posting, BUT the post is still made. Meaning, all my test users can post to the group forum as expected (and no data is lost), but I get the ugly red bar saying it didn’t work out.

    IF I disable buddypress-enable.php in bbpress plugins, then I don’t get the error message – I get the green success message – and everyone can post accurately.

    Thoughts?


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Fix for bb-config.php when using “deep integration”

    How to currently, correctly include WordPress within bbPress and NOT throw a 404 in IE.

    Add to beginning of bb-config.php:

    if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST')) {
    define('WP_USE_THEMES', false);
    include_once( '/absolute/path/to/yourdomain.com/wp-blog-header.php' );
    header("HTTP/1.1 200 OK");
    header("Status: 200 All rosy");
    }

    @Matt, I think that if it’s partially working, than chances are something is amiss somewhere. Are you using deep integration or no?


    Lance Willett
    Participant

    @lancewillett

    Not sure if I’m late to the game on this one, but I followed the instructions in the bp-forums directory (https://trac.buddypress.org/browser/trunk/bp-forums/installation-readme.txt) and the install went easily and quickly using the latest bbPress (checked out via SVN from trunk).

    I was prepared for a fight after reading this thread, but was pleasantly surprised that it worked the first time with no problems. ;)


    Mindtrotter
    Participant

    @mindtrotter

    Wow – I must have been so lucky I did not encountered any problem with my buddypress – bbpress site integration.

    Just followed the instructions. Now just need to make my forum site look like the main site. LOL – I am not a techie guy though.

    Here’s my new site: http://petnetwork.ws / forum at http://petnetwork.ws/forums/


    modemlooper
    Moderator

    @modemlooper

    got bbpress working but their is no option in bpress to use 4) Edit “settings” to enable xmlrpc and pingbacks (both) this just does not exits in bbpress

    this part makes no sense either: groups page just lists all the buddypress groups. I do not understand why or where you would put this url.

    6) Go into your main blog dashboard as the “site-admin” and go to the groups admin page. Put in the URL of your forum like http://yoursite.com/forums/ and make sure you have the ending slash on that one.

    In the MU admin there is no groups forum link. I have the bp-forums folder in mu-plugins.

    The read me file is lacking what and where to put files.

    link to screenshot of bbpress settings page there is no options for xlmrpc

    http://img.skitch.com/20090324-q12i8q4dk997cnfjh2d1sdc2jr.jpg


    Lance Willett
    Participant

    @lancewillett

    @Modemlooper Looks like you are using a non-alpha version of bbPress. The most recent alpha release is required to get this to work as it says on line 13 of the readme file:

    You *must* be running the latest alpha of bbPress and at least WPMU version 2.7 for forum integration to work.

    After you try with the alpha release you should see the XLMRPC options.


    doluongtruong
    Participant

    @doluongtruong

    Dear All

    I set up forum step by step. But it have a problem

    BuddyPress no active, I can create a group but I can post in this page. However, when i join indirect to BBpress forum, I see group which I have created on BuddyPress page.

    Moreover, when i post a new topic in BBpress forum, it have problem, but when i conect again, this topic showed in this forum.

    Problem (Error warning) is

    Warning: Cannot modify header information – headers already sent by (output started at C:\xampplite\htdocs\wpmu\forums\bb-config.php:66) in C:\xampplite\htdocs\wpmu\forums\bb-includes\backpress\class.wp-auth.php on line 235

    Warning: Cannot modify header information – headers already sent by (output started at C:\xampplite\htdocs\wpmu\forums\bb-config.php:66) in C:\xampplite\htdocs\wpmu\forums\bb-includes\backpress\class.wp-auth.php on line 235

    Warning: Cannot modify header information – headers already sent by (output started at C:\xampplite\htdocs\wpmu\forums\bb-config.php:66) in C:\xampplite\htdocs\wpmu\forums\bb-includes\backpress\class.wp-auth.php on line 235

    Warning: Cannot modify header information – headers already sent by (output started at C:\xampplite\htdocs\wpmu\forums\bb-config.php:66) in C:\xampplite\htdocs\wpmu\forums\bb-includes\backpress\class.wp-auth.php on line 235

    Warning: Cannot modify header information – headers already sent by (output started at C:\xampplite\htdocs\wpmu\forums\bb-config.php:66) in C:\xampplite\htdocs\wpmu\forums\bb-includes\backpress\class.wp-auth.php on line 235

    Warning: Cannot modify header information – headers already sent by (output started at C:\xampplite\htdocs\wpmu\forums\bb-config.php:66) in C:\xampplite\htdocs\wpmu\forums\bb-includes\functions.bb-pluggable.php on line 214

    Please help me! Thanks


    doluongtruong
    Participant

    @doluongtruong

    When I set up BBPress (go to step 3) – Finish BBPress. Error show

    Your installation completed with some minor errors. See the error log below for more specific information.

    >>> WordPress “auth” cookie salt not set.

    >>>>>> Could not fetch “auth” cookie salt from the WordPress options table.

    >>>>>> You will need to manually define the “auth” cookie salt in your database.

    >>> WordPress “logged in” cookie salt not set.

    >>>>>> Could not fetch “logged in” cookie salt from the WordPress options table.

    >>>>>> You will need to manually define the “logged in” cookie salt in your database.

    Forum could not be created!

    Please help me


    noelmd
    Participant

    @noelmd

    i seem to get bbpress inetgration going, but when i go to step no.4 “Edit “settings” to enable xmlrpc and pingbacks (both)”, there’s where my problem lies.

    I cannot seem to turn on “Enable XML-RPC”. i ticked the box to enable XML-PRC but after saving the settings, it returns the same, still off. funny thing is, i can edit all everything else in the settings, except turning on Enable XML-RPC.

    is this a file edit or a database edit i can turn on in phpmyadmin?

    i have been wracking my head off troubleshooting this.

    any information anyone?

    thanks in advance!


    mypop
    Participant

    @mypop

    I am using WMPU2.7 Buddypress RC1 and bbPress 1.0-Alpha-6

    Hopefully someone can help me out here, it’s been 10 days, I’ve searched, this forum, the WPMU forum and the bbPress forum, and I feel like I’m going round in circles!

    bbPress and WPMU/ Buddypress work fine as ‘stand alone’ applications, the challenge I am having is integrating bbPress into Buddypress.


    I have gone through the whole of Trent’s great topic (https://buddypress.org/forums/topic.php?id=471) many times now, even removed bbPress and started all again.

    What should on the face of it be a simple process, share users, share cookies, link via xmlrpc, seems incredibly complex, or else it’s the configuration of my hosting company that’s causing it!

    I followed, Sam’s basic integration screencast (https://bbpress.org/forums/topic/basic-integration-screencast ), and all went smoothly, I can now logon and logoff from either WPMU or bbPress. I have also edited wp-config and bb-config as needed to use the same keys and to point to the same locations for the cookies.

    However I can only access the admin/dashboard section in bbPress if I login in through bbPress, if I log in first via WPMU, the ‘admin’ link doesn’t work. I can access the dashboard of WPMU whichever way I log in.

    In Sam’s screencast he talks about bbPress needing extra cookies and using bbpress-integration.1.0-alpha-4.1, I have tried with and without this plugin (which doesn’t appear to work when isntalled in mu-plugins/ ). I have also checked the cookies when logged in via bbPress and only see one extra cookie when actually in the dashboard / backoffice of bbPress.

    Do I need this plugin?

    Is this the way it should work, or should I be able to log in via WPMU and then go to bbPress and have access rights to the bbPress dashboard?


    I have enabled xmlrpc and pingbacks in bbPress.

    I have two key users “admin”, the main one created during wpmu install, which is also keymaster for bbPress and another with keymaster rights to bbPress and administration rights WPMU, it works the same for both.

    Re Trent’s post, I have the plugin in my-plugins/buddypress-enable.php though there is some discussion as to wether it should be in my-plugins or bb-plugins – some guidance here please?

    Also in step 6) where Trent says “Go into your main blog dashboard as the “site-admin” and go to the groups admin page.” I presume that with my configuration it should now read “Site Admin / bbPress forums”, If I click on the groups link, it gives me my list of already established groups to configure / edit. is my presumption correct?

    I have configured the full path (with the “/”) and user details for bbPress in the “bbPress forums” option.


    When I turn on Group Discussion, I don’t get a forum created in bbPress, nor can I post in ‘forum’ in the group in Buddypress, it comes up with “There was an error posting that topic.” not surprising really (no forum)

    If I go to create a new group the box for “Enable discussion forum” is greyed out / missing replaced with a note that says” Attention Site Admin: Group forums require correct setup and configuration of a bbPress installation.”

    Also from bbPress if I try to post I get “Warning: cannot yet handle MBCS in html_entity_decode()! in /home/sites/mydomain.com/public_html/forums/my-plugins/buddypress-enable.php on line 53 which I guess is because it’s not linked back. (I’m running MySQL/5.0.67 PHP/5.2.8 and PHP5/5.2.8)

    Trent also suggested “check your bp_groups_groupmeta table” there was nothing in my data relating to forums.

    I’ve tried it with and without the ” WordPress cookie integration speedup” and ” WordPress database integration speedup” in the bb-config.php file – it made no difference.


    I’ve tried almost all I can think of,

    @Burtadsit would your xmlrpc-test-rig be worth exploring? Do you have a download link for it?

    http://ourcommoninterest.org/downloads/xmlrpc-test-rig.zip” looks like it’s not there at the moment.


    From here: http://umwblogs.org/wiki/index.php/Integrating_WPMu,_BuddyPress,_and_bbPress says:

    You will need to install and activate the following plugins in your WPMu installation:

    * bbPress Integration: “https://wordpress.org/extend/plugins/bbpress-integration/” This is essential, but keep in mind that this plugin is only useful if you are running bbPress version 1.0-alpha-4 or later.

    * WPMU Enable bbPress Capabilities (0.1) “https://bbpress.org/plugins/topic/wpmu-enable-bbpress-capabilities/” : Enables bbPress member capabilities when a user is created within WPMU. This allows immediate login as a ‘member’ after a user is created in WPMU.

    Do I actually need either of these with my confguration?



    @johnjamesjacoby
    said “In theory, to create a post from within the Group forum, you should not need cookie integration, because the XMLRPC request happens very ajax-like behind the scenes and does not require for you as a specific user to be logged into both platforms.”

    So any help would be much appreciated, Thanks.


    doluongtruong
    Participant

    @doluongtruong

    I come back,

    In the before post, my error was fix (localhost). My web is good.

    But, when i upload in hosting, it was error again.

    What\’s happen?


    doluongtruong
    Participant

    @doluongtruong

    I think, there wasnt conected two systems.

    – I created forum, but it’s jont BBPress and comback again

    – I cant post tocpic.

    Demo: http://hoitublog.com

    (Vietnam)


    doluongtruong
    Participant

    @doluongtruong

    DB Error in BB_Install::process_form_finalise_installation: Table ‘ongdia_vn.htb_options’ doesn’t exist

    SELECT option_value FROM htb_options WHERE option_name = ‘auth_salt’ LIMIT 1

    DB Error in BB_Install::process_form_finalise_installation: Table ‘ongdia_vn.htb_options’ doesn’t exist

    SELECT option_value FROM htb_options WHERE option_name = ‘secure_auth_salt’ LIMIT 1

    DB Error in BB_Install::process_form_finalise_installation: Table ‘ongdia_vn.htb_options’ doesn’t exist

    SELECT option_value FROM htb_options WHERE option_name = ‘logged_in_salt’ LIMIT 1

    Warning: Cannot modify header information – headers already sent by (output started at /home/ongdia/public_html/forums/bb-includes/backpress/class.bpdb.php:293) in /home/ongdia/public_html/forums/bb-includes/functions.bb-core.php on line 838


    doluongtruong
    Participant

    @doluongtruong

    I find key! Woh, happy.

    When you meet this case. You remember that you active user “admin” in BuddyPress to admin BBPress (3 admin at less)

    Thanks


    Trent Adams
    Participant

    @trent

    I updated the first post for a couple of things today, nothing major just changed a few “confusion” spots and terminology is all. Remember guys, if you have specific problems it is easier to start a new thread than post replies onto this one as it gets cluttered so darn easy.

    Trent


    mypop
    Participant

    @mypop

    @Trent, greatly appreciate the update.

    I’ll go through your updated post and If I still have problems I’ll start a new thread.

    Gordon


    Deli Yaban
    Participant

    @leventyilmaz

    great information..thanks very much..

Viewing 25 replies - 76 through 100 (of 171 total)
  • The topic ‘Forum Integration: HELPING HINTS’ is closed to new replies.
Skip to toolbar