Skip to:
Content
Pages
Categories
Search
Top
Bottom

Install/run BuddyPress in Subdirectory


  • Stupidism
    Participant

    @stupidism

    My website is to have a front, portal page showing a welcome message and some news, then have the community section in another folder. That means I want BuddyPress to be running in a seperate subdirectory (/community) with bbpress running in that community folder in another subdirect (/community/forums)

    Is it possible to “install” or run BuddyPress in a subdirectory with bbpress running that folder?

    If not is there another solution?

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

  • John James Jacoby
    Keymaster

    @johnjamesjacoby

    I’ve used this website before as an example and I hope he doesn’t mind, but check out leadpress.com as an example.

    You’re not running BuddyPress in a sub directory, but actually just stopping it from taking over the root and /blog URLs, and instead using the normal WordPress way of assigning pages.

    Rename home.php to community.php.

    Use the Page Template method to name that page template “Community.”

    In the blog admin, Make a page for your home, a page for your blog, and a page for your community, all with similar slugs.

    The community page will use the “Community” page template.

    Goto your blog settings and assign the front page to be the page you made for home, and make the index/blog page the one you made for your blog.

    Then, you will want to install bbPress in a folder called “/community/forums/” and be sure to create a page with the slug “forums” as a sub page of “community”

    That should do it?


    Stupidism
    Participant

    @stupidism

    Thank you for a quick reply.

    I don’t really understand this part:

    Goto your blog settings and assign the front page to be the page you made for home, and make the index/blog page the one you made for your blog.


    r-a-y
    Keymaster

    @r-a-y

    Goto your blog settings and assign the front page to be the page you made for home, and make the index/blog page the one you made for your blog.

    In your WPMU admin area, go to “Settings > Reading”.

    Select “A static page”

    Then for the “Front page” that you created, select “Home”.

    For your “Posts page” that you created, select “Blog”.


    Stupidism
    Participant

    @stupidism

    Well all the pages work, its just that how would I setup my links?

    Do I just put in the hard links like domain.tld/community?

    Because right now when I click Visit Site it goes to the Home page but the members link lights up.


    r-a-y
    Keymaster

    @r-a-y

    Not sure why the Members link is lighting up… that should only light up when you go to domain.tld/members/.

    I’m guessing you’re using the BuddyPress home theme.

    Do you have a customized BP_MEMBERS_SLUG, per chance?


    Stupidism
    Participant

    @stupidism

    I looked it up in bp-core.php (is that the actual location?) and it says:

    define( 'BP_MEMBERS_SLUG', 'members' );


    r-a-y
    Keymaster

    @r-a-y

    I’m guessing from that statement that you don’t.

    You’d probably want to make some changes in your theme’s header.php.

    If you’re using the BuddyPress home theme, that file can be found here:

    /wp-content/themes/bphome/header.php

    The part you want to look for is:

    <ul id="nav">

    John could probably help you better.


    Stupidism
    Participant

    @stupidism

    Yeah I am using the BuddyPress Home Theme, should I just change each link to /community/members, /community/blogs, etc. ?

    Would that work with what I have setup (the three seperate pages)?


    r-a-y
    Keymaster

    @r-a-y

    That is what I would do.

    But keep in mind, you’d also have to make the same changes to your BP member theme.

    If you’re using the default BP member theme, that would be located here:

    /wp-content/bp-themes/bpmember/header.php


    Stupidism
    Participant

    @stupidism

    So I set the Members link to

    domain.tld/community/members/

    But when I click it, it redirects to domain.tld/members/admin

    The groups and blogs link work but don’t light which isn’t that bad.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    If you want all of the directories to be underneath the community page, I would do exactly the same thing you just did to make the community page, and make members/groups/blogs directory pages. I’m not sure there’s a way to contain ALL of BuddyPress within a subdirectory, considering that your users and groups and blogs are all linked off of the root of the site, and not the root of a specific blog, subdomain, or subdirectory.


    Stupidism
    Participant

    @stupidism

    I still don’t get why when I go to domain.tld/home the members link lights up (in the BuddyPress Home Theme). And how do I make the community WordPress Page appear instead of a page listing the folders inside the community folder (forums).


    Stupidism
    Participant

    @stupidism

    Actually nevermind the community part, I ‘ll just structure the site like leadpress.com (not all under community)

    Thank you for the help Ray and John.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Install/run BuddyPress in Subdirectory’ is closed to new replies.
Skip to toolbar