Forums

Join
bbPress Support ForumsPluginsBuddyBar in bbPress

Info

Tags

BuddyBar in bbPress

  1. Hi gerikg,

    i saw your post about your problems with the integration of the BuddyBar in bbPress - (http://bbpress.org/forums/topic/buddypress-default-theme-for-bbpress). I found it after a short research in Google - because I've the same problems yesterday.

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'bp_core_admin_bar_css' was given in /homepages/0/00/htdocs/wpbpbbp/wordpress/wp-includes/plugin.php on line 339

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid call

    But ... I think I have an "hack" for you - I changed a few lines of code in my installation and now it seems to work. :)

    These was "myWay":

    1. Deep Integration between WordPress and bbPress
    2. Plugins on bbPress: buddybar-in-bbpress
    3. Edit bp_buddybar.php - I only comment out the following lines


    /* add_action( 'bb_head', 'bp_core_admin_bar_css', 1 );
    add_action( 'bb_head', 'bp_core_add_js', 1 );
    add_action( 'bb_admin_head', 'bp_core_admin_bar_css', 1 );
    add_action( 'bb_admin_head', 'bp_core_add_js', 1); */

    4. Edit bp-core-adminbar.php

    Here I've a error code because auf "$wpdb" - so I commet out:


    /* $blog_prefix = $wpdb->get_blog_prefix( $current_blog->id );*/

    5. header.php in my theme

    I put the Stylesheet-Link to my header.php file.

    <link rel="stylesheet" href="http://www.mysteria3000.de/wp/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css" type="text/css" />

    ...

    No the best solution - but it works for me. :)

    Greetings
    Markus

  2. Awesome thank you I need to try it.

  3. Do we know if this was able to fix the problem?

  4. Hi Bradcarters,

    i don't think this is the best solution to fix the original problem. It is just a "dirty" workaround. For me it seems to work.

    But you can wait for the test and the answer from gerikg.

    Markus

  5. There's a plugin to get the buddybar into bbP - http://wordpress.org/extend/plugins/buddybar-in-bbpress/

    I updated it to work with buddypress 1.2

    http://buddypress.org/forums/topic/buddybar-for-bbpress/page/5#post-40993

    It requires deep integration.

  6. Hi Tom,

    thanks for your new version of the buddybar-in-bbpress plugin. It works in my installation.

    I only get this error message because of commenting "out" the bp_adminbar_blogs-menu:

    Fatal error: Call to undefined method wpdb::get_blog_prefix() in /kunden/199620_87439/webseiten/wp/wp-content/plugins/buddypress/bp-core/bp-core-adminbar.php on line 193

    1. bp_buddybar.php
    /*add_action( 'bp_adminbar_menus', 'bp_adminbar_blogs_menu', 6 ); */

    2. bp-core-adminbar.php
    /* $blog_prefix = $wpdb->get_blog_prefix( $current_blog->id );*/

    Is there another way to deactivate the "new blog" function? I use the WordPress Single Version 2.9.2 - and there is no function for new blogs.

    Greetings
    Markus

  7. You must log in to post.