Re: bbPress 2.0 – Theme Compatibility
Hi everyone,
I read the beginning of the topic cause I am very interested in building compatibility between my theme (a child theme of buddypress) and bbpress (indeed I installed the buddypress plugin and the bbpress one).
I don’t know if this has already be given as a solution (or even if it actually one
. I copied the bbp-twentyten theme and personnalized it. Then I redefined it as the default bbpress theme, in order it is the one used instead of bbp-twentyten.
What I wrote in the functions.php of my theme:
if ( class_exists('bbPress') && file_exists(%FUNCTIONS_PHP_OF_MY_BBPRESS_THEME%) ) {
require_once %FUNCTIONS_PHP_OF_MY_BBPRESS_THEME%;
} else {
add_action('admin_notices', 'message_if_my_bbpress_theme_is_absent');
}
In the functions file of my bbpress theme I have:
$bbp->theme_compat->theme = new MY_BBP_THEME();
And thus I have my child theme from buddypress safe and my second theme for bbpress used instead of bbp-twentyten.
Hope this is a good solution and it can be helpful!