Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress on all but Root Blog


  • Scotm
    Participant

    @scotm

    Hi

    So I have WPMU 2.8.5.2 and BuddyPress 1.12 installed and am wanting to do the following:

    – WP theme on root blog with BP NOT installed.

    – BP theme on ‘community.url.com’ as ‘community’ area for new members who own blogs (with BP installed obviously).

    How do I enable this because at the moment the links won’t find the BP pages off the root blog. I thought I saw a post somewhere that suggests adding a line to the wp-config file to enable this but I can’t seem to find it now.

    Also, does someone have a link to a clear how-to on Buddifying a WP theme with the latest version of BuddyPress. I’ll deal with that one I have the root blog setup figured out. :)

    Great work by all on the BuddyPress project!

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

  • Andy Peatling
    Keymaster

    @apeatling

    In your wp-config.php add:

    define( 'BP_ROOT_BLOG', [blog id of community blog] );

    Then enable a BuddyPress theme on the community blog.


    Scotm
    Participant

    @scotm

    Andy

    Thanks!


    Scotm
    Participant

    @scotm

    Andy

    define( ‘BP_ROOT_BLOG’, [2] ); in my wp-config file gets me the white screen of death.

    Thoughts?


    Andy Peatling
    Keymaster

    @apeatling

    No square brackets around the ID.


    Scotm
    Participant

    @scotm

    Gotcha. So does this eliminate the need for the BuddyPress plugin to be activated on a per blog basis (community versus root or across all blogs)?

    The code took fine, but the links are still looking for (rooturl/members/admin/profile) versus (community.rooturl/members/admin/profile).

    What am I missing?


    Andy Peatling
    Keymaster

    @apeatling

    Blog ID 2 has a URL of community.domain.org?


    Scotm
    Participant

    @scotm

    Yes


    Andy Peatling
    Keymaster

    @apeatling

    In your root blog template, open up header.php and add this to the bottom:

    <?php global $bp; var_dump( $bp->root_domain ); ?>

    then paste here what is output when you refresh your home page.


    Tore
    Participant

    @toregus

    @ Andy:

    I’ve tried to do just this before but then the BP-forums (www.website.com/forums) wouldn’t display correctly. It seemed like the primary blog had to have a theme from which it could get the forum theming.


    Scotm
    Participant

    @scotm

    string(21) “http://myurl.com&#8221;


    elemsee
    Participant

    @elemsee

    I’m keeping my eye on this, as I’m having a similar problem. We’re using BP as a member directory/community for our website. Now with http://mydomain.com/members gone, I attempted to activate BP on a user blog — as example, http://someblog.mydomain.com.

    Buddy bar links look for the syntax http://mydomain.com/members/admin etc., which do not exist.

    Items on the BP-activated blog are looking for links such as http://someblog.mydomain.com/blog etc., which also does not exist.


    Scotm
    Participant

    @scotm

    Andy et al

    It appears this issue has been resolved here: https://buddypress.org/forums/topic/can-i-run-non-bp-theme-on-tld-and-bp-theme-on-subdomain-all-on-same-wpmu-install

    The code must be dropped at or near the top of your wp-config file.

    Thx


    Tore
    Participant

    @toregus

    Thanks a lot Scotm! I had problems with having this work but now it does! :D


    Andy Peatling
    Keymaster

    @apeatling

    Is anyone interested in writing a how-to post for the main BuddyPress.org blog on this subject? It would be nice to hear it from someone who has discovered this setting.


    @mercime
    Participant

    @mercime

    The code must be dropped at or near the top of your wp-config file.

    Yes! That worked. Thank you Scotm.

    I had searched the forum re how to defining which blog ID BP was going to run in, couldn’t find it so I posted question in https://buddypress.org/forums/topic/run-buddypress-from-sub-blog-or-blog-id-2

    KeyMaster or Moderator – please change the topic Run-buddypress-from …. to “resolved” or delete it entirely. I had started that thread using dropdown “not resolved” and after posting, I couldn’t add tags. Nor, after finding the solution in this thread, could I change the status to “solved” or post and refer solution to this thread.

    Thank you.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Buddypress on all but Root Blog’ is closed to new replies.
Skip to toolbar