That’s good, glad that worked out for you.
You could also put it in bbpress.php in the plugin itself, then when the fix comes out and the plugin is updated it would get rid of it.
For others looking for a solution, I tried to edit my post above but couldn’t, when I mentioned functions.php I mean the functions.php file that is within your current active WordPress theme.
the error is when the βnonceβ does not validate.
https://codex.wordpress.org/WordPress_Nonces
I suppose I could try using translation to make it a friendly message but would rather try and fix it.
function my_nonce_message ($translation) {
if ($translation === 'Are you sure you want to do this?') {
return 'Please try again.';
}
return $translation;
}
add_filter('gettext', 'my_nonce_message');
the error is when the ‘nonce’ does not validate.
https://codex.wordpress.org/WordPress_Nonces
not sure what you can do about it, not my speciality π
@jjj Moving the ‘no-js’ class to the bottom of the ‘bbp_body_class’ function does not fix, as the quicktags toolbar is still not shown.
the following filter fixes, but I’m not entirely sure what the introduction of then ‘no-js’ class to the function is doing, but I can’t see that the patch has any unintended consequences as it only runs on the relevant pages.
add_filter ('bbp_body_class', 'rew_unset_no_js') ;
function rew_unset_no_js($classes) {
if (in_array ('single-forum', $classes) || in_array ('single-topic', $classes)) {
if (($key = array_search('no-js', $classes)) !== false) {
unset($classes[$key]);
}
}
return $classes ;
}
or if that doesn’t work
add_filter ('bbp_body_class', 'rew_unset_no_js') ;
function rew_unset_no_js($classes) {
if (($key = array_search('no-js', $classes)) !== false) {
unset($classes[$key]);
}
return $classes ;
}
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
FOR THOSE USING BBP-STYLE-PACK – I’ll issue a revised version incorporating this shortly until fixed in bbpress.
Revisions are totally a WordPress thing. It’s weird, but sounds accurate.
Using Gravity Forms to create new topics & replies will bypass the “freshness” hooks that bbPress expects to run normally. This means that the “branch” of topics & forums in the “tree” of that submission won’t get walked up to the root, to tell that whole branch what its most recent content is.
Once you post something yourself normally, the tree gets walked and everything looks OK.
The function that would normally be called is bbp_update_topic(). It includes all of the extra meta data that needs to be added β including a call to bbp_update_topic_walker() that “walks” the branch in the tree.
Lastly, it refreshes the last_changed cache key in the bbpress_posts cache group. You could try busting that cache on your Gravity Forms submission (to see if that’s enough) but I have a feeling it won’t be, and you’ll need to find the best way to trigger the update.
Yeah, the BBPress release info, and BBPress itself seems to be the neglected son of WordPress.
Good day, just to let you know the blog link on the release info version goes to 404, when enter release info page.
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
Hi there,
I’m pretty new with wordpress and bbpress, and I can’t find the setting I need.
I want that new users automaticaly got the subscriber role on my site (done, general setting) and also the bbp_participant role.
How can I do that ? Thanks by advance.
Kind regards
yes it does make sense π
so this is just ‘registration’ and any new users you ‘register’ for ‘wordpress not forums’ will be known to you and presumably admins, so it probably does not matter that ‘all’ new registrations receive a ‘forum’ welcome, as they will all be forum users apart from any new admins you sign up, who can be told to ignore the email.
so I would suggest that you just use a WordPress registration welcome and tailor it for your forum users.
Does that make sense, or have I misunderstood something ?
ok, so how you are doing those differently from WordPress?
bbpress simply users WordPress registration, so any WordPress registration plugin will work.
just google ‘wordpress registration plugins’
Hi,
I am trying to customize the registration email for BBpress. Is there an easy way to do this?
Looking through this forum, I understand the email is generate by the WordPress Core.
Is there a plugin? I’d just like to redirect people to the actual forums, and not our site’s homepage.
TIA–
HOW TO REDIRECT USERS, WORDPRESS BUDDYPRESS HIDE PAGE FROM NON-MEMBERS, NON-LOGGEDIN USERS..
How to hiding / redirect users page from non logged in users ?
Here the simple step to protect your WordPress BuddyPress member only pages. Add this simple snippet into your theme’s ‘functions.php’ file. That’s it..
The below snippet sample will redirect the visitor if the visitor is not logged in & trying to visit the sensitive BuddyPress pages.
Will redirect non-logged-in users trying to access private content to your front page or home page
Ref: https://vvcares.com/blog/post/wordpress-buddypress-hide-page-from-non-members
best I can offer is
bbp style pack
once activated go to
dashboard>settings>unread posts
dev work is ongoing in bbpress – see
https://bbpress.trac.wordpress.org/report
but bbpress authors chose to release sparingly.
there are a good many additional plugins that do lots of things to add functionality to bbpress
ok, I cannot replicate – might be a multisite issue, might not.
all I can suggest further is the standard advice :
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
Then come back
This plugin still works
bbPress – Moderation Tools
on the ‘security settings’ – these are as set in
dashboard>settings>disucussion>comment moderation where you can increase the no. links allowed
Hi Robin,
thank you for your reply.
For your reference, wp-cli commands often (if not all) have default outputs and they do not need to be explicitly declared unless particular outputs are expected.
Here is a list of all post types available on my WordPress installation:
https://markuphero.com/share/5dn5FOkMzGNpG9R6Unbx
As you can see, I have a custom post type named ‘sfwd-lessons’ so if I run the command wp post list --post_type=sfwd-lessons I have all these custom posts which are listed with the default outputs:
https://markuphero.com/share/8Mbqbgujeaou2QH60l1k
But when i’m trying wp post list --post_type=topic the output is empty:
https://markuphero.com/share/3APucSjLM0IHRgLHIuVb
https://markuphero.com/share/V3pihOOXPNQWUx3Knzqd
Have you really tried it on your end?
Warm regards,
Ludovic
from your example, you haven’t said what you want the cli to output
eg
$ wp post list –post_type=topic –fields=post_title,post_status
or
$ wp post list –post_type=topic,post –format=ids
see examples in
wp post list
A.Participant
Hello there,
we’re a WordPress Multisite and recently updated bbpress from 2.5.12 to 2.6.6 and figured out that on a user profile page no subscribed forum are being listed anymore but this message: “Oh bother! No forums were found here.”
But the user indeed has at least one forum he subscribed to. Subscribed topics are working just fine.
We also deactivated / activated the plugin, run the database upgrades but still no forum could be found.
How can this problem being solved?
Yes, I would agree that you would need to create a link or Install WordPress setup in Magento as explained in the article: https://www.cloudways.com/blog/integrate-wordpress-blog-magento/
bbp style pack
once activated go to
dashboard>settings>bbp style pack>forum templates