Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Solved] How to edit bbPress template files – WordPress + BuddyPress + bbPress?


  • fuzzybee
    Participant

    @fuzzybee

    I am using BuddyPress 1.6.1, bbPress 2.1.2 and WordPress 3.4.2

    I follow the guide here.

    In the end, I did the trick pointed out by Sarah Gooding because mywebsite.com/forums was blank right after the above installation

    • Created a page called “Forums” with permalink mywebsite.com/forums
    • Insert bbPress shortcode [bbp-forum-index] into “Forums” page

    My questions are

    1) How do I customise page templates for the forum e.g. Forum page, topic page etc.

    My current theme is a child theme of twentyeleven and it has the following structure

    > themes/bp-twentyeleven/

    >

    > /activity/

    >

    > /blogs/

    >

    > /forums/

    >

    > index.php

    >

    > forums-loop.php

    >

    > /groups/

    >

    > /members/

    >

    > /registration/

    >

    > header.php

    >

    > sidebar.php

    >

    > style.css

    Notes

    • Apparently, bp-twentyevelen/forums/index.php is being ignored.
    • The reason for this set up is that I need the site to looks like TwentyEleven and has BuddyPress’ functionality at the same time

    2) How do I make sure that bbPress functions will work for my site e.g. do I copy and past all the functions in functions.php of bbPress’ default theme over my theme’s functions.php?

    3) How do I ensure that whatever I will get from 1) and 2) (probably from bbPress experts somewhere) will not conflict with BuddyPress’ functionality or my theme?

    BuddyPress setting screenshots are here and here.

    bbPress settings screenshot is here.

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

  • fuzzybee
    Participant

    @fuzzybee

    It has been a week now.
    Does anyone have any ideas how I can achieve this?


    zaerl
    Participant

    @zaerl

    1) Create a bbpress.php file in the root directory of your theme (or archive-forum.php).

    2) bbPress is a plugin and so every single function that are include()d are automatically available on the global scope. Take a look at the bbpress() function.

    3) By testing. bbPress isn’t obtrusive and at 99% it will not raise problems.


    fuzzybee
    Participant

    @fuzzybee

    Hi Zaerl,

    Thanks so much.
    I have found the answer for myself actally.

    Yes, I love the fact that bbPress is not obtrusive!
    It almost doesn’t matter at all how I am trying integrate BuddyPress here.

    So this narrow downs to customise bbPress template when installed as a plugin to WordPress.
    The answer is here: http://codex.bbpress.org/legacy/step-by-step-guide-to-creating-a-custom-bbpress-theme/ :)

    It appears strange to me though.
    Why does this guide belong “legacy” documetation?

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

You must be logged in to reply to this topic.