I’m just setting up bbPress on my site (WordPress 6.1.1, custom theme non-Block Editor/Gutenberg).
I found interior forum pages are working but the main landing page was not. I was able to work around that by setting up a regular page and using the [bbp-forum-index] shortcode, but I see the user profile pages are still not working (and they are doing exactly what the forum index page was doing before).
Here’s an example:
https://icscalendar.com/forums-home/users/room34/
It’s possible this is a problem with my theme, but I’m not immediately sure what might be wrong (and I’d like to fix this without having to test for plugin/theme conflicts because this is my live site and I don’t have a staging environment set up… yet).
I’m guessing it may be a routing issue… I do have some code in my theme that uses the template_include filter.
tried those, still cannot replicate.
Can you try changing the forums in forum='6,8,14' to see if it is one of those affecting?
I have to say that I’m pretty impressed by the fact that GD bbPress Tools Pro plugin has sent today news regarding the update to the next big version (7.0) and Milan will be upgrading the topic and replies system to a completely separate table.
He says that this will increase efficiency for an obvious reason (indexing of wp_postmeta for such large amount of data in many forums is obviously one of the Achilles talon of bbPress).
But to some extent I feel that this will be like a “fork” of the bbPress project.
I’m uncertain if Milan is a regular user of these forums, but I would like to see your opinions on this movement. I’ve been using GD bbPress Tools for ages because it really complements well all my devs for bbPress on my forums (and I don’t have to be duplicating the code to perform most of the features that he has already implemented), but I’m pretty skeptical that this could be a major caveat for future releases and too much attachment to Milan (in case something happens to him, and considering that this is not open sourced).
I’m not sure either if he will be implementing this for the free version in the WordPress repo.
Furthermore, I may also ask this in his private forum, but I was looking for more opinions in this official forum.
PS: Yes, Milan is around as expected @gdragon
note tested but possibly
#bbpress-forums .bbp-parent-forum-12345 p.bbp-topic-meta .bbp-topic-started-in a {
background-color: #328C00;
}
#bbpress-forums .bbp-parent-forum-12346 p.bbp-topic-meta .bbp-topic-started-in a {
background-color: #ff4b33;
}
#bbpress-forums p.bbp-topic-meta .bbp-topic-started-in a {
background-color: #328C00;
}
put this in your themes custom css area
I’m using shortcode bbp-topic-index as my forum frontpage. I would like to style my page similar to how it look like in bbpress support forum. My question is how do I highlight those forum names beside each topic created?
see screenshot: https://paste.pics/KPDVE
/wp-content/plugins/bbpress/includes/admin/classes/class-bbp-converter-db.php
I commented out lines 33-37:
// register_shutdown_function( array( $this, '__destruct' ) );
//
// if ( WP_DEBUG && WP_DEBUG_DISPLAY ) {
// $this->show_errors();
// }
I started getting this error after I upgraded to PHP 8.1. It prevents login, so this is a problematic error. BBPress is trying to setup a new login object and in the process wants to destroy any existing login object. Because BBPress doesn’t actually have a __destruct method php8.1 throws an error. I commented out that block of code and everything seems to work correctly. Of course that is a temporary fix that will be overwritten as soon as the plugin is updated.
I don’t have Jetpack installed on this server so it is not the culprit.
the dot for ‘new thread/response’ remaained for one.
sorry, not sure what this means, can you post an image
Thanks, I’ve actually already installed that and it does fix some of the issues I have, but not the main ones (they are a bit more unusual, thanks to the theme, so I need to alter the code somewhere).
New user, first post 🙂 I am using the Reign theme by WBCom, and I really like it, except for the layout of the BBPress forum index page, and the topic page. I’d really rather not have to switch to a new theme (already paid for Reign, don’t want to pay for another theme!) so I’d like to see if I can alter it myself to get what I want.
Some general info: I taught myself html back in the 90s, so I’m OK with html and css, but I never got as far as php. However I can probably grasp the basics.
I tried out the Youzify plugin and it does a lot of the layout styling that I want, but changes other things that I don’t want. Would it be possible to use the code from this to guide me to make the alterations I want?
I’m stuck at the start: which file/s would I find the layouts? (css is about styling, I’m looking for table structure, where information is displayed, that sort of thing).
Thanks!
Hi
With the great bbp style pack plugin, with active moderation on moderation tab, we can approve any new topic or reply from a new user
is it possible to use a shortcode to show all topics / replies “pending” (so the ones that require approval)
that would be nice for moderator to have all contents to approve at the same place in frontend
Is it something already doable with an existing shortcode ?
Thank
just can just add it to the other one
add_filter( 'gettext', 'rew_change_must_be_text', 30, 3 );
function rew_change_must_be_text( $translated_text, $text, $domain ) {
if ( $text == 'You must be logged in to create new topics.' && bbp_get_forum_id() == 2927 ) {
$translated_text = 'new text here' ;
}
if ( $text == 'You cannot create new topics' && bbp_get_forum_id() == 2927 ) {
$translated_text = 'new text here' ;
}
return $translated_text ;
}
in this part
bbp_get_forum_id() == 2927
so for your forum, go to
dashboard>forums>all forums and select ‘edit’ of the forum you want
At the top of your browser in the url bat you will see
http://mysite.com/wp-admin/post.php?post=2927&action=edit
2927 is the number of that forum, in my case 2927
Hi Robin, where do I specify the FORUM ID in the codes given?
sorry, late in the day when I looked at this. change the forum id and text you want below to the one you want. if you want it blank, then $translated_text = ''
add_filter( 'gettext', 'rew_change_must_be_text', 30, 3 );
function rew_change_must_be_text( $translated_text, $text, $domain ) {
if ( $text == 'You must be logged in to create new topics.' && bbp_get_forum_id() == 2927 ) {
$translated_text = 'new text here' ;
}
return $translated_text ;
}
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
Hello,
I would like to have an area under the topic and above the first reply. This area can be used for html or shortcodes. Best should be able to give the input per topic.
Is there a plugin available (did extended search without results) or can somebody program this for me?
http://www.zwembadforum.eu
Thanks, how about see only author function (specific user reply filter), my blog subscribers very like to create long story(novel) in the forum under a topic, but they will split those stories into many chapters as update, for example, one of them post one chapter once a week, when he posted a chapter, there are many comments. I would like a function that can filter specific user reply under a topic, so reader can see the full story more clearly. Is there anywhere to add these this function to bbpress forum? Either Plugin or filter hook code or other codes, cherish your replies.
I’m here for looking 2 functionalities for bbpress. First of them is quote, it is quite common function I think, if you click the quote function under the reply, it will copy the whole thing of the reply and paste in your textarea, this make people easy to deal with complicated answer sometimes. Second is see only author function, my blog subscribers very like to create long story(novel) in the forum under a topic, but they will split those stories into many chapters as update, for example, one of them post one chapter once a week, when he posted a chapter, there are many comments. I would like a function that can filter specific user reply under a topic, so reader can see the full story more clearly. Is there anywhere to add these 2 functions to bbpress forum? Either Plugin or filter hook code or other codes, thx for helping.
I have added this code in function.php…in child theme..but didn’t work at that time
@robin-w I have added this code in the child theme but it’s not working…
here is the complete code…kindly check and let me know..it’s correct?
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED - Do not modify or remove comment markers above or below:
if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):
function chld_thm_cfg_locale_css( $uri ){
if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) )
$uri = get_template_directory_uri() . '/rtl.css';
return $uri;
}
endif;
add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );
if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'bbp-default','fontawesome','slick','disputo-bootstrap' ) );
}
endif;
add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 );
// END ENQUEUE PARENT ACTION
add_filter ('bbp_current_user_can_access_create_reply_form' , 'rew_limit_replies') ;
function rew_limit_replies ($retval) {
//set limit
$limit = 2 ;
//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 ;
}
Here’s what I tried that didn’t work…
<a class="bbp-back-to-forum" href="<?php bbp_forum_permalink(); ?>">Back to <?php bbp_forum_title(); ?></a> <?php
echo '<a href="www.mylink.org/forums/">Back To Forums List</a>'; ?>
/*BBPRESS Favourite Filter*/
function rkk_subscribe_link($args) {
$args['favorite'] = esc_html__( 'Favourite', 'rkk' );
$args['favorited'] = esc_html__( 'Unfavourite', 'rkk' );
return $args;
}
add_filter('bbp_before_get_topic_favorite_link_parse_args', 'rkk_subscribe_link' );
$args['Favorite'] should be$args['favorite'] no capital F !
so
/*BBPRESS Favourite Filter*/
function rkk_subscribe_link($args) {
$args['favorite'] = esc_html__( 'Favourite', 'rkk' );
$args['favorited'] = esc_html__( 'Unfavourite', 'rkk' );
return $args;
}
add_filter('bbp_before_get_topic_favorite_link_parse_args', 'rkk_subscribe_link' );