Thank you for your reply @maxlevel
I did exactly the same. I’m not sure why it is not working. It may is related to my theme. I’m using Astra theme. I guess you used Hello them, which is for Elementor.
I hope there is a possible solution since I eager to use bbpress rather than other forum plugins.
I currently have a bbpress folder in my theme which contains all the theme of my forum. I have a page archive-forum.php which displays the forum page and a page content-single-forum.php which displays the topics. I would like to know how to create a different display for a forum. I would like to display the first forum with a content-single-forum-slug.php and the other forums with content-single-forum.php. I have tried all : content-single-forum-slug.php, single-forum-slug.php, content-single-slug.php, single-slug.php. I didn’t succeed so I think it’s not possible.
I have the exact same problem with Astra theme. It is very strange that Elementor and bbpress, two well-known plugins, can’t be integrated after these years. I hope there is a solution and also a working tutorial. There are many tutorials and plugins to connect buddypress and Elementor, but there is no even a single tutorial for bbpress and Elementor !
@maxlevel Element Pack is useless either. It is not clear how it works and its functionality is just to create and insert shortcode which you can do it by shortcodes provided by bbpress directly.
I search a whole week and didn’t find any solution. Did you find any possible workaround to solve this issue?
Thanks
Hello Robin,
Thanks for the tip. I checked section 3 of the documentation you suggested. I’ve found the loop-single-reply.php in my theme. I can certainly insert similar file in the child theme.
Now, thought I get the “what” of your answer, the “How” still eludes me. I’ve been staring at that file for an hour, and I’ve got no clue as to where to place the cursor and what to write if you showed me where to place that cursor in the file.
The code pasted above in my original post was copied and pasted as is in my Child Theme’s function.php, hoping that it would at least replace actual replies with the generic statement, which it did.
Will you be so kind as to look at the loop-single-reply.php file below and instruct me how to change the file so that I get the intend result across the forum (for anonymous users, removing/hiding all replies except the first one + original post, and with the 1st reply showing “generic statement + Login | Register” urls)?
<?php
/**
* Replies Loop - Single Reply
*
* @package bbPress
* @subpackage Theme
*/
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;
?>
<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
<div class="bbp-meta">
<span class="bbp-reply-post-date"><?php bbp_reply_post_date(); ?></span>
<?php if ( bbp_is_single_user_replies() ) : ?>
<span class="bbp-header">
<?php esc_html_e( 'in reply to: ', 'bbpress' ); ?>
<a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( bbp_get_reply_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a>
</span>
<?php endif; ?>
<a href="<?php bbp_reply_url(); ?>" class="bbp-reply-permalink">#<?php bbp_reply_id(); ?></a>
<?php do_action( 'bbp_theme_before_reply_admin_links' ); ?>
<?php bbp_reply_admin_links(); ?>
<?php do_action( 'bbp_theme_after_reply_admin_links' ); ?>
</div><!-- .bbp-meta -->
</div><!-- #post-<?php bbp_reply_id(); ?> -->
<div <?php bbp_reply_class(); ?>>
<div class="bbp-reply-author">
<?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
<?php bbp_reply_author_link( array( 'show_role' => true ) ); ?>
<?php if ( current_user_can( 'moderate', bbp_get_reply_id() ) ) : ?>
<?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>
<div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>
<?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?>
<?php endif; ?>
<?php do_action( 'bbp_theme_after_reply_author_details' ); ?>
</div><!-- .bbp-reply-author -->
<div class="bbp-reply-content">
<?php do_action( 'bbp_theme_before_reply_content' ); ?>
<?php bbp_reply_content(); ?>
<?php do_action( 'bbp_theme_after_reply_content' ); ?>
</div><!-- .bbp-reply-content -->
</div><!-- .reply -->
On a separate note, have you developed any BBpress plugin having an upload function not restricted to the media library / where files are retrieved from the user’s local machines directly?
Thanks in advance for your continued support.
H
HTTP status code received for the reference page is 404 and not 200. That will be considered bad for SEO as it is giving 404 response for page which has content to display. You can check the console also too see the status code
the problem is that you are changing the actual content box, so it will still display 20 boxes with author details and only blank the boxes.
you basically need to alter the bbpress template loop-single-reply.php to achieve what you want
see
Step by step guide to setting up a bbPress forum – part 3
section 3
if you mean you are getting 404 to https://bbpress.org/forums/page/2/ , the this is working fine as far as I can see
Getting 404 response while navigating between forum archive pages even though content are displayed. Issue is there in BBPress website as well. Please check the response for the https://bbpress.org/forums/page/2/ for reference.

Dear bbPress-ers!
Hello. I’m Herman.
I will greatly appreciate your assistance with a couple of problems with my forum I’ve been trying to fix for a couple of days now with no solution.
I wanted to display the message “Replies not viewable to non-members” to anonymous/not-logged-in users browsing my forum. This message replaces all actual replies with the generic one above. I was able to achieve this with the code below found on this page Dezzain website. The problem though is that this message shows up everywhere a reply is posted. So if there are 20 replies, there will be 20 generic messages.
So my request for help #1: I would like the 1 reply ONLY to display the generic message, and the other replies hidden. Any chance you can help me with it please?
#2, I would like to include a link to register/login in that generic reply. I am not too familiar with php. Can anyone rewrite the message below so that it also has a url portion for “Login here” | Register”?
Thanks so very much in advance.
bb_auth_reply_view(
$reply_id
) {
$reply_id
= bbp_get_reply_id(
$reply_id
);
// Check if password is required
if
( post_password_required(
$reply_id
) )
return
get_the_password_form();
$content
= get_post_field(
'post_content'
,
$reply_id
);
// first topic reply shouldn't be hiding
$rep_position
= bbp_get_reply_position(
$reply_id
);
// if user is not logged in and not the first post topic
if
( !is_user_logged_in() &&
$rep_position
> 1 ) {
return
"Replies only viewable for logged in users"
;
}
else
{
// return normal
return
$content
;
}
}
add_filter(
'bbp_get_reply_content'
,
'bb_auth_reply_view'
);
In the bbpress settings the option “Edit Lock” could not be set to 0 to allow allways edit the post! If you set it to 0, the default 5 minutes come back again!
Even if i set it to 0 in the database, it will be changed to 5 if you save the settings again!
Hi friends. I greet you from Uruguay. I am new to bbPress, I am setting up a site with Elementor’s HELLO theme and I am in need of improving the Topic and Answers editor, that is, giving the user more options such as a button with icons, a button to insert YouTube videos, etc … do you have any suggestions on this?
Thank you!!
Hi i was going to use bbpress on my site https://yourwp.site
But the layout doesn’t look good on my theme.
There is some place with tips and/or code snippets to improve it?
Thanks Robin!
And here for the record the full code i use:
add_filter('bbp_get_breadcrumb', 'bbpress_filter_breadcrumbs', 10, 4);
function bbpress_filter_breadcrumbs ($trail, $crumbs, $r, $args)
{
return '<div class="bbp-breadcrumbs">' . $trail . '</div>';
}
Hi Robin, when you are mentioning the above code is use by bbpress, is it mean that it will not apply exactly to buddyboss platform plugin?
Greetings,
I would like to ask you what is the best way to change the bbpress role names. For example Keymaster to Support Team.
I can’t find the way to do it, and some of the codes I found on the internet are old or I’m afraid they might break my site.
Thanks.
Greetings.
I would like to know how I can hide the participant role from bbpress comments, since I would like to show only the administrator or moderator roles.
I have searched the internet but I would like to ask you what is the best way to do it.
Farewell.
this is the code bbpress uses
$topics_query = array(
// What and how
'post_type' => bbp_get_topic_post_type(),
'post_status' => bbp_get_public_topic_statuses(),
'post_parent' => $settings['parent_forum'],
'posts_per_page' => (int) $settings['max_shown'],
'meta_query' => array( array(
'key' => '_bbp_reply_count',
'type' => 'NUMERIC'
) ),
// Ordering
'orderby' => 'meta_value_num',
'order' => 'DESC',
// Performance
'ignore_sticky_posts' => true,
'no_found_rows' => true,
'update_post_term_cache' => false,
'update_post_meta_cache' => false
);
use if(strpos($wp->request, $bbpress_index) !== false)
if you also want to restrict all possible sub-urls!
bbpress private groups does a good job to hide forums, but that still doesn’t remove the index page. if anyone needs to restrict the index page for a complete private forum, here is the code:
add_action( 'wp', 'restrict_bbpress' );
function restrict_bbpress()
{
global $wp;
global $wp_query;
$bbpress_index = get_option ('_bbp_root_slug');
if ($wp->request == $bbpress_index)
{
$user = get_userdata(get_current_user_id());
// Example for a user role member
if (! is_user_logged_in() ||
! in_array( 'member', (array) $user->roles ))
{
$wp_query->set_404();
status_header( 404 );
}
}
}
I have been scheduling posts for a while now and everything works fine EXCEPT that images included in the posts seem to disappear after a while. I am not sure why.
They will show as an attached image in addition to the embedded image, but I don’t need them both. If I remove the attached image, it also removes the embedded one.
What is the simplest way to have an image embedded in a scheduled post when I have to create those posts in the backend using the WP editor (instead of the forum itself)?
Here is an example of a simple post that I schedule every month and you can see the image will be different every month.
What are you working on (in August 2021)?
I currently have WP 5.8, bbpress 2.6.6, bbp style pack 4.8.9, bbPress Multi Image Uploader 1.0.6, and using the Classic editor in WP.
if forums are private then bbpress search should only show results to logged in users
I also have an account as a user and I unsubscribed from everything just recently. I have not received any communications from the system since Friday. We are just running GD bbPress Attachments as an additional plugin to bbpress.
The users that I am seeming have issues seem to be around a particular topic. Is there a place I can go look in the database and see what the user is subscribed to? When I login is as them, I unsubscribe from everything that was there. I also went in and turned off all their email notifications. They still received notifications the last few days. Must be something I am missing.
Any ideas is appreciated.
I wanted to style the body tag too, in the subpages like topic or forum the css class is in the body class section. the #bbpress-forums is deeper inside the page.
Are you running any other bbpress related plugins?