If you are logged in as Administrator and there are private/hidden forums, on the forums page there are listed all available post statuses in wordpress even if there are no posts.
This is caused by the filter ‘bbp_pre_get_posts_normalize_forum_visibility’.
IT checks for
$_REQUEST['post_status'])
but initial this variable is not set.
Please fix that. I made a temporary fix including condition
( isset( $_REQUEST['post_status']) || current_user_can( 'administrator') )
I can see the lines in your shared forum.
To reduce spacing you can also try using below CSS code.
.bbp-forum-info .bbp-forum-title {
margin-bottom: 0;
}
It’s hard to help you without accessing your site but please try using below CSS code on your site as described here http://freewptp.com/how-to-use-custom-css-in-wordpress-site/ to reduce spacing.
#bbpress-forums .bbp-forum-info .bbp-forum-content {
margin: 0 !important;
}
Folks – I realize this post is a now a few years old, but I’m embarking on doing “exactly” what @wp_maybe outlined in his original post “I am trying to implement a search box inside a Buddypress group that searches on the contents of the Group Forum.”
I’ve looked through all the code-modifications, suggestions by @tobyhawkins + links (on sevenspark.com above…) – so I’m now just putting things in place to build the search within individual BuddyPress Group Forums (for Public, Private & Hidden BP Groups).
Q: Was there a final, complete consensus of “exactly” what’s req’d to accomplish this? I’m only asking b/c I don’t what to re-invent the wheel via a slew of testing w/ the various code-bits above.
Any input or insights would be swell, -Jeff
To achieve this you have to translate bbPress in your language as described in the following page.
bbPress in Your Language
From memory if you are logged in then you should already be able to do so
see
Codex Standards & Guidelines
When reading bbPress documentation i found some issues and missing information in it so i tried twice to create support forum topic to notify you about this but the topic is not created.
May be because it is in under review.
I read information on this page https://codex.bbpress.org/participate-and-contribute/ to help improve bbPress documentation by requesting access.
@jjj, @netweb, @mercime or @robin-w Could you please grant me access so that i can help to improve it?
You can just hide it using below custom CSS code on your site as described here http://freewptp.com/how-to-use-custom-css-in-wordpress-site/
#bbpress-forums fieldset.bbp-form label[for="bbp_anonymous_website"],
#bbpress-forums fieldset.bbp-form #bbp_anonymous_website {
display:none;
}
Or you can overwrite following bbPress template file in your child theme and remove website field code from it.
/bbpress/templates/default/bbpress/form-anonymous.php
You can change it by adding following custom code in the functions.php file of your child theme.
function vvd_bbpress_translate_text( $translated_text, $text, $domain ) {
if ( 'bbpress' === $domain && 'Voices' === trim($translated_text) ) {
$translated_text = 'Voix';
}
return $translated_text;
}
add_filter( 'gettext', 'vvd_bbpress_translate_text', 20, 3 );
Well we’re all waiting for breaking news for bbPress release or rc4 but online timesheets it is not. And seeing as user onlinetimesheets’ system is built on Microsoft ASP.Net 4 it seems unlikely to make much use of bbPress..
Now, could we get the bbPress on wordpress.org to add the Plugin name (Forum title) to the email alerts? It’s tiring getting all the alerts with no context about which plugin they refer to.
Something like this should do it:
function add_the_plugin_name_please( $message, $reply_id, $topic_id ){
$topic_title = strip_tags( bbp_get_topic_title( $topic_id ) );
$forum_title = bbp_get_topic_forum_title($topic_id);
$messageheader = sprintf( __( 'New post in Forum "%1$s", Topic "%2$s".', 'wordpress-org' ),
$forum_title,
$topic_title
);
$messagefooter .= "\r\n" . "\r\n" . __('Thankyou for participating on wordpress.org', 'wordpress-org' );
return $messageheader . "\r\n" . "\r\n" . $message . "\r\n" . $messagefooter;
}
add_filter( 'bbp_subscription_mail_message', 'add_the_plugin_name_please', 10, 3);
thank you very much for your help . But I follow the tutorial you introduced to do, there is no front-end changes. Do not you know why?
And this code( <?php bbp_the_content( array( ‘context’ => ‘reply’ ) ); ?> ) I have replacement the summernote code, and nothing changed!
could be done with bespoke code, but beyond free help I’m afraid !!
can only give you the area for html
so two files
wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php
wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress
where %your-theme-name% is the name of your theme
Make a copy of the two files above, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/bbpress/form-topic.php
and
wp-content/themes/%your-theme-name%/bbpress/bbpress/form-reply.php
bbPress will now use this template instead of the original
and you can amend this
Suggest your html/php needs to replace
<?php bbp_the_content( array( 'context' => 'reply' ) ); ?>
but you’ll need to work out exactly how yourself !!
In the spirit of sharing stuff, if you work it out, please post the solution to this thread !!
I thought perhaps we were dealing with a configuration or rights assignment issue when trying to implement BBPress with LearnDash, but I get the same result using the single forum shortcode on a basic page on our site with no content protection.
Test Forum
I created a page with this code in it [bbp-register] and name this page forum register. However after updating the page and preview it, it keeps popping up my home page, not the forum register page. can someone help me with this? thanks.
Hi
after the last update, i got an error on line 1800 in functions.php when opening the forum page. according to forum entry here i downloaded and installed beta3. it worked again.
but now bbpress widgets as well as the shortcodes like this:
[bbp_recent_topics max_shown=”5″]
they, spit out all topics instead of only 5…
what to do? install beta2? here is the link (NSFW!):
Home
i leave the error in there for a moment, so you can see it.
thanks!!
Thanx, tried option 2, seems to work.
only one thing, those breadcrumbs it creates don’t seem to work.
I have created a page where I put the index shortcode and it shows three (test) forums, I can go into them but can’t go back to index.
I set those forums as “forum” or should they be categorie?
Hi,
you provided me several months ago with a function that displays a search field in the bbp forum:
function rk_bbp_search_form(){
if ( bbp_allow_search()) {
?>
<div class="bbp-search-form">
<?php bbp_get_template_part( 'form', 'search' ); ?>
</div>
<?php
} }
add_action( 'bbp_template_before_single_forum', 'rk_bbp_search_form' );
add_action( 'bbp_template_before_single_topic', 'rk_bbp_search_form' );
Although i appreciate this help, i have found that the relevansi search is better at finding all forum topics on my website. They have provided the code here to display a search box.
I would really like this to replace the one in the function above but am having a problem doing this.
I know this is cheeky, but can you help?
No, I just want users can not access to the forums page. Because I embed the forums by shortcode manually.
For anyone else looking for an answer I found it:
if( has_term( 'myterm', 'topic-tag' ) ) {
// do something
}
Done. Thank you anyway 🙂
Here goes the correct code for who might be interested:
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = true;
$args['teeny'] = false;
$args['tinymce'] = array(
'toolbar1' =>'bold, italic, blockquote',
);
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
I’m using this guide to show TinyMCE in my bbpress forum:
https://codex.bbpress.org/enable-visual-editor/
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = true;
$args['teeny'] = false;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
Is it possible to remove or hide some buttons in Visual tab?
I want to hide those:

Can someone help me?
Thanks 🙂
ahh!!
7.1 has some issues with bbpress (or visa versa)
so 3 fixes
1. downgrade to a lesser version of php
2. upgrade to bbpress 2.6rc3
3. in bbpress 2.5.13 in includes/forums/functions.php
change line 1851 from
$meta_query = $posts_query->get( ‘meta_query’ );
to
$meta_query = $posts_query->get( ‘meta_query’, array() );
and change line 1796 from
$post_stati = $posts_query->get( 'post_status' );
to
$post_stati = $posts_query->get( ‘post_status’ );
if (!is_array($post_stati)){
$post_stati = array($post_stati);
}
Hmmm @slomeli79 it’s been awhile since I worked on this. I see this code in my functions.php file but I hesitate to think the solution was this simple. Try it out, and if it doesn’t work I’ll check the rest of my code.
function custom_bbpress_maybe_load_mentions_scripts( $retval = false ) {
return true;
}
add_filter( 'bp_activity_maybe_load_mentions_scripts', 'custom_bbpress_maybe_load_mentions_scripts' );