no idea if this will help
How to Use bbPress addon
can you ask this is the elementor support as well – seems like a lot of people get hassle with elementor and bbpress eg
Hello theme by Elementor
if you want anyone to be able to register for the forums, yes you do, and if you do then yes anyone can register, wordpress and bbpress use the same userdatabase.
Otherwise, you are looking at a manual registration system, which is quite easy to do, just use one of the many form plugins available – contact form 7 (and add the flamingo plugin) is very popular, and add users.
or if it is bots registering, use one of the many anti bot plugins available eg captcha to prevent bots registering.
Does bbPress provide any way for admins to adjust a user’s subscriptions?
I can do it by “switching to” that user, of course. But I’m just curious if there’s some way I’ve missed to do this without switching back and forth.
so do you know what files in bbpress you have changed ?
bbpress will continue to have new releases, and this will be an ongoing problem for you.
There are lots of ways to keep changes to bbpress outside of the core files.
Hi, since some “bigger” modifications in our bbpress page im not able to run the complete security update.
Can somebody let me know if its possible only to update the effected files to close the security issue?
I tried to find out but until now i dont find an answer here.
Hi Mike, thank you for your quick reply! I’m always a little concerned about messing with plugin files, so I will need to decide whether to try that or try the plugin that’s recommended. I do appreciate the availability of really useful plugins like bbPress. Thanks.
@2cats, just out of curiosity is it the mechanics of putting in the patch that you’re uncomfortable with. Or it it the fact that you (or your clients) would then have to deal with the patched code when updates happen.
Also I’m assuming that you’re aware of the plug-in mentioned above that fixes some of the current bbPress bugs.
Clearly the bbPress developers (who donate their time) can only do so much. But I too am curious how the priorities are set. BuddyPress recently ran a survey asking users about their priorities. I wonder if there is something like this in the works for bbPress. Sometimes I also wonder about the feasibility of a group of users with specific needs *hiring* a bbPress developer to make certain fixes and integrate them into the build. But these are just random thoughts of someone who doesn’t really know much about how these things work.
topics can be ‘sticky’ or ‘super-sticky’
sticky posts go at the top of their forum
Super sticky posts go at the top of every forum
sounds like your topics are becoming super sticky
you can look at these in then backend
dashboard>topics>edit topics and select topic > topic attributes on top right hand side> Type
they can also be set in front end
where in the topic they show in admin as
stick (to front)
if you click the ‘stick’ then it is sticky, if you click the ‘(to front)’ it becomes super-sticky which is very easy to do by mistake.
on relationships, bbpress uses wordpress ‘post-parent’
so a reply has a post parent of the topic it belongs to
a topic has a post parent of the forum it belongs to
and a forum has a post parent of a forum if it is a sub forum, or a category if it belongs to a category
These relationships are also stored in the post_meta table
details on ‘children’ are not kept – for instance displaying topics is done by a function called bbp_has_topics which selects topics where the post_parent is the forum concerned. bbp_has_relies has a similar serach for replies where the post_parent is the topic concerned.
I’m not exactly sure how to describe this problem. But I’ve seen this happen twice now. The situation is that there are several forums, and each one has a “sticky” post at the top, describing the guidelines for the particular forum.
At some point, the post at the top of one forum is duplicated on all the forums. So forums B, C, D, … all have the “forum A Guideline” post at the top of them (in addition to their own guideline post).
I’m not very good with images, but I hope this kind of shows what’s happening:
https://num9.com/wp-content/uploads/2020/08/foo.jpeg
FWIW, when I look in the database. The post in question shows its parent as the proper forum.
On a related note, I’d love to know how bbPress figures out the relationship between forums, topics, and posts. I see that each element has a pointer to its parent. But I haven’t been able to figure out where the pointers to a forum or post’s children are.
The only documentation I was able to find on the database is:
Stored Database Data
Could somebody point me to further documentation? Or let me know if I just need to read the code (specific pointers would be appreciated).
no sorry not a function in bbpress or style pack
I edited the php file indicated in the trac ticket. On my setup this is:
public_html/wp-content/plugins/bbpress/includes/replies/functions.php
This is a very simple change to one line, but it does require editing the bbPress code, and (AFAIK) can’t be done in a child theme. So you would have to keep this in mind every time you update bbPress.
If you’re not familiar with doing this type of thing, then you probably want to either:
(1) Consider using by bbp-style-pack by @robin-w, which I *believe* fixes this. Robin can answer questions about that.
(2) Just wait for the bug to get fixed. I don’t really know how the priorities for bugs are set, but my impression is that this one could take a while. I might be wrong.
Got it. Thanks!
Just for those who are curios, you need to edit your php file located under site/wp-content/plugins/bbpress/includes/replies/functions.php
This is a possible fix for this:
add_filter(
‘elementor_pro/utils/get_public_post_types’,
function($post_types) {
$post_types[‘forum’] = ‘Forum’;
$post_types[‘topic’] = ‘Topic’;
$post_types[‘reply’] = ‘Reply’;
return $post_types;
}
);
Source:
https://elementor.com/blog/introducing-hello-theme/#comment-58192
Sadly this could not be the perfect solution, specially if you are using bbpress without buddypress, it seems that you could get 404 pages on user profiles.
Right now I’m trying to use a combination of bbpress + buddypress, and for me the user profile (buddypress) is working fine.
So I have a really weird issue…some users who are assigned to the associated courses for the LearnDash bbPress integration are getting the message that they are not enrolled in the associated courses. The weirder part is a link to one topic is now linking to a separate topic.
Astra Theme
WP Version: 5.4.2
bbPress Version: 2.6.5
LearnDash LMS – bbPress Integration Version: 2.1.1
Any suggestions for a fix?
Hi @fl3xtra,
If I understand correctly the problem you’re having, it’s a bug:
https://bbpress.trac.wordpress.org/ticket/3356
I’ve tried this patch on one of my sites and it appears to work. Bear in mind that I am NOT an expert on this.
Here’s the thread where I found out about the patch:
Several questions regarding freshness
My plugin GD Forum Notices Pro allows you to define rich messages to display anywhere you want in the forums, with rules to define how the messages/notices will look like and the rules for display to different user roles. You can also schedule date range to display message.
No coding needed, all done via the admin interface. Check it out here: https://plugins.dev4press.com/gd-forum-notices-for-bbpress/
Regards,
Milan
In any case thanks for your time!
Hope developers will fix this bug soon.
Currently, this bug can be fixed using the code below.
Also, Replies box should be moved below Custom Fields
/* Fix BBpress 2.6 bug with Custom Fields */
if( function_exists( 'bbp_get_version' ) && version_compare( bbp_get_version(), '2.5' ) > 0 ) {
add_action( 'wp_ajax_add-reply', 'wp_ajax_add_fix_bbpress_26');
function wp_ajax_add_fix_bbpress_26() {
// print_error_log( $_POST );
// $_POST['action'] = 'add-meta';
wp_ajax_add_meta();
}
add_action( 'wp_ajax_delete-reply', 'wp_ajax_delete_fix_bbpress_26');
function wp_ajax_delete_fix_bbpress_26() {
// print_error_log( $_POST );
wp_ajax_delete_meta();
}
add_action( 'add_meta_boxes', 'bbpress_26_fix_add_meta_boxes', 25 );
function bbpress_26_fix_add_meta_boxes() {
do_action( 'bbp_topic_attributes_metabox' );
}
}
Is there any functionality built into bbPress, or has someone adapted their install, to somehow force closed threads to be served as static (cached) pages to both non-logged-in and logged-in users? This seems like it would be the most compelling reason to auto-close stale threads, and keep database queries to a minimum.
Hi @renatoscarvalho,
I’m also trying to understand what the current situation is with this problem. The most comprehensive post I could find is somewhat old:
Threaded Replies Not Working
I’ve just posted a reply at the bottom of that one in hopes of getting some clarification.
if you have not got it already, you might also consider installing
bbPress – Moderation Tools
whilst it is old it still works, and tells the user that their post is being held, so that they don’t keep trying to repost it
Hi Chuckie,
yes, I was using your idea already, but with 8 forums and over 20 sub forums – it was not ideal therefore I wanted the create topic – like it is and should be in BBpress by default
We are evaluating a move to an enterprise hosting environment at Pagely and are encountering some issues with bbPress performance there. We are currently on an E1 with 16 PHP workers at Kinsta, and the action of posting to the forums (our slowest action) takes 8-15 seconds depending on server load.
At Pagely, the post query takes at least 30 seconds and the browser usually times out (60 sec) before everything finishes up and returns the topic page to the user.
We’ve been analyzing with Pagely engineers and have learned this:
Because Pagely uses an RDS, and bbPress uses a whole series of queries that require multiple calls and answers to/from the RDS, communications latency is a huge problem that makes our bbPress install non-functional in this environment. In contrast to Kinsta, where the database is local and not remote.
Question:
Anyone have guidance on getting a large bbPress forum (100k+ topics, 1M+ replies) to run fast in an RDS environment?