Skip to:
Content
Pages
Categories
Search
Top
Bottom

WPMU integration

  • Almost finished!

    http://forums.cariblogger.com

    I think everything works right with the integration. Was too scared to load the whole wpmu into bbpress so I modified a theme to look like my MU home theme.

    One thing I have to figure out is how to get that blog and post counter I use on MU to show in bbpress. Is there any other way other than loading mu into the config file?

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

  • chrishajer
    Participant

    @chrishajer

    What is a “blog and post counter”?

    If it’s a plugin, it might be easier to just adapt it to bbPress rather than load WPMU into the bbPress config, if that’s the only function you need.

    I count the number of blogs and the number of the posts using two queries. All posts from all the other blogs are copied to blog_id 1. So i do like so

    $count_posts = wp_count_posts();
    echo $count_posts->publish;

    and

    $stats = get_sitestats();
    $tmp_blog_count = number_format ($stats[ 'blogs' ] );
    print "".$tmp_blog_count." blogs";

    Can bbpress grab those ?

    klarko, may i ask you a question

    for the wpmu, did you just use the default integration provided by the bbpress installation?

    and for the wordpress url and blog url, what do you write?

    i mean, if i have a couple blogs already,which one should i use?

    will i miss any user if i choose one not the other 3 blogs?

    Use the address of blogid 1 (the main blog).

    hey klarko, thanks a lot

    just another quick question

    everything went fine, i did everything in the admin panel

    now, when i tested registration in bbpress, it worked, but i tried to login from wordpress, doesn’t work

    i mean i created a new user name abc from bbpress

    it worked in bbpress,. but i can’t login in from wordpress mu

    is that the case? or something went wrong?

    let me clean up what i said above

    i just did another test

    it happened that, if you created abc123 from bbpress

    you can’t login wordpress (it will turned to cookie error, i am using firefox)

    you will have to first use admin account, and then go to site-admin -> users, and make abc123 from No role to one of the role, let’s say editor.

    now, you can login

    and also, i can’t login at the same time

    i can’t login abc123 in wordpress but bbpress is still not login yet.

    why

    I disabled registration in bbpress. All users are created when they signup for a blog.

    And to fix the other issue with member roles not being set: Drop this in the mu-plugins folder with a .php extension.

    function wpmu_bbpress_roles( $user_id )  {
    update_usermeta($user_id, 'bb_capabilities', array('member' => true));
    return;
    }
    add_action('wpmu_new_user', 'wpmu_bbpress_roles');

    Drop this in the mu-plugins folder with a .php extension.

    i created a file called role.php

    but how does the php file works?

    thanks a lot

    It takes care of the problem of bbpress users from MU being set as Inactive. It’ll make them a member instead.

    oh i got it

    thanks, just modified other things as well

    :] great help

    Did you integrate bbpress 1.0 svn and wpmu 2.7 svn? That’s what I’m trying to do. I’ve got them both sharing users, but the cookies are not being shared. I’d appreciate any advice.

    Thanks

    I’ve been tryin them out on my test site, but I get the same cookie problems. Just wait it out until they’re final. mu2.7 is kinda buggy right now.

    Glad someone else is having the same problem :-) I’ve managed to make things even more complicated now as I’ve integrated LDAP authentication with WPMU 2.7 but bbpress doesn’t seem to be able authenticate users that are created in WPMU from LDAP.

    Ah, well. Enough for one day.


    jwxie
    Member

    @jwxie

    i actually solved my cookies problem by reading this

    http://bavatuesdays.com/wpmu-bbpress-integration/

    this is the best one you can get guys

    i am very fine with everything

    i am still wondering how to integrate wpmu theme with bbpress


    jwxie
    Member

    @jwxie

    i actually solved my cookies problem by reading this

    [edited] the link is incorrect

    this is the one

    http://jimgroom.org/bavawiki/index.php?title=Integrating_WPMu%2C_BuddyPress%2C_and_bbPress&redirect=no

    [edited]

    this is the best one you can get guys

    i am very fine with everything

    i am still wondering how to integrate wpmu theme with bbpress


    ovizii
    Participant

    @ovizii

    tha code snippet by clarko seems to do the trick even with bbpress 1.0.1 and wpmu 2.8.4

Viewing 16 replies - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.
Skip to toolbar