Thank you Robin!!! Your remark: “Tick item 3 on the subscription emails tab”, fixed this issue for us too. I had yet to use this great tab before at all but the problem just appeared.
In our case, it was that the editor “link” button was unable to retain user entered hyperlinks. It’s fine online, but user entered links missing from all bbPress emails. During testing using only: WP 5.8.2, 2021 Theme (we use Kleo theme), and bbPress …it still had this issue. That seems to indicate a relationship between WP and BP.
I updated bbPress on 11/30/2021. WP update date unknown but not listed in the lasted 30 days of my backups, so it was earlier. The issue was first reported to me on 11/20, so this all points to a WP 5.8.2 change cause.
No related php error logs or jquery Migrate deprecation logs seen.
Hope this helps.
ok, thanks – I’ve just retested on my test site, and can see no issue.
I’ll have a think
ok, so I am wondering if something else is interfering.
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back
Yes, I just checked this again. When I’m sending test emails, I get correct messages with my templates.
great – thanks, just checking what was happening.
hmmm….. so presumably if you press the ‘send test message’ on the ‘subscription emails’ tab, this come through correctly -ie with your changes?
Sure Robin. I’m not sure if it’s wordpress default template, but I’ll show you what I receive (as a test user, not admin) and what I set up.
Here’s what I receive:
![Example](https://www.esperoart.com/wp-content/uploads/2021/12/example.png)
Here’s my template:
![Template](https://www.esperoart.com/wp-content/uploads/2021/12/template.png)
I also noticed that “Don’t show this message” (Oh bother! No forums were found here!) doesn’t work for me. I ticked it, but the message is still there. Is there a php snippet I could add to my Woody snippet plugin? Thank you.
find
wp-content/plugins/bbpress/templates/default/bbpress/feedback-no-access.php
transfer this to your pc and edit the text as desired
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/feedback-no-access.php
bbPress will now use this template instead of the original
untested, but of you add
<?php bbp_get_template_part( 'form', 'user-login' ); ?>
to the end of that form, it should also show a login
Hi,
I am using bbpress for my forums, and the issue I am facing is – When adding a reply to a topic, the newly added reply is not showing. It will get shown only after another reply is added(At that point, this newly added second reply is not showing.)
The topic updated time period and author info seem to be updated correctly. Also, the replies to a reply are also updated correctly.
Changing my forum theme to 2019 helps to get the latest reply.. but what change should I do to get it back with my theme?
Any help would be appreciated.
Just that one post, or do similar long posts get truncated? might be worth trying to create one as a test user and see
I appreciate your frustration, but not sure ‘fault’ is the correct word.
bbpress has changed something – but the ‘fix’ when it comes may not ‘fix’ you, as your site is adding a no-js class (from either the ‘Publisher’ theme or a plugin) which then isn’t overwritten as is normal practice by a test within your theme or the plugin.
you could try adding this to the custom css of your theme
.no-js {
display : inline !important
}
to override the bbpress setting
Untested, but find
wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php
transfer this to your pc and edit
change line 31
from
<?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
to
<?php if ( bbp_current_user_can_access_create_topic_form() && (bbp_get_forum_id() != '2927') ) : ?>
and save
where 2927 is the forum you don’t want to show the form for
then 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
If you want multiple forums, you could create and array and test against that
@oscowordpress1 – it does on my test site
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
it’s great that you have taken the time to understand the standard tests required, they do solve 80% of issues which is why we ask for them, we don’t do it to annoy you.
the issue may well be a 3 plugin combination thing – so bbpress in combination with another plugin and jetpack, which is why ideally you would carry out the tests.
Given that you cannot, then there are two elements to user access – the wordpress level and the bbpress level
eg ‘administrator’ for wordpress and ‘keymaster’ for bbpress.
I think you best bet would be to set up a user and work through the combinations to see what works and what doesn’t – eg does admin and participant work, but not subscriber and keymaster, does admin work with moderator etc etc. That would help decide what the override that is allowing ‘admins’ to see stuff is.
Then come back and report
My dashboard takes me here when I click for latest updates.
Releases
But that is not up to date, how do we know what is in an update before we install it?
Just to add some information – running the latest version of BBPress.
Hello,
does anyone know if I can get the latest reply ID from a topic with the topic id?
I already looked online, but haven’t really found a fitting function for this.
Something like bbp_get_latest_reply_by_topic_id($topic_id); would be perfect.
Thanks in advance.
Regards
Gerry Zeller
@johnjamesjacoby –
as far as I understand, the issue is detailed in changeset 7190 – yes?
so it is basically to hide the ‘generate passwword’ in form-user-passwords.php if the user’s browser does not support js or it is disabled.
If so, at the moment all bbpress pages end up with a no-js class as bbpress sets ‘no-js’ as the default, which means that the quicktags do not display on the topic and reply forms as they need js but the css thinks it is no-js, and the visual editor does not work for the same reasons.
At the moment you only test for js using the script technique in form-user-passwords.php viz
<script type="text/javascript">
document.body.className = document.body.className.replace( 'no-js', 'js' );
</script>
so I would suggest 1 of 2 approaches
1. putting this test in more generally so it runs on any bbpress page (as usefully suggested by @webcreations907) maybe by adding to the main function, or adding a filter in \includes\core\filters.php to run the script
so something like :
add_filter ('bbp_body_class' , bbp_test_js) ;
function bbp_test_js ($classes) {
?>
<script type="text/javascript">
document.body.className = document.body.className.replace( 'no-js', 'js' );
</script>
<?php
return $classes ;
}
so that others could disable it
2. changing the class to bbp-no-js should work, if you do this in the bbp_body_class function and the form-user-passwords.php and in css, then I can no reason why it would not work if that is the sole intention of this.
@robin-w if you remove the no-js
in php, then it doesn’t allow the reason for adding it which would be to test if the browser supports javascript/jquery.
Just an example
Say you have a slider(JS dependent) that you only want to show if the browser supports js, then adding .no-js .my-slider{display:none;}
would hide the slider if the browser didn’t support it, while if the browser supports JS then the no-js
would be removed by JS and the slider would be displayed. Because the only way the class was removed was with JS which would verify the browser supports JS.
So if you remove it with PHP then there is no test and the slider is shown regardless if the browser supports JS or not. Not sure what the percentage of browser users that have it disabled, sure it’s a very very small amount.
You can see that in theme TwentyTwentyOne in template-functions.php
the theme does it the same way I mentioned above in earlier post.
Just wanted to mention it, hopefully it gets updated shortly and a fix gets out for it.
ok, in my testing
working :
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = true;
$args['quicktags'] = false;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
not working
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = true;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
Can you please post the code snippet you are using to enable the visual editor?
In my testing, it is working OK using these snippets:
Enable Visual Editor
looks ok without testing – does it work ?
untested but
bbp_get_topic_subscription_link (array( 'object_id' => $topic_id) ))
Hello,
Is there a way I can edit the forums pages to include a banner BEFORE the topic? so for example, on my “latest topics” page I have an image before using shortcode [bbp-topic-index].
So I would like that same image to carry through at the top of my forum topics on:
http://www.mywebsite/forums/topic/topic-title
I understand I can achieve this by changing the topic category description to the banner and then using the BBP Style Pack plugin to set “show description” but this isnt an ideal solution as it only shows on the forum category list not on the actual posts…
Any ideas?
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back
A.Participant
Hi Robin,
We will do some further testing/troubleshooting. If something comes up I will let you know.
Thanks for your support!