no, the main forum page would not list the topics for a forum. If you only have one forum, then you can use shortcodes to display just that forum, and your forum will then be a list of topics.
Hello
I tried to add a new forum, This error appeared.
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 163840 bytes) in /home/vnyeklac/public_html/wp-includes/class-wp-object-cache.php on line 446
I looked at https://bbpress.org/forums/topic/php-fatal-error/ .
However I cannot solved this problem.
What should I do?
Thanks for watching.
My bbpress version is 2.6.5
php version is 7.4
wordpress version is 5.5.1
All latest version
almost right! bbp_topic_permalink outputs the result you need the get version.
use
$topic_id = 28282 ;
$topic_link = bbp_get_topic_permalink($topic_id) ;
I am sending a custom email notification to the forum subscribers to notify any new topic created. Now I also want to send a Link to the newly created topic.
I tried
bbp_topic_permalink
found it in the loop single topic file. But it showing blank. Even I tried to pass the topic_id as argument.
I also tried
bbp_get_topic_url()
but it is also not working.
It would be a great help if some one tell the exact function to get the url of the topic.
Anybody got some code to put into WordPress theme functions.php to redirect every instance of links to /wp-admin/profile.php to /forums/users/$user ?
suspect post status and post parent (which you have commented out) might be the issue
'post_status' => bbp_get_public_status_id(),
and post parent should be the forum it belongs to, so $forum_id in your code
'post_parent' => $forum_id,
your content is the contents of the variable $output_content which is not defined in the code above, so the function would either fail and do nothing or make contents empty
If a user posts a topic with links in it, their posts seem to be automatically hidden. This only seems to apply if there is more than one link. I’ve hunted high and low and can’t find any information on this. Is this a hardcoded feature, or a setting? I can’t find any settings that seem to correspond.
This raises another topic – how is a moderator / keymaster advised when there are actions pending? I can’t find anything like a “moderation queue” or other simple precis of what is waiting to be done. I can view “topics” in the main dashboard under wp-admin, and see which ones are pending, but that has to be done individually for each forum. Is that the correct method? Can a moderator subscribe to receive notifications by email or another means when something needs doing?
Thanks
Nick
if you amend form-topic – then change this line
<?php if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags', bbp_get_topic_id() ) ) : ?>
to
<?php if ( bbp_allow_topic_tags() ): ?>
ok, add this to the custom css section of your theme
.bbpress-area {
width: 100% !important;
}
ok, in the bbpress file above, can you change
<?php Responsive\responsive_in_wrapper(); // wrapper hook. ?>
<main id=”primary” class=”content-area col-940″ role=”main”>
to
<?php Responsive\responsive_in_wrapper(); // wrapper hook. ?>
<main id=”primary” class=”content-area bbpress-area col-940″ role=”main”>
nothing will change, but let me know when you have and I’ll do the next bit !
<?php
/**
* Exit if accessed directly.
*
* @package Responsive
*/
if ( ! defined( ‘ABSPATH’ ) ) {
exit;
}
/**
* Full Content Template
*
* Template Name: Full Width Page (no sidebar)
*
* @file full-width-page.php
* @package Responsive
* @author CyberChimps
* @copyright 2020 CyberChimps
* @license license.txt
* @version Release: 1.0
* @filesource wp-content/themes/responsive/full-width-page.php
* @link https://codex.wordpress.org/Theme_Development#Pages_.28page.php.29
* @since available since Release 1.0
*/
get_header();
Responsive\responsive_wrapper_top(); // before wrapper content hook. ?>
<div id=”wrapper” class=”site-content clearfix”>
<div class=”content-outer container”>
<div class=”row”>
<?php Responsive\responsive_in_wrapper(); // wrapper hook. ?>
<main id=”primary” class=”content-area col-940″ role=”main”>
<?php
get_template_part( ‘loop-header’, get_post_type() );
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
Responsive\responsive_entry_before();
get_template_part( ‘partials/page/layout’, get_post_type() );
Responsive\responsive_entry_after();
Responsive\responsive_comments_before();
comments_template( ”, true );
Responsive\responsive_comments_after();
endwhile;
get_template_part( ‘loop-nav’, get_post_type() );
else :
// Elementor 404 location.
if ( ! function_exists( ‘elementor_theme_do_location’ ) || ! elementor_theme_do_location( ‘single’ ) ) {
get_template_part( ‘loop-no-posts’, get_post_type() );
}
endif;
?>
</main><!– end of #content-full –>
</div>
</div>
<?php Responsive\responsive_wrapper_bottom(); // after wrapper content hook. ?>
</div> <!– end of #wrapper –>
<?php
Responsive\responsive_wrapper_end(); // after wrapper hook.
get_footer();
?>
I am using bbpress for my website which is in development phase right now. One of my forum topics can be accessed here: https://drf.learnwise.in/forums/topic/retinitis-pigmentosa/. I am using visual editor by adding this code in my functions.php:
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’ );
All the formatting options except alignment are working fine. For alignment, it show the HTML tags as well after posting; as you can see in the forum.
Can someone let me know how to solve this?
Thanks,
Priyanka
try this in the custom css part of your theme
#qt_bbp_topic_content_toolbar {
display: none !important;
}
I am not sure if it is related but things like videos can trigger moderation to kick in. I have personally switched off moderation since the current mechanism is by no means efficient. Any topic / reply that goes to moderation just vanishes and the user is not informed. This is clearly not OK but I have no idea to improve it in the bbPress code.
There is a ticket open for this issue for several months now but I don’t think it is being worked on. You can go into your discussion settings and adjust certain properties that affect when content will trigger moderation. This is in your WordPress settings.
But like I say, I switched off moderation all together due to the confusion is causes for users. There are other topics on here with info on how to do that.
I am not saying it is the cause of your problem. Just wanted to mention it.
Guest can’t use editor to reply or create topic correctly ? When the guest use editor to justify text or etc, after submitting, codes appears without doing their functions.
Something like this:

My current theme (Responsive) comes with several templates.
By default, bbPress appears to be using the (unsurprisingly) “Default” template, and I just want to change bbPress to use the “Full Width” template. I don’t see a setting for that. Possible?
Can I create a page with a shortcode or something?
Here’s my solution. It’s not as neat as it should be, but it works, without mucking around in bbpress or its core functions.
In this example, I’m adding a tab/page for ‘events’. My theme is ‘rebalance-child’.
1. Copy user-profile.php and user-details.php to /bbpress/ in your theme folder.
2. Near the top of user-details.php, add something like this:
$profile_sub = "";
if (isset($_GET["sub"])) {
$profile_sub = $_GET["sub"];
}
if ($profile_sub != "events") {
$profile_sub = "";
}
3. Replace the code that displays the first bullet (‘Profile’) with something like this:
<li class="<?php if ( bbp_is_single_user_profile() && $profile_sub == "" ) :?>current<?php endif; ?>">
<span class="vcard bbp-user-profile-link">
<a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php printf( esc_attr__( "%s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me"><?php esc_html_e( 'Profile', 'bbpress' ); ?></a>
</span>
</li>
<li class="<?php if ( bbp_is_single_user_profile() && $profile_sub == "events") :?>current<?php endif; ?>">
<span class="vcard bbp-user-profile-link">
<a class="url fn n" href="<?php bbp_user_profile_url(); ?>?sub=events" title="<?php printf( esc_attr__( "%s's Events", 'rebalance-child' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Events', 'rebalance-child' ); ?></a>
</span>
</li>
4. Update user-profile.php to display something else, based on the value of the ‘sub’ query string parameter. So, something like this:
<?php
if ($_GET["sub"] == "events") {
//stuff related to events//
}
else {
//regular stuff//
}
?>
Above, ‘//regular stuff/’ would be the content that was in user-profile.php before.
never saw that Snippets plugin before… I like it…
Now, if I could just get the text box to show correctly (using TinyMCE Advanced, I added a bunch of buttons to the Classic/Text editor, but they are only showing (when using your snippet of code) on the Visual Editor, not the Text/Classic editor.
where do you put that code?
I use this code on my website
// ==============================================================
// Tweak MCE Toolbars (bbPress Editor)
function ajt_enable_visual_editor( $args = array() ) {
global $bsp_style_settings_form ;
$args['tinymce'] = true;
$args['teeny'] = false;
if ($bsp_style_settings_form['Show_editorsactivate'] == 1) $args['quicktags'] = false;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'ajt_enable_visual_editor' );
// ==============================================================
Works for me.
Hi Robin
Thanks for coming back on this – I tried the permalinks and nothing changed. The short code is [bbp-register] copied from the BBpress shortcakes page.
I will have look through the link you sent as well
Ned