Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Integrating buddypress in my theme

The site is not launched yet so it’s not open to the public. I’m developing this on a contract for a client with an NDA and stuff. I can however post some code snippets. If you need more access, please send me a pm.

The guide after installing the BP plugin instructs us to add the theme divs to some index.php and other files in the BP template files added to the theme.
The top of f.ex. the index.php in activity looks like this:
(I have changed the angular code paranthesis at the beginning and end of each line to be able to post this here)

(?php get_header() ?)
(div id=”container”)
(div id=”content”)
(?php if ( !is_user_logged_in() ) : ?)

— and so on.

The theme page.php starts like this:
(?php get_header(); ?)
(div class=”left-navi-blog”)
(?php include “left-sidebar.php”;?)
(/div)
(div class=”center-blog”)
(?php if (have_posts()) : while (have_posts()) : the_post(); ?)

— and so on.

The instructions say to add the divs from the page.php to the activity index.php like this:
(?php get_header(); ?)
(div class=”left-navi-blog”)
(?php include “left-sidebar.php”;?)
(/div)
(div class=”center-blog”)
(div id=”container”)
(div id=”content”)
(?php if ( !is_user_logged_in() ) : ?)

— and the rest of the code lines follows.

The problem is that the left sidebar is nowhere to be seen, and I get all those meta links and blogroll and other links below the activity section of the page displayed when I click Activity in the BP adminbar.

Just can’t figure out why this is when I’m following the instructions.

Skip to toolbar