'left-column', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebars( 1, array( 'name' => 'center-column', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebars( 1, array( 'name' => 'right-column', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebars( 1, array( 'name' => 'blog-sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); /* Catch specific URLs */ function bp_show_home_blog() { global $bp, $query_string; if ( $bp->current_component == BP_HOME_BLOG_SLUG ) { $pos = strpos( $query_string, 'pagename=' . BP_HOME_BLOG_SLUG ); if ( $pos !== false ) $query_string = preg_replace( '/pagename=' . BP_HOME_BLOG_SLUG . '/', '', $query_string ); query_posts($query_string); if ( is_single() ) bp_core_load_template( 'single', true ); else if ( is_category() || is_search() || is_day() || is_month() || is_year() ) bp_core_load_template( 'archive', true ); else bp_core_load_template( 'index', true ); } } add_action( 'wp', 'bp_show_home_blog', 2 ); function bp_show_register_page() { global $bp, $current_blog; require_once ( BP_PLUGIN_DIR . '/bp-core/bp-core-signup.php' ); if ( $bp->current_component == BP_REGISTER_SLUG && $bp->current_action == '' ) { bp_core_signup_set_headers(); bp_core_load_template( 'register', true ); } } add_action( 'wp', 'bp_show_register_page', 2 ); function bp_show_activation_page() { global $bp, $current_blog; require_once ( BP_PLUGIN_DIR . '/bp-core/bp-core-activation.php' ); if ( $bp->current_component == BP_ACTIVATION_SLUG && $bp->current_action == '' ) { bp_core_activation_set_headers(); bp_core_load_template( 'activate', true ); } } add_action( 'wp', 'bp_show_activation_page', 2 ); ?>