template compatibility
-
After installing BP 1.2.1 on my WP site running 2.85 I installed the BP compatibility plug-in to integrate BP into my site’s existing template.
The issue I am having is tthat the pages aren’t formatting correctly. Basically if you look at my site, http://www.subculturecollective.com , all the text appears in containers whereas the content for BP appears on the black background only. This causes my sidebar to be pushed down everytime there is an activity added. Where do I go about adding the correct code to remedy this ? Do i need to add it to the various loop.php funtions ? I believe I added it correctly to index.php correctly, but nothing happened.
Thanks in advance
-
FYI, you should be using WP 2.9+ for BP 1.2.1.
I was going to upgrade but I was afraid that it would mess up my podpress plug-in. Is there any imparticular reason I need to upgrade? Would that help in the formatting?
I’ve also noticed that when I try to log in to my dashboard it takes me straight to the site. I then need to click edit on one of my posts to get into the dashboard. Has anyone seen this before ?
Just read the instructions, specifically step three regarding formatting.
I’ve read the instructions and done what step three has told me yet nothing works. I’ve copied and pasted until my lil fingers bled.
Here is my page.php file ;
<?php get_header(); ?>
<div id=”content”>
<div id=”contentleft”>
<div class=”postarea”>
<?php include(TEMPLATEPATH . ‘/includes/breadcrumb.php’);?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(__(‘Read more’, ‘studiopress’));?>
<div class=”clear”></div>
<?php edit_post_link(‘(‘.__(‘Edit’, ‘studiopress’).’)’, ”, ”); ?>
<?php endwhile; else: ?>
<?php require(TEMPLATEPATH . ‘/includes/post-nav-block.php’); ?>
<?php endif; ?>
</div>
</div>
<?php include(TEMPLATEPATH.”/sidebar.php”);?>
</div>
<?php get_footer(); ?>
and here is the activity index.php;
<?php get_header() ?>
<div id=”container”>
<div id=”content”>
<?php if ( !is_user_logged_in() ) : ?>
<h3><?php _e( ‘Site Activity’, ‘buddypress’ ) ?></h3>
<?php endif; ?>
<?php do_action( ‘bp_before_directory_activity_content’ ) ?>
<?php if ( is_user_logged_in() ) : ?>
<?php locate_template( array( ‘activity/post-form.php’), true ) ?>
<?php endif; ?>
<?php do_action( ‘template_notices’ ) ?>
<div class=”item-list-tabs activity-type-tabs”>
-
<?php do_action( ‘bp_before_activity_type_tab_all’ ) ?>
<li class=”selected” id=”activity-all”>” title=”<?php _e( ‘The public activity for everyone on this site.’, ‘buddypress’ ) ?>”><?php printf( __( ‘All Members (%s)’, ‘buddypress’ ), bp_get_total_site_member_count() ) ?>
<?php if ( is_user_logged_in() ) : ?>
<?php do_action( ‘bp_before_activity_type_tab_friends’ ) ?>
<?php if ( function_exists( ‘bp_get_total_friend_count’ ) ) : ?>
<?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
<li id=”activity-friends”>” title=”<?php _e( ‘The activity of my friends only.’, ‘buddypress’ ) ?>”><?php printf( __( ‘My Friends (%s)’, ‘buddypress’ ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?>
<?php endif; ?>
<?php endif; ?>
<?php do_action( ‘bp_before_activity_type_tab_groups’ ) ?>
<?php if ( function_exists( ‘bp_get_total_group_count_for_user’ ) ) : ?>
<?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
<li id=”activity-groups”>” title=”<?php _e( ‘The activity of groups I am a member of.’, ‘buddypress’ ) ?>”><?php printf( __( ‘My Groups (%s)’, ‘buddypress’ ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?>
<?php endif; ?>
<?php endif; ?>
<?php do_action( ‘bp_before_activity_type_tab_favorites’ ) ?>
<?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
<li id=”activity-favorites”>” title=”<?php _e( “The activity I’ve marked as a favorite.”, ‘buddypress’ ) ?>”><?php printf( __( ‘My Favorites (<span>%s</span>)’, ‘buddypress’ ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?>
<?php endif; ?>
<?php do_action( ‘bp_before_activity_type_tab_mentions’ ) ?>
<?php endif; ?>
<?php do_action( ‘bp_activity_type_tabs’ ) ?>
</div><!– .item-list-tabs –>
<div class=”item-list-tabs no-ajax” id=”subnav”>
-
<li class=”feed”>” title=”RSS Feed”><?php _e( ‘RSS’, ‘buddypress’ ) ?>
<?php do_action( ‘bp_activity_syndication_options’ ) ?>
<li id=”activity-filter-select” class=”last”>
<select>
<option value=”-1″><?php _e( ‘No Filter’, ‘buddypress’ ) ?></option>
<option value=”activity_update”><?php _e( ‘Show Updates’, ‘buddypress’ ) ?></option>
<option value=”new_blog_post”><?php _e( ‘Show Blog Posts’, ‘buddypress’ ) ?></option>
<option value=”new_blog_comment”><?php _e( ‘Show Blog Comments’, ‘buddypress’ ) ?></option>
<?php if ( bp_is_active( ‘forums’ ) ) : ?>
<option value=”new_forum_topic”><?php _e( ‘Show New Forum Topics’, ‘buddypress’ ) ?></option>
<option value=”new_forum_post”><?php _e( ‘Show Forum Replies’, ‘buddypress’ ) ?></option>
<?php endif; ?>
<?php if ( bp_is_active( ‘groups’ ) ) : ?>
<option value=”created_group”><?php _e( ‘Show New Groups’, ‘buddypress’ ) ?></option>
<option value=”joined_group”><?php _e( ‘Show New Group Memberships’, ‘buddypress’ ) ?></option>
<?php endif; ?>
<?php if ( bp_is_active( ‘friends’ ) ) : ?>
<option value=”friendship_accepted,friendship_created”><?php _e( ‘Show Friendship Connections’, ‘buddypress’ ) ?></option>
<?php endif; ?>
<option value=”new_member”><?php _e( ‘Show New Members’, ‘buddypress’ ) ?></option>
<?php do_action( ‘bp_activity_filter_options’ ) ?>
</select>
</div><!– .item-list-tabs –>
<div class=”activity”>
<?php locate_template( array( ‘activity/activity-loop.php’ ), true ) ?>
</div><!– .activity –>
<?php do_action( ‘bp_after_directory_activity_content’ ) ?>
</div><!– #content –>
</div><!– #container –>
<?php locate_template( array( ‘sidebar.php’ ), true ) ?>
<?php get_footer() ?>
To the best of my knowledge I have tried every possible placement I could think of but nothing is working. Am I missing something ?
I’ve read the instructions and done what step three has told me yet nothing works. I’ve copied and pasted until my lil fingers bled.
Here is my page.php file ;
<?php get_header(); ?>
<div id=”content”>
<div id=”contentleft”>
<div class=”postarea”>
<?php include(TEMPLATEPATH . ‘/includes/breadcrumb.php’);?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(__(‘Read more’, ‘studiopress’));?>
<div class=”clear”></div>
<?php edit_post_link(‘(‘.__(‘Edit’, ‘studiopress’).’)’, ”, ”); ?>
<?php endwhile; else: ?>
<?php require(TEMPLATEPATH . ‘/includes/post-nav-block.php’); ?>
<?php endif; ?>
</div>
</div>
<?php include(TEMPLATEPATH.”/sidebar.php”);?>
</div>
<?php get_footer(); ?>
and here is the activity index.php;
<?php get_header() ?>
<div id=”container”>
<div id=”content”>
<?php if ( !is_user_logged_in() ) : ?>
<h3><?php _e( ‘Site Activity’, ‘buddypress’ ) ?></h3>
<?php endif; ?>
<?php do_action( ‘bp_before_directory_activity_content’ ) ?>
<?php if ( is_user_logged_in() ) : ?>
<?php locate_template( array( ‘activity/post-form.php’), true ) ?>
<?php endif; ?>
<?php do_action( ‘template_notices’ ) ?>
<div class=”item-list-tabs activity-type-tabs”>
-
<?php do_action( ‘bp_before_activity_type_tab_all’ ) ?>
<li class=”selected” id=”activity-all”>” title=”<?php _e( ‘The public activity for everyone on this site.’, ‘buddypress’ ) ?>”><?php printf( __( ‘All Members (%s)’, ‘buddypress’ ), bp_get_total_site_member_count() ) ?>
<?php if ( is_user_logged_in() ) : ?>
<?php do_action( ‘bp_before_activity_type_tab_friends’ ) ?>
<?php if ( function_exists( ‘bp_get_total_friend_count’ ) ) : ?>
<?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
<li id=”activity-friends”>” title=”<?php _e( ‘The activity of my friends only.’, ‘buddypress’ ) ?>”><?php printf( __( ‘My Friends (%s)’, ‘buddypress’ ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?>
<?php endif; ?>
<?php endif; ?>
<?php do_action( ‘bp_before_activity_type_tab_groups’ ) ?>
<?php if ( function_exists( ‘bp_get_total_group_count_for_user’ ) ) : ?>
<?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
<li id=”activity-groups”>” title=”<?php _e( ‘The activity of groups I am a member of.’, ‘buddypress’ ) ?>”><?php printf( __( ‘My Groups (%s)’, ‘buddypress’ ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?>
<?php endif; ?>
<?php endif; ?>
<?php do_action( ‘bp_before_activity_type_tab_favorites’ ) ?>
<?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
<li id=”activity-favorites”>” title=”<?php _e( “The activity I’ve marked as a favorite.”, ‘buddypress’ ) ?>”><?php printf( __( ‘My Favorites (<span>%s</span>)’, ‘buddypress’ ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?>
<?php endif; ?>
<?php do_action( ‘bp_before_activity_type_tab_mentions’ ) ?>
<?php endif; ?>
<?php do_action( ‘bp_activity_type_tabs’ ) ?>
</div><!– .item-list-tabs –>
<div class=”item-list-tabs no-ajax” id=”subnav”>
-
<li class=”feed”>” title=”RSS Feed”><?php _e( ‘RSS’, ‘buddypress’ ) ?>
<?php do_action( ‘bp_activity_syndication_options’ ) ?>
<li id=”activity-filter-select” class=”last”>
<select>
<option value=”-1″><?php _e( ‘No Filter’, ‘buddypress’ ) ?></option>
<option value=”activity_update”><?php _e( ‘Show Updates’, ‘buddypress’ ) ?></option>
<option value=”new_blog_post”><?php _e( ‘Show Blog Posts’, ‘buddypress’ ) ?></option>
<option value=”new_blog_comment”><?php _e( ‘Show Blog Comments’, ‘buddypress’ ) ?></option>
<?php if ( bp_is_active( ‘forums’ ) ) : ?>
<option value=”new_forum_topic”><?php _e( ‘Show New Forum Topics’, ‘buddypress’ ) ?></option>
<option value=”new_forum_post”><?php _e( ‘Show Forum Replies’, ‘buddypress’ ) ?></option>
<?php endif; ?>
<?php if ( bp_is_active( ‘groups’ ) ) : ?>
<option value=”created_group”><?php _e( ‘Show New Groups’, ‘buddypress’ ) ?></option>
<option value=”joined_group”><?php _e( ‘Show New Group Memberships’, ‘buddypress’ ) ?></option>
<?php endif; ?>
<?php if ( bp_is_active( ‘friends’ ) ) : ?>
<option value=”friendship_accepted,friendship_created”><?php _e( ‘Show Friendship Connections’, ‘buddypress’ ) ?></option>
<?php endif; ?>
<option value=”new_member”><?php _e( ‘Show New Members’, ‘buddypress’ ) ?></option>
<?php do_action( ‘bp_activity_filter_options’ ) ?>
</select>
</div><!– .item-list-tabs –>
<div class=”activity”>
<?php locate_template( array( ‘activity/activity-loop.php’ ), true ) ?>
</div><!– .activity –>
<?php do_action( ‘bp_after_directory_activity_content’ ) ?>
</div><!– #content –>
</div><!– #container –>
<?php locate_template( array( ‘sidebar.php’ ), true ) ?>
<?php get_footer() ?>
To the best of my knowledge I have tried every possible placement I could think of but nothing is working. Am I missing something ?
At the top of your page.php file ;
<?php get_header(); ?>
<div id="content">
<div id="contentleft">
<div class="postarea">And at the top of the BP page:
<?php get_header() ?>
<div id="container">
<div id="content">See the difference? Now make the BP templates have the same divs as your page.php.
I did that already and I just tried it again to make sure I had done it right. Still is not formatting.
did you make sure you had the matching amount of closing divs?
Do you have a link to code where I can see (don’t paste it in the forum please, it’s too hard to read)
And to reiterate – don’t change your page.php template. Change the BP ones.
I did not alter the page.php file in any way. Just used it as a reference point. As for the closing div tags, I added the same amount that were at the bottom of the page.php file. When that did work I tinkered with removing one, adding one, moving them around. Still nothing.
As far as a link to the code goes, do you mean a page source link ?
Thanks
Is it possible BP just won’t format with some templates? I’ve been at this for 2 hours now adding, subtracting divs and this and that and nothing works. I am stupified.
Some themes are harder than others. If you don’t have a good understanding of html/css, then it can be difficult.
Aha! I see you’re using a studiopress theme. Yeah, I’ve done them before. You’ve got the /members/ page looking right, you need to do the profile templates as well.
Or wait until Brian makes a magazine chidl theme for Genesis. Then we’ll have the BP addon for that available.
- The topic ‘template compatibility’ is closed to new replies.