I created a WordPress page with the name “Diskusjon” and changed the root of bbPress to be this in the settings. Now bbp-single-forum shortcode won’t work. It just shows the forum index, something I tried to avoid by creating this standalone page as root. Any tips?
Hi @robkk,
that seems to answer a different question – it only lists forums I’m subscribed to in bbPress.org, not subscriptions on my website – and I can’t see how it could list those since there’s no connection. I’m talking about a self-hosting website using bbPress as a plugin.
One reason I was asking was because of this post in the codex:
Subscriptions
Is this post wrong?
Hi there,
I am using the shortcode for registration, on my registration page: [bbp-register]
The issue I’m having is that when folk create an account, they set an username and email, but are not sent a password in the email (and/or also not made to create a password)?
This means that they have to go to the ‘lost password’ link to get their account activated? This doesn’t seem like a streamlined workflow? is there anything I can do to avoid this?
Cheers
I’ve recently migrated a couple of websites to WP Multisite and am now using bbPress on various multisite sub-sites. The issue I’m reporting may be specific to multisite, or it may be a new bug after the recent change to WP 4.3 (I’m using bbPress 2.5.8 and WP 4.3).
Context:
On the “Edit Topic” screen, there’s an “Author Information” box including an ID field. When you begin to type text into this box, the admin-ajax action “bbp_suggest_user” should auto-suggest potentially matching users.
Issue:
The user autosuggest is not returning any users, just “-1”. Having dug into the code, the step that’s failing is wp_verify_nonce() in check_ajax_referrer(), which is invoked on line 745 of bbPress file includes/admin/admin.php. The nonce is making it into wp_verify_nonce, but is not matching any expected/acceptable value – so wp_verify_nonce falls out the bottom with a failure.
If I remove the check_ajax_referrer step, the Edit Topic user auto-suggestion works perfectly so it’s definitely the nonce validation step that’s the problem.
Also, I’m NOT using any caching plugin on these sites, and the error exists whether the site uses https or not. It also continues to exist if I disable Wordfence.
Hi, thanx but what I want is to not to have to select a forum when create a new one. Like in wordpress admin panel. Just create the new forum with short codes at the same level that others. On top. Is it possible?
Weird that the BuddyPress widget works fine. You might want to deactivate everything but bbPress to see if the issue persists and to test everything fresh. You might want to test the bbPress login widget also.
Does this PHP code snippet help anything when trying to logout with only bbPress activated?
add_filter( 'logout_url', 'my_logout_page', 10, 2 );
function my_logout_page( $logout_url, $redirect ) {
$logout_url = str_replace('%3Floggedout%3Dtrue', '', $logout_url);
return $logout_url;
}
It works fine when I tested it on my site.
You can try to test to see if works fine in a topic, reply, and a blog post to see if you get different results from each.
Try some troubleshooting to see if a plugin/theme functionality caused the issue.
If you acquired a ton of code snippets and placed it in your child theme check on that.
Troubleshooting
First of all thanks to the Bbpress forum Developers and supporters, i commend you all.
I want to ask if you have this feature in a plugin or if is tweak able..
Creating different groups with different Forums associated to each group respectively
For example
Group A can Post Topics and Reply in Forum A
Group B can Post Topics and Reply in Forum B
Group C can Post Topics and reply in Group C
BUT Group A can only reply in Forum B and C, they can’t post Topic in Forum B and C (They can only post Topic in their own associated Forum A)
Group B can only reply in Forum A and C, they cant post Topics in Forum A and C (They can only post in their own associated Forum B)
Group C can only reply in Forum A and B, they cant post Topics in Forum A and B (They can only post in their own associated Forum C)
AND
In the Topic Form with this short code [bbp-topic-form] let the drop down forum be only forums associated with the Group
example
If Group A member logs in to post via [bbp-topic-form] page, he will see only Forum A at the select Forum option,
(he will only see drop down of forums associated with his group, or both Sub Forums)
because I wont display the Full forum index on the site, i will only display Recent Topics, Recent comments, etc then with handle of ‘Start a topic’ with this form [bbp-topic-form]
Thanks…
I am migrating a forum database from the latest version of SMF to the latest version of bbPress. In SMF, many posts had multiple line-breaks in between sentences, paragraphs, images, videos, etc. It appears that WordPress, and bbPress, strip out multiple line breaks and limit them to a single line break (probably to prevent people from creating giant vertical gaps for no reason that other users have to scroll through). The way that bbPress deals with line-breaks from the SMF database migration was not very clean. It was mostly just random blocks of text and sentences without line breaks in between paragraphs that existed in SMF. There were PRE tags added in sometimes, and seemingly inconsistent P tags as well. BR tags appear to have been converted into empty TT tags. I was able to correct some of these formatting issues by tweaking lots of CSS (and a little JavaScript) in the default bbPress template. At the same time, I have also tested how line-breaks work separate from the migrated database and it appears that this maximum-of-one-line-break philosophy is on purpose. I see where that’s coming from, but I want to allow it anyways.
I have read of methods where admins (and/or other users) can manually type in br tags as html with non-breaking spaces in between them as a hacky method of moving down three or four lines for whatever reason. I don’t want to have to train users how to do something that should be as simple as press enter like in any text editor.
How can I simply achieve this in bbPress’s default comment forms? I don’t want users to have to type in…
<br /> <br />
…when they can simply just press enter twice in the textarea input.
I noticed something interesting, there is no problem when I log out using the BuddyPress widget.
Do you have a multisite installation?
No.
Is WordPress installed in a sub-folder?
No.
What is the url you get when you try to logout?
With the WordPress toolbar: http://original-beast.revhost.fr/wp-login.php?action=logout&_wpnonce=323d408059&redirect_to=http%3A%2F%2Foriginal-beast.revhost.fr%2F%3Floggedout%3Dtrue
With the BuddyPress widget: http://original-beast.revhost.fr/wp-login.php?action=logout&redirect_to=http%3A%2F%2Foriginal-beast.revhost.fr%2F&_wpnonce=323d408059
What areas did you try to logout from? The WordPress Toolbar, bbPress login widget, something else?
WordPress toolbar.
Did this issue occur when you immediately activated bbPress? Or did the issue occur after a certain upgrade?
Only when bbPress is activated.
Did you have any cache plugins activated? Have you tried flushing the cache? If it is deactivated reactivate the plugin and flush the cache.
I don’t have any cache plugin.
Anything that can cache activated on your site, server cache, cloudflare, object cache, opcode caching?
I don’t have that.
What hosting provider do you have?
Revolta Hosting
Try as much of the basic troubleshooting steps as you can, also try some of the additional solutions listed.
Some users have a plugin issue with this, while others it may be a theme, or it could be resolved using the repair tools.
THere is a guide linked in here about fixing some possible 404 errors too.
Troubleshooting
Yes, it is PHP code mostly so that would go into a child themes functions.php file or into a plugin that can hold code snippets like functionality.
For any CSS listed you put that into your child themes style.css file or any other custom css plugin you may have.
The widget doesn’t really work by days. It displayed the recently published topics by default. If a topic is published twenty days ago and none were published until one was five minutes ago, those two topics are next to each other in the widget listing.
You can change it to display topics that have been posted last though.
To style the widget you can use the class .widget_display_topics
THen you could do something like this.
.widget_display_topics
.widget_display_topics li
.widget_display_topics a
or add whatever additional classes are in the source code.
Hi
which file shall I add those codex so future upgrade won;t cause any issues
theme’s functions.php file?
Toward the bottom of #24 it mentions that icon fonts can work too.
Layout and functionality – Examples you can use
Not my forum.
I think your theme author pretty much just took this and fused it with their theme.
https://github.com/syamilmj/Supportte
This theme (supportte) is really intended to be used as a theme for Envato authors that want a support forum also for their product.
The verification dialogue is there because the Aqua Verifier plugin is required for some instances of your bbPress forums. The plugin is to restrict access to only users who bought a product from you (best if you are an Envato theme author) and they need to input the purchase code of the product they purchased (from Envato) to have access to the forums.
https://github.com/syamilmj/Aqua-Verifier
There is no setting in bbPress that can modify this like I said, it is all in your theme and the Aqua Verifier plugin is required.
Link your theme author to this topic if you need to.
Hi, I’m unsing that patch in a couple of sites, and it seems to work. Where do you think there is a problem? In my blogs I’ve just added a filter which replaces the moderation key used by bbpress (the variable $blacklist in the code which initially contains the moderation keys of WordPress).
Bye, Stefano.
Yes great find, thank you Robkk,
Now you can also do this, ..and make the pagination an unordered list like it should be by the default. 🙂
function ntwb_bbpress_custom_pagination( $args ) {
$args['type'] = 'list';
$args['prev_text'] = 'previous';
$args['next_text'] = 'next';
return $args;
}
add_filter( 'bbp_topic_pagination', 'ntwb_bbpress_custom_pagination' );
WP Codex: all those args should probably work now.
https://codex.wordpress.org/Function_Reference/paginate_links
Wait, scrap that. I’d copied the code from the email alert, not the forum. Guess it picked up incorrect syntax this way. Copied from the forum and it works a treat.
Thank you!
Hi Rob,
Thanks for this. Unfortunately if I add this to my functions.php Dreamweaver tells me there is a syntax error on lines 21 to 22 (which is the second and third lines in your code), and I don’t know php well enough to work out what’s wrong. My complete functions.php file, with your code, is this:
<?php
add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' );
function load_dashicons_front_end() {
wp_enqueue_style( 'dashicons' );
}
function bp_keep_user_private( $user_login, $user ) {
global $wpdb;
if( 'demo' === $user->user_login ) {
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_status = 2 WHERE ID = %d", $user->ID ) );
}
}
add_action( 'wp_login', 'bp_keep_user_private', 10, 2 );
add_filter('bbp_before_list_forums_parse_args', 'ntwb_bbpress_list_forums' );
function ntwb_bbpress_list_forums() {
$args['show_topic_count'] = false;
$args['show_reply_count'] = false;
return $args;
}
I think this should do it. If it does not change the word before in the filter to after.
add_filter('bbp_before_list_forums_parse_args', 'ntwb_bbpress_list_forums' );
function ntwb_bbpress_list_forums() {
$args['show_topic_count'] = false;
$args['show_reply_count'] = false;
return $args;
}
This is strange..
Why is my filter not working. When I look at my screenshot you can see that this array has an apply_filter() function before the variable/array goes through the paginate_links().
This filter I should use, I expect if I want to make any changes to the array before it gets pulled into the paginate_links() function – right?

So I created this add_filter function to test if I can change the <– arrow –> symbols. But for some reason no success at all.
function xx_my_stuff( $bbp_topic_pagination ) {
$bbp_topic_pagination = array(
'prev_text' => 'test',
'next_text' => 'test',
);
return $bbp_topic_pagination;
}
add_filter( 'bbp_topic_pagination', 'xx_my_stuff' );
use this code for a bbpress.php file if you already created one. It is basically the full width template already in your theme. .
Getting Started in Modifying the Main bbPress Template
<?php
/**
* The main template file for bbPress.
*
* @package Quark
* @since Quark 1.0
*/
get_header(); ?>
<div id="primary" class="site-content row" role="main">
<div class="col grid_12_of_12">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
<?php endif; // end have_posts() check ?>
</div> <!-- /.col.grid_12_of_12 -->
</div><!-- /#primary.site-content.row -->
<?php get_footer(); ?>
Thanks so much for responding and providing this code. It doesn’t quite do it in my case, as it allows users to choose to post to categories as well as forums, and I’d like to force them to choose a forum.
Yes, there is a filter.
function bbp_get_forum_post_type_supports() {
return apply_filters( 'bbp_get_forum_post_type_supports', array(
'title',
'editor',
'revisions'
) );
}