The steps are following,
- Step 1: Costumer creates an appointment
- Step 2: wordpres checks if the customer is having an account if not it creates one
- Step 3: When an account is created it gets the wordpress role “Costumer”
- Step 4: the by u provided app gives the costumer the forum role “Costumer”
- Step 5: Website admin checks the appointment and creates an Forum topic what is only visable by costumers role of the forum
- Step 6: Website admin makes the Costumer owner of the topic so only costumer and admin can view it
`
Only step 4 is not woring, the users are still in the bbpress standard role of the forum, they are not promoted to the “Costumers” group
This is my first time to create a plugin by myself. I use this tutorial to create the plugin. Then, copy the code mentioned above, and it works perfectly. Thank you!
@robin-w or another mod – can you please delete:
https://bbpress.org/forums/topic/template-in-block-themes/#post-232249 (#post-232249)
https://bbpress.org/forums/topic/template-in-block-themes/#post-232250 (#post-232250)
https://bbpress.org/forums/topic/template-in-block-themes/#post-232256 (#post-232256)
They had issues and take up a lot of wasted space.
Seriously done this time! No more changes/revisions! It is what it is!
Posting a much cleaner revision of the code above.
- This one will work with either the BBPress Style Pack plugin template (looks great!) or the default BBPress template (looks horrible!).
- It will optionally include the required ‘template-canvas.php’ only if it’s missing.
- It will also only affect BBPress pages, not the rest of the site.
- It will also only affect FSE Block themes.
- If using default BBPress templates, it includes checks for if on forum root index page and loads extras/archive-forum.php (to prevent double-listing of the forum index), and loads extras/page-front-forums.php for “the rest of bbpress” (to prevent “nothing found” errors)
// function to include the wp-includes/template-canvas.php file if needed
function fse_bbpress_template( $template ) {
if ( is_bbpress() ) {
$template = ABSPATH . WPINC . '/template-canvas.php';
}
return $template;
}
// function to include the bbpress forum template file if needed
function fse_bbp_theme_compat( $template ) {
if ( is_bbpress() ) {
// BBPress Style Pack Plugin Forums Index Template
if ( defined( 'BSP_PLUGIN_DIR' ) ) {
$template = BSP_PLUGIN_DIR . '/templates/bbpress.php';
} else {
// Default BBPress
// if current page is bbpress forum root page, load archive-forum to prevent double-listing of index
if ( isset( get_queried_object()->name ) ) {
if ( get_queried_object()->name == 'forum' ) {
$template = WP_CONTENT_DIR . '/plugins/bbpress/templates/default/extras/archive-forum.php';
}
// else, load page-front-forums or the rest of bbpress is broken with empty pages
} else {
$template = WP_CONTENT_DIR . '/plugins/bbpress/templates/default/extras/page-front-forums.php';
}
}
}
return $template;
}
// main function for handling which theme file needs to be included
if ( ! function_exists( 'fse_bbpress_support' ) ) {
function fse_bbpress_support() {
// get current theme dir
$theme_dir = get_template_directory();
/*
* Detect if FSE theme or traditional.
* FSE Block themes require a theme.json file.
* Use that to check instead of theme name or parent theme name.
* Perhaps a better method is available, but this works for now
*/
if ( file_exists( $theme_dir . '/theme.json' ) ) {
// include wp-includes/template-canvas.php only if needed
if ( !basename( get_page_template() ) == 'template-canvas.php' ) {
add_filter( 'template_include', 'fse_bbpress_template' );
}
// include either the BSP template, or default BBPress template
add_filter ( 'bbp_template_include_theme_compat', 'fse_bbp_theme_compat' );
}
}
}
add_action( 'after_setup_theme', 'fse_bbpress_support' );
One issue with EVERY default BBPress template is that the header/footer/sidebar are trying to be pulled from template files that don’t exist in block themes. They’re being included, but don’t look right. I’m not sure of the best solution for that, other than to use the BBPress Style Pack Plugin which takes care of that and looks great.
So i almost got it working the way i want it, but at this moment the only problem is when a new costumer gets registrated wordpress puts it in the Costumer role of WordPress,
For some reason the plugin is not picking up the “Assign Groups to Roles” i made group 2 “Costumers” and connected them to the WordPress Costumer group. but for some reason its not happening and the user is still in basic role instead of upgraded tot Group 2 ‘costumer” role in bbpress
Private groups
and look at the topic permissions settings, in particular
Create/Edit/view OWN Topics,
After weeks of trial and error my import from simple press to bbpress is finally done (YEY!) after some hours now.
And now I have this table: wp_bbp_converter_translator containing 900.000 rows(!)
Can I delete this, or does bbpress or wordpress take use of it now or will it do in the future?
no, I need to see what is being downloaded to your browser.
alternately :
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
I’m having the exact same issue with the newest bbpress and wordpress, trying to import from simple:press.
I have used this tool some other time, on older versions, and then in started at least.
Did you ever find out why it doesn’t start, or did you give up like I’m about to do?
Just written this – should work
add_filter ('bbp_current_user_can_access_create_reply_form' , 'rew_limit_replies') ;
function rew_limit_replies ($retval) {
//set limit
$limit = 5 ;
//get replies for today
$user_id = get_current_user_id() ;
$reply=bbp_get_reply_post_type() ;
$today = getdate();
$args = array(
'post_type'=> $reply,
'order' => 'ASC',
'orderby' => 'ID',
'post_status' => 'publish',
'posts_per_page' => -1,
'post_author' => $user_id,
'date_query' => array(
array(
'year' => $today['year'],
'month' => $today['mon'],
'day' => $today['mday'],
),
),
);
$the_query = new WP_Query( $args );
$count = $the_query->found_posts;
if ($count>=$limit) $retval = 0 ;
return $retval ;
}
Just amend the line ‘$limit = 5 ;’ to whatever number you want
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
your theme is hiding the bbpress breadcrumbs in
https://renaloo.com/wp-content/themes/digiqole-child/assets/css/custom.css line 2281
This function will add a reference to the breadcrumb
add_action ('bbp_template_before_single_topic' , 'rew_forum') ;
function rew_forum () {
echo '<div class="rew_forum">' ;
$topic_id = bbp_get_reply_topic_id() ;
$forum_id = bbp_get_topic_forum_id() ;
echo '<a href="' . esc_url( bbp_get_forum_permalink( $forum_id ) ) . '" class="bbp-breadcrumb-forum">' . bbp_get_forum_title( $forum_id ).'</a>' ;
echo '</div>' ;
}
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
At a guess, I’d say that bbPress, like WordPress, uses oEmbed to embed media. WP maintains a list of oEmbed providers whose URLs will automatically be converted to media embeds. The URL in your screenshot looks like it’s a custom CDN hosting an mp4 file, which likely can’t be converted this way. To test this, try using a YouTube video’s URL instead. You may use WPTrains forum to understand further.
the 2022 wordpress theme is a block theme, and doesn’t support bbpress out of the box.
Install
bbp style pack
once activated, navigate to
dashboard>settings>bbp style pack, and you should see the first tab called ‘Theme Support’ – if you don’t see this, come back.
In that tab, select
Enable Theme Support
and save
The forums should then display
Im using BBpress Version 2.6.9 and WordPress version: 5.9.3 and i’m working on my localhost.
I have followed the documentation (method 2) and I keep ending up with the same issue. The Forum page has the [bbp-forum-index] shortcode which works fine, but when I click on the forum I created it returns a blank page.
URL structure that returns blank page:
mysite/forums/forum/test-forum/
I have removed every plugin except BBPress and tested this on the 2022 WordPress theme and still no luck, any advice you could give me would be greatly appreciated.
Using bbPress to add a forum to your WordPress websites is the easiest method. It is the best forum plugin for WordPress and comes with all the features you need to set up and manage a discussion board online.
In my WordPress website, I added bbPress
. When you are in the forum in the section _Support_ and you open a topic, you see this

In my point of view, the user experience is not great because the user doesn’t know where he or she is. I like to add a full breadcrumb like
> Forum > Support > Test video
How can I add this?
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
Thanks Robin. Tried what you recommended and still ahve the same problem. I am running WordPress 6.0.2 if that matters.
I installed per the directions and added it to the menu in my wordpress site as it did not appear that I needed to create a seperate page for it. What is strange is that if I log into my wordpress site, go to “Dashboard” then go to Visit Website” and click on “Forum” (as above) it comes up! It just does not work if anyone (including me) tries it from just a web browser, either chrome or Microsoft.
Hope someone can help with this. It’s frustrating 🙂
following closure of the ‘bbPress – Moderation Tools’ plugin, I added this code to my style pack plugin
bbp style pack
once activated you’ll find the moderation tools in
dashboard>settings>forums
I am using WordPress 6.0.2, bbPress 2.6.9 and my forums are located here.
I have what I would have thought was a fairly common requirement: I (keymaster/administrtor/moderator) simply want to receive an email notification if a post requires moderation, rather than having to ‘manually’ monitor the Topic/Reply lists through the forum adminsitration screens to see if moderation is required.
It seems that the ‘bbPress – Moderation Tools’ plugin used to do this, but this plugin appears to no longer be available. I have installed ‘bbPress Notify (No Spam)’ 2.17.6 (bbPNNS), but I seem only to be able to configure this to notify me after the post has been approved, not before, when moderator action is required.
My problem is not a fundamental problem with notifications. I get email notifications when new users register or when they change their password, and I can configure bbPNNS to send email notification when new topics are posted, but I cannot see how to configure something that will send an email notification when a pending post (Topic or Reply) requires the attention of a moderator.
There appears to be a plugin that will hold all posts for moderation, and send the desired email notification, but I don’t need, or want, all posts to be moderated.
I have posted a similar request on the bbPNNS support forum, where this post suggests that this is a standard feature of the bbPNNS plugin, but I cannot see how to configure this capability and thought I may need to be asking my question in a broader forum.
Can anyone point me to a suitable plugin or instructions on how I might be able achieve this?
Hi,
I Am trying to move the whole forum to another wordpress install and can’t figure out how to do it. How can there be migration options for so many other forums, but nothing to migrate a current BBPress Forum to another site?
Can anybody point me in the right direction please?
Thanks a lot!
Max
1 & 2
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
3. bbpress follows the rules in dashboard>settings>discussion
from bbpress or a wordpress registration I believe, so if you’ve signed up to worpdress to log say a call in other pkigins
I have installed the BBP Style Pack and was able to increase the font size and bold for the Forum and Subforum Titles in the list, but I can’t get them to change in:
– Topics Index under each forum
– Topics and replies
I have changed the font size to 15 and bold in:
dashboard>settings>bbp style pack>Topics index styling>item 4
dashboard>settings>bbp style pack>Topics index styling>item 13
dashboard>settings>bbp style pack>Topics reply display>item 6
dashboard>settings>bbp style pack>Topics reply display>item 10
But the changes don’t appear in the forum.
The forum is private, but here are screen captures of what they look like:
https://drive.google.com/file/d/1Y7Dk5151LNwtJ08BdQE-kWAZ75Iya-Um/view?usp=sharing
https://drive.google.com/file/d/19ALhYmhEj2EnqFJl5KOwpj_jcG-xdD2V/view?usp=sharing
I am trying to increase the size/bold the list of topics in the index under each forum and also to increase the size of the text in each of the topics.
I’m using:
WordPress 6.0.2 running Twenty Seventeen theme.
BBPress Version 2.6.9
BBP Style Pack Version 5.0.8
Any help is greatly appreciated! Thank you.
that’s basically the code which can be added to a functions file, or using
Code Snippets