BuddyBar in bbPress
-
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
- You must be logged in to reply to this topic.