@themk850
sorry for the late reply, but try this.
add_filter('bbp_after_list_forums_parse_args', 'ntwb_bbpress_list_forums' );
function ntwb_bbpress_list_forums() {
$args['separator'] = '';
return $args;
}
or I guess instead of using my CSS and the above function just use this instead.
add_filter('bbp_after_list_forums_parse_args', 'ntwb_bbpress_list_forums' );
function ntwb_bbpress_list_forums() {
$args['separator'] = '</br>';
return $args;
}
Try this.
add_filter('bbp_after_list_forums_parse_args', 'ntwb_bbpress_list_forums' );
function ntwb_bbpress_list_forums() {
$args['separator'] = '';
return $args;
}
Don’t mess with template files.
You can copy form-forum.php from the bbPress plugin templates into a folder called bbpress in your child theme and remove 'show_none' => __( '(No Parent)', 'bbpress' ), so that they have to choose a parent forum.
Look for this in the file.
<p>
<label for="bbp_forum_parent_id"><?php _e( 'Parent Forum:', 'bbpress' ); ?></label><br />
<?php
bbp_dropdown( array(
'select_id' => 'bbp_forum_parent_id',
'show_none' => __( '(No Parent)', 'bbpress' ),
'selected' => bbp_get_form_forum_parent(),
'exclude' => bbp_get_forum_id()
) );
?>
</p>
End up with something like this.
<p>
<label for="bbp_forum_parent_id"><?php _e( 'Parent Forum:', 'bbpress' ); ?></label><br />
<?php
bbp_dropdown( array(
'select_id' => 'bbp_forum_parent_id',
'selected' => bbp_get_form_forum_parent(),
'exclude' => bbp_get_forum_id()
) );
?>
</p>
See if this plugin helps/still works.
bbp additional shortcodes
Also Robin’s other plugin might have the same functionality somewhere in it.
https://wordpress.org/plugins/bbp-style-pack/
I am just saying the auto suggest topics plugin’s script might make it into core if it was in forum search and extend that, then it could also be use for the new topic title too. It is just the way I see it.
1. oembed in bbPress basically uses that same filter, but for each of the topics and replies content. The filter is just wrapped in a conditional if you did enable oembeds in bbPress.
Here is the code for replies that is in the bbPress core.
function bbp_reply_content_autoembed() {
global $wp_embed;
if ( bbp_use_autoembed() && is_a( $wp_embed, 'WP_Embed' ) ) {
add_filter( 'bbp_get_reply_content', array( $wp_embed, 'autoembed' ), 2 );
}
}
Maybe removing the shortcode helps, but I will keep an eye on that.
I do not think the description needs that much of a drastic change. Because it might matter more to know the last who posted, when was the last post, how many users are in the topic, and how many posts, and also this information is pretty handy for regular forum users to know about. Plus bbpress has a way to see pending/spam replies in a topic by clicking the hidden posts link in the description.

There needs to be information that tells google that this is a forum, and not a blog post for example.
Published date is almost always going to get picked up by google.
There might be other areas to add schematic microdata like what is listed in this.
http://schema.org/DiscussionForumPosting
The data might also be best to place around the actual post.
Since I don’t want you to remove all the notices with CSS that have the bbp-template-notice class. Copy the form-topic.php and form-reply.php templates into a folder called bbpress in your child theme and look for something like this code below, then remove it.
<?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
<div class="bbp-template-notice">
<p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
</div>
<?php endif; ?>
@geog272
For having a forum show up instead of the (No Forum), copy form-topic.php in your child theme.
In the code toward line 109 you would see something like this.
<?php if ( !bbp_is_single_forum() ) : ?>
<?php do_action( 'bbp_theme_before_topic_form_forum' ); ?>
<p>
<label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
<?php
bbp_dropdown( array(
'show_none' => __( '(No Forum)', 'bbpress' ),
'selected' => bbp_get_form_topic_forum()
) );
?>
</p>
<?php do_action( 'bbp_theme_after_topic_form_forum' ); ?>
<?php endif; ?>
Remove 'show_none' => __( '(No Forum)', 'bbpress' ), so it would look like this.
<?php if ( !bbp_is_single_forum() ) : ?>
<?php do_action( 'bbp_theme_before_topic_form_forum' ); ?>
<p>
<label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
<?php
bbp_dropdown( array(
'selected' => bbp_get_form_topic_forum()
) );
?>
</p>
<?php do_action( 'bbp_theme_after_topic_form_forum' ); ?>
<?php endif; ?>
For having a forum show up instead of the (No Forum), copy form-topic.php in your child theme.
In the code toward line 109 you would see something like this.
<?php if ( !bbp_is_single_forum() ) : ?>
<?php do_action( 'bbp_theme_before_topic_form_forum' ); ?>
<p>
<label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
<?php
bbp_dropdown( array(
'show_none' => __( '(No Forum)', 'bbpress' ),
'selected' => bbp_get_form_topic_forum()
) );
?>
</p>
<?php do_action( 'bbp_theme_after_topic_form_forum' ); ?>
<?php endif; ?>
Remove 'show_none' => __( '(No Forum)', 'bbpress' ), so it would look like this.
<?php if ( !bbp_is_single_forum() ) : ?>
<?php do_action( 'bbp_theme_before_topic_form_forum' ); ?>
<p>
<label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
<?php
bbp_dropdown( array(
'selected' => bbp_get_form_topic_forum()
) );
?>
</p>
<?php do_action( 'bbp_theme_after_topic_form_forum' ); ?>
<?php endif; ?>
The default forum shown is whatever is first in the forum index page. It either is sorted by publish date first or the forum ordered first if you manually changed the forum order by editing the forum.
@hotconductor
Thats just a shortcode that you put in a separate page, not the topic form being displayed below forums using the form-topic.php template.
Try some troubleshooting if you haven’t already.
Troubleshooting
Try a default theme activated with only bbPress activated to see if the problem persists.
Also ask a couple of these questions.
Do you have a multisite installation?
Is WordPress installed in a sub-folder?
What is the url you get when you try to logout?
What areas did you try to logout from? The WordPress Toolbar, bbPress login widget, something else?
Did this issue occur when you immediately activated bbPress? Or did the issue occur after a certain upgrade?
Did you have any cache plugins activated? Have you tried flushing the cache? If it is deactivated reactivate the plugin and flush the cache.
Anything that can cache activated on your site, server cache, cloudflare, object cache, opcode caching?
What hosting provider do you have?
Does this help?? This code appears at 320px but it probably should be by default.
#bbpress-forums div.wp-editor-container {
width: 100%;
overflow: auto;
}
New topic and reply forms are cut off on the right side at screens smaller than 430px width.
Tried several combinations of FORM#new-post, .bbp-reply-form and FIELDSET.bbp-form, with width:100% or a fixed size for smaller screens. Testing with
.bbp-topic-form,
.bbp-reply-form{
width:10px;
}
for example effects that the form gets smaller in width, but not 10px or any other wished px-width. It will be always fix at a width of maybe 300px. Could there be some default CSS already that I don’t see?
Are these forms responsive by default, anyway?
Thanks for any help!
Replacing blog comments with topic replies is scheduled for 2.7, but you can also use the handy bbPress topics for posts plugin.
You can create custom roles with custom capabilities in bbPress.
Custom Capabilities
There is an API or an example API in the Jetpack plugin.
https://plugins.trac.wordpress.org/browser/jetpack/trunk/class.jetpack-bbpress-json-api-compat.php
There have been users trying to make apps with bbPress.
WordPress JSON Rest API bbPress and Android
Also know there has been work to introduce an API into WordPress.
https://wordpress.org/plugins/json-rest-api/
And there already have been plugins in development for compatibility between the WP-REst API and bbPress like this one.
https://github.com/thenbrent/BB-API (Alpha version)
Any contributions for any work toward any type of bbPress Rest API are welcome and much appreciated.
I guess you can also remove the feeds too. This reply has code to remove BuddyPress feeds.
https://buddypress.org/support/topic/hiding-bp-pages-from-non-logged-in-users-tried-several-solutions/#post-243627
bbPress feeds are tough though. THere is a post here showing a function to hide feeds (it also includes sitewide feeds for blog posts too). You can also use the plugin disable feeds too.
Private posts showing in RSS feed & Widgets
Hey @macpress, you were close, very close on your second post here, we’re using Grunt, not Gulp as part of our build process. 😉
Anyway the overall summary is that certain styles are compiled from SCSS into CSS, or minified CSS, or minified JS via our Grunt build tools.
A more in depth document (that has not yet made it into our codex) on all of this can be found here:
https://github.com/ntwb/bbPress#bbpress
If you don’t want to install NodeJS and Grunt we have another /trunk SVN repo that has everything already compiled https://downloads.wordpress.org/plugin/bbpress.zip via the “developer version” on our plugin page https://wordpress.org/plugins/bbpress/developers/, this isn’t truly /trunk though, this is a manual copy of our main repo we upload/update periodically, semi frequently.
FYI: The *.php = svn:eol-style=native SVN is our “Version Control Software” and this stuff sets us sets of rules for different file types or ignoring certain files and folders.
Well using a replies templates as comments to blog posts is a feature for bbPress 2.7 I believe but if that feature is really key you should either [1] code it yourself or [2] look elsewhere cause waiting for 2.7 won’t be worth your time. The bbPress 2.7 release is at least one year away based on the current average development of bbPress.
From the other point of view, bbPress is the most easy to use forum software when it comes to making changes or altering the frontend layout when you have some WordPress experience.
I mean, I customizing the frontend of a ‘forum’ is what rocks my boat I never understand why people would use one of those most populair forum scripts out there and in the end have a forum that looks like a FORUM and completely different from the rest of the site layout. I always like it when everything, site, shop, forum and whatnot looks and feels the same as the general site.. I never create forums for mega large websites or sites that are driven by communities from the early days when you simply had to install a forum script to create a so called community. There are far better systems out there that just do that. Create communities and interaction with users – you don’t need a forum for that. Forums nowadays are generally for support only.
Your MacRumors example is a site that was created 300 years ago based on a forum system to interact with users. Now they are bloated have to hide mega lots of content to fit your mobile screen else the site would load 12min a page.
Myself I was making a bbPress forum today with a subject called ‘Apple support’. Just for fun not a real project. It’s just fun how easily you can alter bbPress templates and create something frontend that you didn’t know was a forum script.
This example is my Forums index page.
iPad

iPhone

*still work in progress..
I am making a new website for a parent group which would use a forum in its core design. The site would consist of a main page with a blog which has comments that are tied to a forum topic. Similar to something like http://www.macrumors.com/. It would also have custom permission levels beyond the generic moderator, sub, and admin roles via plugins, and be locked with access codes. We are also planning on making a custom App for iOS and Android, or maybe even Windows using core tools like Xcode and Android Studio, Visual Studio, or Xamarin down the line. Right now I am trying to decide on what would be the best foundation for our site. Does bbPress have some sort of API that we could use, or do we need to look elsewhere?
If I view the source code, the copy that is usually rendered by these lines of code:
$retstr = sprintf( esc_html__( 'This topic contains %1$s, has %2$s, and was last updated by %3$s %4$s.', 'bbpress' ), $reply_count, $voice_count, $last_updated_by, $time_since );
is displaying but it seems that %1$s and %2$s isn’t pulling any data through, but %3$s %4$s is.
@robkk , thanks for everything. I appreciate the fact that you took the time to read my ideas and such. The BuddyPress and WordPress community does not seem to notice my suggestions.
Your summary is right. However, when I say “topic auto-suggestion”, I am referring to the “bbPress Live Topic Suggestions” plugin (https://wordpress.org/plugins/bbpress-auto-suggest-topics-based-on-new-topic-title/).
1. As for the oEmbed cache code that I use, the code is below. This is not a real fix/solution since I remove/disable auto-embedding and three shortcodes. Basically, I am making it impossible for oEmbed cache to form.
remove_filter('the_content',array($GLOBALS['wp_embed'],'autoembed'),8);
remove_shortcode('audio');
remove_shortcode('video');
remove_shortcode('playlist');
By the way, the BBPress developers may want to consider designing the “bbp-topic-description” to look similar to the code below. I use that format on my website; the code snippet below was taken from http://dcjtech.info/topic/directx-introduction/ . The below code uses Microdata (like Hentry/Hatom and others) and is used by many search engines.
<p class="bbp-topic-description">This topic was published by <em><span class="p-author h-card fn author post-author" itemprop="author">DevynCJohnson</span></em> and viewed 201 times since "<time itemprop="datePublished" class="dt-published published entry-date uploaded" datetime="2015-07-28">July 28, 2015 @ 06:00UTC</time>".</p>
The BBPress developers are more than welcome to ask me for code or ask how I created/added some particular feature.
Hi,
I am making a shortcode for bbpress use profile and here is the function
add_shortcode('myprofile', 'show_bb_profile');
function show_bb_profile() {
ob_start() ?>
<?php do_action( 'bbp_template_before_user_details' ); ?>
<div id="bbp-single-user-details">
<div id="bbp-user-avatar">
<span class='vcard'>
<a class="url fn n" href="<?php bbp_user_profile_url( get_current_user_id()); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?>" rel="me">
<?php echo get_avatar( bbp_get_displayed_user_field( 'user_email', 'raw' ), apply_filters( 'bbp_single_user_details_avatar_size', 150 ) ); ?>
</a>
</span>
</div><!-- #author-avatar -->
<div id="bbp-user-navigation">
<ul>
<li class="<?php if ( bbp_is_single_user_profile() ) :?>current<?php endif; ?>">
<span class="vcard bbp-user-profile-link">
<a class="url fn n" href="<?php bbp_user_profile_url( get_current_user_id()); ?>" title="<?php printf( esc_attr__( "%s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me"><?php _e( 'Profile', 'bbpress' ); ?></a>
</span>
</li>
<li class="<?php if ( bbp_is_single_user_topics() ) :?>current<?php endif; ?>">
<span class='bbp-user-topics-created-link'>
<a href="<?php bbp_user_topics_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Topics Started", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Topics Started', 'bbpress' ); ?></a>
</span>
</li>
<li class="<?php if ( bbp_is_single_user_replies() ) :?>current<?php endif; ?>">
<span class='bbp-user-replies-created-link'>
<a href="<?php bbp_user_replies_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Replies Created", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Replies Created', 'bbpress' ); ?></a>
</span>
</li>
<?php if ( bbp_is_favorites_active() ) : ?>
<li class="<?php if ( bbp_is_favorites() ) :?>current<?php endif; ?>">
<span class="bbp-user-favorites-link">
<a href="<?php bbp_favorites_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Favorites", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Favorites', 'bbpress' ); ?></a>
</span>
</li>
<?php endif; ?>
<?php if ( bbp_is_user_home() || current_user_can( 'edit_users' ) ) : ?>
<?php if ( bbp_is_subscriptions_active() ) : ?>
<li class="<?php if ( bbp_is_subscriptions() ) :?>current<?php endif; ?>">
<span class="bbp-user-subscriptions-link">
<a href="<?php bbp_subscriptions_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Subscriptions", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Subscriptions', 'bbpress' ); ?></a>
</span>
</li>
<?php endif; ?>
<li class="<?php if ( bbp_is_single_user_edit() ) :?>current<?php endif; ?>">
<span class="bbp-user-edit-link">
<a href="<?php bbp_user_profile_edit_url( get_current_user_id()); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Edit', 'bbpress' ); ?></a>
</span>
</li>
<?php endif; ?>
</ul>
</div><!-- #bbp-user-navigation -->
</div><!-- #bbp-single-user-details -->
<?php do_action( 'bbp_template_after_user_details' ); ?>
<?php
$output = ob_get_contents();
ob_end_clean();
return $output;
}
However, I am able to get the profile link for a user by this template tag get_current_user_id()
but how what is the template tag for a user to his replies & topics.
Thanks in advance
This codes does allow both admin and normal user to search for both wp and forum contents fine.
However normal user with no permission to certain forum could search for those articles in hidden forum too! and they could view the full fine from click link on search results, this is privacy alert!
Hi
we run WP 4.3 and bbpress 2.5.8
This codes does allow both admin and normal user to search for both wp and forum contents fine.
However normal user with no permission to certain forum could search for those articles in hidden forum too! and they could view the full fine from click link on search results, this is privacy alert!
Put this in your functions.php file in your child theme or place this php code snippet in a plugin like functionality.
add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
function ja_return_blank() {
return '';
}
Try some troubleshooting to see if it could be a plugin issue.
Troubleshooting