Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyBar in bbPress


  • Markus Pezold
    Participant

    @markus-pezold

    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&#8221; type=”text/css” />

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

    Greetings

    Markus

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

  • gerikg
    Member

    @gerikg

    Awesome thank you I need to try it.


    Bradcarters
    Member

    @bradcarters

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


    Markus Pezold
    Participant

    @markus-pezold

    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


    deadlyhifi
    Participant

    @tomdebruin

    There’s a plugin to get the buddybar into bbP – https://wordpress.org/extend/plugins/buddybar-in-bbpress/

    I updated it to work with buddypress 1.2

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

    It requires deep integration.


    Markus Pezold
    Participant

    @markus-pezold

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar