untested, but this should do it, come back if not
change line 3 to
if ( is_user_logged_in() && is_bbpress() ) {
and line 6 to
elseif ( !is_user_logged_in() && is_bbpress() ) {
your theme is re-writing the classes used by bbpress.
Put this into the custom css – either of your theme if it has a custom css area, or into the custom css tab in my style pack plugin settings
.x-bbp-search-form {
background-color: #ffffff !important;
}
.bbp-forums ul, li {
background-color: #ffffff !important;
}
Hi Stephen @netweb ,
Is it possible to integrate the above (functionality) (except the theme dependent functionality) in future BBPress releases. As a user, for me it’s a integration issue between Buddypress & BBpress.
Best regards,
Marc
Hi and thanks for your quick answer.
I have child theme and I can copy bbpress theme inside it.
I’d be thankful if you tell me how can I use these codes.
Please consider that I want to let Keymaster and topic owner to edit topic tags.
Hi,
you provide code to add login and logout links on bbpress layout and functionality, which is just what i need.
Question: Is there any way for it to only appear in my forum http://www.apis.de/forum (and all sub urls) but not on the rest of my site?
Quick solution but not really what i’m looking for (i’m looking to add a function as a real menu option).
I order to add a Like option to the BBPress header menu in topics and replies I resorted to this quick solution (not perfect yet):
<span class="bbp-admin-links">
<?php echo get_fav_or_unfav_button_for_bpp(); ?>
</span>
Add after <?php bbp_reply_admin_links(); ?> in loop-single-reply.php
More info: https://bbpress.org/forums/topic/integrating-buddypress-favorite-system-aka-like-system-with-bbpress/
I order to add a Like option to the BBPress header menu in topics and replies I resorted to this quick solution (not perfect yet):
<span class="bbp-admin-links">
<?php echo get_fav_or_unfav_button_for_bpp(); ?>
</span>
Add after <?php bbp_reply_admin_links(); ?> in loop-single-reply.php
But mission accomplished, the integration of the Buddypress Favorite system with BBPress is complete.

Is there any auto social poster for every bbpress topics?
I had this same problem and had to turn notifications off permanently after the transfer. I believe some people have suggested making sure that buddypress is not activated during the transfer, ie to only activate buddypress after the bbpress migration has taken place.
Solved:
function get_fav_or_unfav_button_for_bpp( $reply ) {
global $bp, $activities_template;
// user is not logged ? Show nothing.
if ( ! is_user_logged_in() ) {
return '';
}
$activity_id = (int) get_post_meta( bbp_get_reply_id( $reply_id ), '_bbp_activity_id', true );
if ( ! $activity_id ) {
return '';
}
bp_has_activities(); // update $activities_template of user's fav
$old_value = false;
if ( isset( $activities_template->activity->id ) ) {
$old_value = $activities_template->activity->id;
$activities_template->activity->id = $activity_id;
} else {
$activities_template->activity = (object) array( 'id' => $activity_id );
}
// building the template
$code = '';
$code .= '<div class="activity-like-count">'."\n";
if ( ! bp_get_activity_is_favorite() ) {
// if not favorited, add a fav button
$code .= ' <a href="'.bp_get_activity_favorite_link( ).'" class="acomment-like fav-comment bp-secondary-action" title="'.__( 'Like', 'buddypress' ).'">'.__( 'Like', 'buddyboss' ).'</a>'."\n";
} else {
// if already favorited, a button to unfav
$code .= ' <a href="'.bp_get_activity_unfavorite_link( ).'" class="acomment-like unfav-comment bp-secondary-action" title="'.__( 'Unlike', 'buddypress' ).'">'.__( 'Unlike', 'buddyboss' ).'</a>'."\n";
}
// closing .activity-meta
$code .= '</div>'."\n";
if ( false !== $old_value ) {
$activities_template->activity->id = $old_value;
} else {
$activities_template->activity = null;
}
return $code;
}
?>
Add to loop-single-reply.php for BBPress:
<?php echo get_fav_or_unfav_button_for_post( reply ); ?> or in the bbp_reply_menu, which i’m still trying to figure out:
add my own menu option to the bbp-reply-header
Hi all,
I’m trying to add my own “menu” option to the reply header (let’s call it LIKE)..
So for admin:
Edit | Close | Stick (to front) | Merge | Trash | Spam | Reply | LIKE |#10436
For participants:
Reply | LIKE | #10452
I can’t find the right solution for this little adjustment I really need … to add the Buddypress Like (favorite) button:
Integrating Buddypress favorite system (aka like system) with BBPress
Apologies all and good catch, Robin!
I don’t think there’s anything wrong with your version of the code, but for the sake of alternatives here’s a fix for what I posted originally:
function bbpress_enable_rest_api() {
$types = array(
bbp_get_reply_post_type(),
bbp_get_forum_post_type(),
bbp_get_topic_post_type(),
);
foreach ( $types as $slug ) {
$definition = (array) get_post_type_object( $slug );
$definition['show_in_rest'] = true;
$definition['rest_controller_class'] = 'WP_REST_Posts_Controller';
register_post_type( $slug, $definition );
}
}
add_action( 'bbp_register_post_types', 'bbpress_enable_rest_api', 11 );
Beyond that, the links you shared (in terms of mixing in extra info such as the author’s details) look solid to me ๐
ok, I’ve just loaded your code to my test site, and I can set a user to member and it holds
Suspect either theme or other plugins
bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
Forum Discussions
here is the forum page. WP and BBpress are most updated versions
I Think if I could just get the forum pages/topic pages to be a white background, it would be fine.
1. Professional doesn’t stick either. It seems like only the added roles are misbehaving. When I set my Auto Role to a prepackaged role, everything acts fine.
2. I tried renaming the filter and the roles still don’t stick.
Thank you for all of your help so far! If you have any other suggestions for creating new/custom roles, please let me know. This is the only modification I’m making to bbPress, so I can definitely try other approaches if any come to mind.
Hello,
I am getting the following errors:
Warning: ksort() expects parameter 1 to be array, object given in /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-content/plugins/bbpress/includes/core/template-functions.php on line 316
Warning: Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-login.php on line 394
Warning: Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-login.php on line 407
I cannot log in as an admin. My site is artintheblood.net. I should have the latest update of WordPress, but I cannot confirm because I cannot enter the site. Any advice you can offer is greatly appreciated.
you would need to know how to copy a bbpress template, modify it and then load it to your child theme
so you would need FTP access to your site
If that sound possible, the come back and I’ll try to help further
posting this untested code in here just so I don’t lose it !
<?php
$user_id = wp_get_current_user()->ID;
$topic_id = bbp_get_topic_id() ;
$topic_author = bbp_get_topic_author_id( $topic_id ) ;
$is_topic_author = ($topic_author == $user_id ? true : false) ;
if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags' ) && $is_topic_author ) : ?>
Shortcodes
[bbp-topic-form] โ Display the โNew Topicโ form where you can choose from a drop down menu the forum that this topic is to be associated with.
[bbp-topic-form forum_id=$forum_id] โ Display the โNew Topic Formโ for a specific forum ID.
bbpress hates local installations
try adding
add_filter( ‘bbp_verify_nonce_request_url’, ‘my_bbp_verify_nonce_request_url’, 999, 1 );
function my_bbp_verify_nonce_request_url( $requested_url )
{
return ‘http://localhost:8888’ . $_SERVER[‘REQUEST_URI’];
}
As far as I can see that is down to the rest api, not bbpress – it does the same with posts ie not show author.
I suspect barry is way ahead of me in knowledge but these two links seem to show that you write api callbacks into your website and then add them to the api
http://wordpress.stackexchange.com/questions/224332/how-to-get-author-meta-into-post-endpoint-in-api-v2
http://v2.wp-api.org/extending/adding/
Hi, I’ve been working on migrating my large Drupal site to WordPress. I’ve managed to do the majority of the site but now I’m stuck on the forum.
I’m using Drupal 6 and Advanced Forum, I have 26K topics and 700K replies.
I’ve tried running the script on a couple of different local machines, and on my VPS server where I’ve had the most success; the script does the 26K topics smoothly but then hangs pretty early in the replies, around the 700th row. Locally, it gets stuck before. Weird thing is that a couple of times I’ve left it running for longer, eventually it manages to go past that sticking point and just continues extremely slowly.
Also: I’ve read the troubleshooting instructions, which make sense but I don’t understand how to pinpoint the line numbers within the database, specifically these points:
- “Now drop all the rows in the database that are not in the range of rows that failed during import”
- “Once you have your list of offenders and the import has finished delete these rows from the database and test again to make sure it completes without hanging
So question #1: if I look at my database in phpMyAdmin for example, and I know the problem is in rows 700-799 of my replies, how do I locate these rows?
Question #2: Is there a way to know for sure if the problem is performance/memory related or if it’s an encoding issue in a specific row? I don’t know if I should be directing my efforts to solving performance issues or pinpointing problem rows.
And finally question #3: Does anybody here have experience with these issues and would be willing to be hired to do this migration? Contact me if you do please!
Thank you very much for any help you can provide ๐
I have the exact same problem. I’ve struggled to find anyone else in my situation. It’s a clean installation of wordpress, and bbpress is the only plugin installed, NOTHING else is done at all. I’ve tried different themes (like twentyfifteen), but that doesn’t seem to be the troublemaker. I’m allowed to make a new forum, but the “all forums” page results in this error. I’m running it on a localhost mamp server.
I’ve searched and tried everything I can find to change the background colors and font colors of my bbpress forum. Right now it is copying the dark format of my X theme settings, and it has a black background with black font color and nothing is visible.
I installed the bbpress style pack but nothing changes when I mess with color schemes inside the style pack. There has to be an easy way to change background colors with out complicated css. I’m not at all familiar with css, so please dumb it down for me if this is what I need to do.
Please help!
thanks,
Scott