Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbPress theme for Buddy

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of Plrk
    plrk
    Participant

    @plrk

    I can’t get this to work at all. They’re supposed to be installed in /bb-templates/, right?

    I get errors like:

    Fatal error: Call to undefined function bp_page_title() in /example.org/forum/bb-templates/kakumei/header.php on line 4

    Try deleting or renaming functions.php in kakumei folder.

    This is my header.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml"<?php bb_language_attributes( '1.1' ); ?>>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title><?php bb_title() ?></title>

    <?php bb_feed_head(); ?>

    <link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />

    <?php if ( 'rtl' == bb_get_option( 'text_direction' ) ) : ?>

    <link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />

    <?php endif; ?>

    <?php bb_head(); ?>

    <?php

    add_action( 'wp_footer', 'bp_core_admin_bar', 8 );

    add_action( 'admin_footer', 'bp_core_admin_bar' );

    add_action( 'wp_head', 'bp_core_admin_bar_css', 1 );

    ?>

    <!--[if IE 6]>

    <link rel="stylesheet" href="<?php echo bloginfo('template_url') . '/css/ie/ie6.css' ?>" type="text/css" media="screen" />

    <![endif]-->

    <!--[if IE 7]>

    <link rel="stylesheet" href="<?php echo bloginfo('template_url') . '/css/ie/ie7.css' ?>" type="text/css" media="screen" />

    <![endif]-->

    <?php wp_head(); ?>

    </head>

    <body>

    <div id="search-login-bar">

    <?php bp_search_form() ?>

    <?php bp_login_bar() ?>

    <div class="clear"></div>

    </div>

    <div id="header">

    <h1 id="logo">" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></h1>

    <ul id="nav">

    <li<?php if ( bp_is_page( 'home' ) ) {?> class="selected"<?php } ?>>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?>

    <li<?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) ) {?> class="selected"<?php } ?>>/<?php echo BP_HOME_BLOG_SLUG ?>" title="<?php _e( 'Blog', 'buddypress' ) ?>"><?php _e( 'Blog', 'buddypress' ) ?>

    <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) ) {?> class="selected"<?php } ?>>/<?php echo BP_MEMBERS_SLUG ?>" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?>

    <?php if ( function_exists( 'groups_install' ) ) { ?>

    <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) ) {?> class="selected"<?php } ?>>/<?php echo BP_GROUPS_SLUG ?>" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?>

    <?php } ?>

    <?php if ( function_exists( 'bp_blogs_install' ) ) { ?>

    <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) {?> class="selected"<?php } ?>>/<?php echo BP_BLOGS_SLUG ?>" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?>

    <?php } ?>

    <?php do_action( 'bp_nav_items' ); ?>

    <div class="clear"></div>

    </div>

    </body>

    <div id="main">

    <?php if ( is_bb_profile() ) profile_menu(); ?>

    <div class="clear"></div>

    <?php include("sidebar.php");?><!-- includes sidebar -->

    In bb-config.php

    <?php

    /* require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-blog-header.php' ); */

    if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST')) {

    define('WP_USE_THEMES', false);

    include_once( '/home/xxxxxxxxxx/public_html/wp-blog-header.php' );

    header("HTTP/1.1 200 OK");

    header("Status: 200 All rosy");

    }

    if ( !defined( 'ABSPATH' ) ) {

    include_once( '/home/xxxxxxxxxxxxxxxxx/public_html/wp-load.php' );

    }

    /**

    * The base configurations of bbPress.

    *

    * This file has the following configurations: MySQL settings, Table Prefix,

    * Secret Keys and bbPress Language. You can get the MySQL settings from your

    * web host.

    *

    * This file is used by the installer during installation.

    *

    * @package bbPress

    */

    // ** MySQL settings - You can get this info from your web host ** //

    /** The name of the database for bbPress */

    define('BBDB_NAME', 'xxxxxxxxxxxxxxx');

    /** MySQL database username */

    define('BBDB_USER', 'xxxxxxxxxxxxxxx');

    /** MySQL database password */

    define('BBDB_PASSWORD', 'xxxxxxxxxxxxxxx');

    /** MySQL hostname */

    define('BBDB_HOST', 'localhost');

    /** Database Charset to use in creating database tables. */

    define('BBDB_CHARSET', 'utf8');

    /** The Database Collate type. Don't change this if in doubt. */

    define('BBDB_COLLATE', '');

    /**#@+

    * Authentication Unique Keys.

    *

    * Change these to different unique phrases!

    * You can generate these using the {@link http://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}

    *

    * @since 1.0

    */

    define('BB_AUTH_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

    define('BB_SECURE_AUTH_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

    define('BB_LOGGED_IN_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

    define('BB_NONCE_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

    define('BB_AUTH_SALT', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

    define('BB_LOGGED_IN_SALT', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

    define('BB_SECURE_AUTH_SALT', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

    /**#@-*/

    define('BP_DISABLE_ADMIN_BAR', false);

    /**

    * bbPress Database Table prefix.

    *

    * You can have multiple installations in one database if you give each a unique

    * prefix. Only numbers, letters, and underscores please!

    */

    $bb_table_prefix = 'bb_';

    /**

    * bbPress Localized Language, defaults to English.

    *

    * Change this to localize bbPress. A corresponding MO file for the chosen

    * language must be installed to a directory called "my-languages" in the root

    * directory of bbPress. For example, install de.mo to "my-languages" and set

    * BB_LANG to 'de' to enable German language support.

    */

    define('BB_LANG', 'es_ES');

    define('COOKIE_DOMAIN', '');

    define('COOKIEPATH', '/');

    require_once(ABSPATH . 'wp-settings.php');

    $bb->bb_xmlrpc_allow_user_switching = true;

    ?>

    Avatar of Kunal17
    Kunal17
    Participant

    @kunal17

    Has anyone released a good buddypress style theme for bbpress yet?

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

You must be logged in to reply to this topic.