The bbp-login shortcode page has a register button. That register button takes you to /wp-login instead of bbp-register
The bbp-register page has a button on the buttom to complete registration. But the button does not have enough padding on the bottom and is cut off on most browsers.
It may well be the address that bbpress is sending from.
this is typically noreply@ and if this email address does not exist then many email hosts will not permit its transit through the system.
either
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Subscription Emails
where you can amend the address and change the wording as well
or
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
add_filter('bbp_get_do_not_reply_address','my_bbp_no_reply_email');
function no_reply_email(){
$email = 'noreply@yourdomain.com'; // any email you want
return $email;
}
and change the address
For anyone with the same problem, this appears to be a bug in BBPress. The script that is meant to fire when someone clicks the “subscribe” button (engagements.js) is only enqueued for the forum and topic post-types. When a forum or topic is embedded on any other post-type, the script is not enqueued, and the button doesn’t do anything.
A quick fix is to add this to your functions.php file, to enqueue the script whenever a forum or topic is embedded via a bbp-single-topic / bbp-single-forum shortcode:
add_filter( ‘do_shortcode_tag’,’subscription_button_fix’,10,3);
function subscription_button_fix($output, $tag){
$arr = array(‘bbp-single-topic’, ‘bbp-single-forum’);
if(!in_array($tag, $arr)){
return $output;
}
bbp_enqueue_script( ‘bbpress-engagements’, ‘js/engagements.js’, array( ‘jquery’ ), true );
wp_localize_script( ‘bbpress-engagements’, ‘bbpEngagementJS’, array(
‘object_id’ => get_the_ID(),
‘bbp_ajaxurl’ => bbp_get_ajax_url(),
‘generic_ajax_error’ => esc_html__( ‘Something went wrong. Refresh your browser and try again.’, ‘bbpress’ ),
) );
return $output;
}
ok, is that from a shortcode, or how are you getting to that page?
Hello Robin,
you are right, it is a theme issue. When I switch to a default theme like twentytwenty, the submit button appears.
Now I edit my style.css file and tryed to get the style for the submit button in it. But I surely make mistakes here.
.button .bbp_user_edit_submit .button .submit .user-submit .bbp_user_edit_submit {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
This does not let the submit button appears 😉
What else can I do?
Thank you in advance,
Antonio
Hello. I created two forums and wants that theirs topics be presented on two different pages. I added the shortcode [bbp-topic-form forum_id=$forum_id] on both page referencing the forum_id which topics I want present on that page. At page1 I don’t have the problem, but on page2 I see the topics from both forums. The form for entering a new topic on page 2 is ok and regularly sorts topics into forum 2, but the display on the page shows posts from both forums.
Anyone can help? I think I believe that the solution is trivial, but I’ve been stuck with it for several days.
Version of bbPress is 2.6.9 . The project is still on localhost.
thank you
put this in the custom css part of the style pack plugin
#bbpress-forums .status-closed, #bbpress-forums .status-closed a {
background-color: transparent;
}
put this in the style pack custom css or your theme’s custom css
#bbpress-forums .status-closed, #bbpress-forums .status-closed a {
background-color: none !important;
}
Hi, I recently saw this topic and it helps me solve one problem.
I can finally use this CSS to disable the grey-out effect when the topic is closed:
#bbpress-forums .status-closed,
#bbpress-forums .status-closed a {
color: #000 !important;
}
From this previous topic also, CSS can do equally well to add [Closed] label beside the closed topic title in topic list page:
#bbpress-forums .status-closed > li.bbp-topic-title > a.bbp-topic-permalink:after {
content: "[Closed]";
text-shadow: 1px 1px 0 #ffffff;
color: #ff0000;
margin-right: 5px;
}
I wonder if we can use CSS (instead of PHP codes) to add another [Closed] label beside the topic title in single topic page. Any solution?
See https://paste.pics/N5WS0
Also, I’m still searching for ways to disable the defaulted pink font highlight when the topic is closed. Hope somebody can help.
See https://paste.pics/N8U5T
Regards.
Thanks for that – very useful.
Wordpress has a bewildering set of names including username, user display name and user nicename
As far as I can see, bbpress seems to be using the user database setting for user nicename.
So can you try adding this code
add_filter( 'manage_users_columns', 'rew_add_user_nicename', 20, 1);
add_filter( 'manage_users_custom_column','rew_add_user_row', 20, 3 );
function rew_add_user_nicename($columns) {
$new = array();
foreach($columns as $key => $title) {
$new[$key] = $title;
//add the 2 columns after the forum role column
if ($key=='bbp_user_role') {
$new['nicename'] = 'Nicename';
}
}
return $new;
}
function rew_add_user_row($retval = '', $column_name = '', $user_id = 0) {
if ($column_name == 'nicename') {
$user_info = get_userdata($user_id);
$user_nicename = $user_info->user_nicename;
$retval = '-->'.$user_nicename.'<--';
}
return $retval ;
}
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
This will add a column to the dashboard>users table to show you exactly what is set as the user nicename. I have enclosed it in arrows eg
–>name here<–
so you can see if there are leading or trailing spaces.
try adding that name to the moderators and see if that works?
Hi there
I’m still having this issue unfortunately.
I contacted ThemeMyLogin support and they sent me to this link:
https://wordpress.org/support/topic/error-a-variable-mismatch-has-been-detected-2/#new-topic-0
Adding the code snippet above isn’t resolving the issue.
Can you please advise.
Thanks
Thanks
Hi @robin-w,
Has this feature been changed/removed in your plugin?
I’ve just updated to the latest version and I can’t seem to find it.
I’ve just come across this same issue, where if I navigate to “View Latest Topics” (https://snipboard.io/wTzMvL.jpg)
it loads and reloads additional versions of the content infinitely until the browser runs out of ram.
https://homesteadacademy.com/forums/view/latest-topics/
I have tried the snippet you kindly provided in the “code snippet” plugin but no luck.
Any advice for me?
thanks for that, now totally understand.
Given that you have about 100 to do and they are in separate files, it would take longer to write the code, transfer the files and then run the code through them, than to just manually copy/paste into topics.
sorry, I know it is boring, but it is probably the best way.
do 10 in the morning and 10 in the evening each day, and in a week it’ll be done
I have a memberpress/bbPress/Wordpress site with about 100 members. I was trying to make a user a moderator of a particular forum. I was able to change her role to a moderator by editing her user profile OK. But when I add her username to the moderator field within the edit forum screen it spins on update but never registers the username as moderator.
I then notice the username in question is of the format ‘firstname dot space secondname’
I didn’t think WP allowed usernames with spaces or dots (periods) but apparently, it does and the username is created when they register via a Memberpress form. By default, they are made forum participants upon registering. I want to upgrade this user to be a moderator of a specific forum.
The user HAS managed to post a topic in a forum already as a participant.
So i’m assuming that the problem lies in bbPress NOT allowing spaces in usernames when you try to assign them to be a moderator of a specific forum?
I was reading a 15 year old thread here where @howtogeek provides some plugin code. I tried saving this to a zipped .php file and adding it as a plugin but Wordfence said that wasn’t a good idea, so I’m not confident using 15-year old code is such a good workaround.
There was another old thread from 8yrs here ago where @joop.stringer suggests tweaking permalinks but I can’t seem to figure that out either.
I’ve come across this which will maybe help me prevent this from happening again.
But can anyone confirm that the space in the username IS the reason I can’t assign a moderator
role user to be the moderator of a specific forum, and if there is any more recent knowledge on this issue? i.e. does bbPress actually allow spaces in usernames now?
Thanks, Robin for the plugin suggestion, but it’s more of the core of bbPress which seems quite outdated and a little messy with code. Plus, doing template overrides, there are things which hoped would be there that I can override. Some styles are using!important, some styles are reused in ways they shouldn’t be, so I had to get creative with overrides…I had to use javascript to remove/change/add classes to select elements: ie buttons.
Then, on the bbpress plugin page at .org, this shows up as a notice:
This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Time to revamp this plugin and bring the coding and features up-to-date–plus capabilities. Even here in this forum, the font size is just 12 px. Time to move it up a bit, especially for accessibility 🙂
Here we go:
function rew_add_close_to_topics () {
if ( bbp_is_topic_closed()) {
echo '<span style="color:red">[Closed]</span> ' ;
}
}
add_action ('bbp_theme_before_topic_title' , 'rew_add_close_to_topics', 15);
You’re right. This code does not work in my theme. Well, think we just put this part on hold first.
Next, I want to change font label [Closed] to RED colour. Can we do that?
Regards.
Hi, I am glad the code helped you.
To attach label to the topic title on the topic page, you can try @robin ‘s code with a minor change. (below) This may not work in all themes since the title is coming from a template file.
function rew_add_close_to_the_topics ($title) {
if ( bbp_is_topic_closed()) {
$closed = '[Closed]' ;
$sep = ' ' ;
$position = 'after' ;
if (($position == 'before') && !str_contains($title, $closed)) $title = $closed.$sep.$title ;
if (($position =='after') && !str_contains($title, $closed)) $title = $title.$sep.$closed ;
}
return $title ;
}
add_filter ('single_post_title' , 'rew_add_close_to_the_topics');
sorry, that reads as being rude, it is not intended to be – written to try and be helpful whilst buried in code 🙂
Please do report back, I’ll try and make a note here when I release it, but probably a week or so’s time .
it would, but I am just a man in his kitchen, I’m not a bbpress author.
Style pack is much more than just styling (it may have been mostly that when you tried it), and you don’t need to use the styling bits to take advantage of the functionality.
Anyway it’s free and what I write, so that’s where the blocks will be.
If you just want to use blocks in the custom post types, then just add this filter
add_filter ('bbp_register_forum_post_type', 'rew_gutenberg_editor') ;
add_filter ('bbp_register_topic_post_type', 'rew_gutenberg_editor') ;
add_filter ('bbp_register_reply_post_type', 'rew_gutenberg_editor') ;
function rew_gutenberg_editor ($settings) {
$settings['show_in_rest'] = true ;
return $settings ;
}
If you want to impose blocks on your users in topics and replies, then use the ‘blocks everywhere’ plugin.
If you want block widgets, that is what will be in style pack when I have finished writing it.
If you want bbpress in FSE themes, that will also be in style pack in due course
instructions for them
find
wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php
transfer this to your pc and edit
go to line 248 and change
? esc_html_e( 'You cannot create new topics.', 'bbpress' )
to
? esc_html_e( '', 'bbpress' )
and save
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
Then transfer the file you saved 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/form-topic.php
bbPress will now use this template instead of the original
Hi, thanks a lot! … feel amazed to see how coding can do the changes to our forum layout.
This code just works fine in topic listing page.
For topic page, it would be perfect if user can still see the [Closed] label beside the topic title.
See https://paste.pics/N5WS0
Regards.
You can create a new page and put [bbp-forum-index] in it. This way, it will be your forum root page and you can edit this page.
Here is the related documentation: 3. Creating a forum page -> Method 2
Step by step guide to setting up a bbPress forum – Part 1
Just installed the plugin and it seems to have some issues with order tracking for woocommerce plugin since it is showing a shortcode of this last plugin on the forums root page (https://nextlevelgamingstore.com/forums/), and Im not even being able to edit this page or something. How can I fix that or just edit the forums root page? Also I would like to have the forums root in a page so I can edit it.
No, you can not use the same snippet, since these are different hooks. You can use:
function rew_add_close_to_topics () {
if ( bbp_is_topic_closed()) {
echo '[Closed] ' ;
}
}
add_action ('bbp_theme_before_topic_title' , 'rew_add_close_to_topics', 15);