Tags

STEP 3 of the BuddyPress Template Pack plugin compatibility process.

If you’ve previously changed any of the BP template files in your theme folder, replace all of them for a clean slate by deleting the 6 BP folders in server – /activity, /blogs, /forums, /groups, /members, and /registration – then re-run Appearance > BP Compatibility.

Download the 6 clean BP folders to your computer hard drive.

A. At the top of each of those 17 template files I linked to above, replace

<?php get_header( 'buddypress' ); ?>
<?php do_action( '//DIFFERENT HOOKS' ); ?>
<div id="content">
<div class="padder">

with

<?php get_header(); ?>
<?php
global $wp_query;
$postid = $wp_query->post->ID;
if ( get_post_meta( $postid, 'post_featcontent', true ) == "Full Width Featured Content Slider"  ) { ?>
<?php include (TEMPLATEPATH . '/featured-wide.php'); ?>
<?php } ?>
<div id="page" class="clearfix">
<div id="contentleft">
<?php if ( get_post_meta( $postid, 'post_featcontent', true ) == "Narrow Width Featured Content Slider" ) { ?>
<?php include (TEMPLATEPATH . '/featured-narrow.php'); ?>
<?php } ?>
<?php if ( get_post_meta( $postid, 'post_featvideo', true ) == "Yes" ) { ?>
<?php include (TEMPLATEPATH . '/featured-vids.php'); ?>
<?php } ?>
<?php if ( get_post_meta( $postid, 'post_featgalleries', true ) == "Yes" ) { ?>
<?php include (TEMPLATEPATH . '/featured-galleries.php'); ?>
<?php } ?>
<div id="content" class="maincontent">
<div id="fb-root"></div>
<div class="singlepage">
<div class="post clearfix" id="post-main-<?php the_ID(); ?>">
<div class="entry">

In each of 17 files, you might want to change the BP Templates’ page title’s header tag where applicable, from

<h2>...</h2> or <h3>..</h3>

to

<h1 class="page-title"> //RESPECTIVE BP PAGE TITLES // </h1>

Save files.

B. At the bottom of the same 17 files, replace:

</div><!-- .padder -->
</div><!-- #content -->
<?php do_action( '//DIFFERENT HOOKS' ); ?>
<?php get_sidebar( 'buddypress' ); ?>
<?php get_footer( 'buddypress' ); ?>

with the following (except for registration/register.php):

</div></div></div></div>
<?php include (TEMPLATEPATH . '/sidebar-narrow.php'); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

with the following for registration/register.php:

</div></div></div></div>
<?php include (TEMPLATEPATH . '/sidebar-narrow.php'); ?>
<script type="text/javascript">
jQuery(document).ready( function() {
if ( jQuery('div#blog-details').length && !jQuery('div#blog-details').hasClass('show') )
jQuery('div#blog-details').toggle();
jQuery( 'input#signup_with_blog' ).click( function() {
jQuery('div#blog-details').fadeOut().toggle();
});
});
</script>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Save files.

C. Upload the 6 BP folders containing the 17 files you revised up to your server wp-content/themes/wp-davinci-prem/

D. Copy the style modifications made in BP Twenty Ten to bottom of your theme’s stylesheet http://codex.buddypress.org/legacy/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/ Adjust to taste.

About these ads