allenweiss (@allenweiss)

Forum Replies Created

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

  • allenweiss
    Member

    @allenweiss

    Thank you! That works.


    allenweiss
    Member

    @allenweiss

    nevermind…forgot to put in the

    require_once(‘../wp-blog-header.php’);

    this seems to work fine, but I’ve noticed another problem…when you go to the admin page to administer the forum, I get a failure again, like this:

    Warning: require_once(../wp-blog-header.php) [function.require-once]: failed to open stream: No such file or directory in /home/alumnide/public_html/forum/bb-config.php on line 5

    Fatal error: require_once() [function.require]: Failed opening required ‘../wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/alumnide/public_html/forum/bb-config.php on line 5

    has anybody else gotten past this error?


    allenweiss
    Member

    @allenweiss

    thanks..just did that and get

    Fatal error: Call to undefined function wp_head() in /home/alumnide/public_html/forum/bb-templates/kakumei/header.php on line 33

    am I still missing some code?


    allenweiss
    Member

    @allenweiss

    Ok..thanks…well, this is what I did, but it doesn’t work. I followed the advice given in the link above:

    1. Created a function called functions.php inside my template folder (bb-templates/kakumei/functions.php) and put in it the code:

    function recreate_bb_admin_bar() {

    echo ‘<div id=”wp-admin-bar”><ul class=”main-nav”>’;

    bp_adminbar_logo();

    bp_adminbar_login_menu();

    bp_adminbar_account_menu();

    bp_adminbar_blogs_menu();

    bp_adminbar_notifications_menu();

    bp_adminbar_authors_menu();

    bp_adminbar_random_menu();

    echo ‘</div>’;

    }

    add_action( ‘wp_footer’, ‘recreate_bb_admin_bar’, 8 );

    add_action( ‘admin_footer’, ‘recreate_bb_admin_bar’ );

    add_action( ‘wp_head’, ‘bp_core_admin_bar_css’, 1 );

    2. Added to my bb-config.php file, this line

    require_once(‘../wp-blog-header.php’);

    Am I still missing something? Thanks


    allenweiss
    Member

    @allenweiss

    Hmm..it looks like they say to use the functions.php file (for the theme) to add the code, but I don’t see such a functions file…am I missing something obvious?


    allenweiss
    Member

    @allenweiss

    Thanks all, I’ll give this a try.

    Best wishes,

    Allen

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