As previously mentioned. At root level all freshness are wrong when topics are created and replies made:
Category 1
Forum
Forum
Forum
Category 2
Forum
Forum
Forum
Category 3
Forum
Forum
Forum
Similarly, if I drill down a level:
Category 3
Forum
Forum
Forum
This is still wrong. Freshness not showing the most recemt topic / reply info right. Unless I run the tool to rebuild freshness.
If I drill down a level:
Forum
Topic
Topic
Topic
This always showed it correctly with the most recent freshness for the topic / reply in each forum.
I don’t think I can provide more info.
Andrew
I upgraded to 2.6.1 and my topic replies are not being displayed. Debug toolbar shows that there are two database errors being thrown, both like this:
SELECT COUNT(wp_posts.ID)
FROM wp_posts FORCE INDEX (PRIMARY, post_parent)
LEFT JOIN wp_postmeta ON wp_postmeta.post_id = wp_posts.ID AND wp_postmeta.meta_key = '_bbp_reply_to'
WHERE 1=1 AND (wp_posts.ID = 76 OR wp_posts.post_parent = 76)
AND wp_posts.post_type IN ('topic', 'reply')
AND wp_postmeta.meta_key IS NULL
AND (wp_posts.post_status = 'publish')
ORDER BY wp_posts.post_date ASC
Table 'site_name.wp_posts' doesn't exist
The list of forums and topics works fine.
Like many WordPress installations I have a custom prefix for my database tables (“wp_****_”) and it appears that bbPress 2.6.1 is using that for some queries and not others.
Nope. I just tried with short codes and still shows no forums/threads.
Hello, maybe it would be worth to add voices to the settings panel in the bbpress options. Most people do not want to use it, why impose it. At home I turned it off by cutting out in the code of the page https://infomiasto.eu/forum/tematy/rozmowy/ but it is a solution that you need to repeat when updating, and maybe it would be such a setting
ok, I think I’ve got it – yes it is my style pack plugin that adds the table – some code I wrote quite a while ago. It works fine on 2.5.14 as that does the display differently.
I’ll need to re-write a part for 2.6.
In the meantime if you uncheck the registration and logins for
dashboard>settings>bbp style pack>Topic/Rely Styling
and
dashboard>settings>bbp style pack>Topic/Reply Display
then apart from registration, these should now be ok.
I’ll come back when I have fixed that part
there is a function
bbp_is_user_forum_moderator
so a stament like
if (bbp_is_user_forum_moderator()) {
//do something
}
or if you need to pass user_id or forum_id
if (bbp_is_user_forum_moderator( $user_id, $forum_id)) {
//do something
}
yes, that looks like it, and yes it should not be in that part as it gets overwritten. Good that you had a copy !
so from
function add_new_roles( $bbp_roles )
to the end and put this in the functions file of your child theme
ok, is your forums page using the shortcode ?
Hi there and thanks for the reply.
The trouble is I’m not entirely sure how we did it as it was a while ago and the person that did it is no longer with us.
I’m not seeing anything in functions.php which is where I understand that code is normally put for this so I’m assuming it’s in the capabilities.php file that the update is overriding as this does refer to treating wp_roles as bbpress roles.
I can send a copy of the capabilities file (not seeing an upload button) or perhaps you can give me an idea where else to look?
Sorry to be so vague, but it works fine with the previous version of bbpress so I’m guessing it’s something that gets overwritten when I update.
The roles were created by clicking duplicate on a bbpress role and then changing the name, but if I try that now it just created a wp-role and not a forum role.
Yes, I can also confirm that renaming to bbpress.min.css brings back the styles.
the bit you have altered is in my style pack plugin :
dashboard>settings>bbp style pack>topic/reply display>item 20.
However as bbpress now wraps this part in a <ul> you can’t use a <table> in that part.
However the new template gives you the login part below it which the old did not, so it gets you most of the way there.
Alternatively you could amend the template which is
templates/default/bbpress/form-topic.php if you know how to FTP files
ok, I’ve taken a look
2.5 just has this section in a <div> ; , 2.6 puts it into a <ul> and you can’t have a table within a <ul>, hence why it is no longer working.
I’ll look at where this is coded
Hello,
I want two types of forums in my website: One for courses and another more general.
Users/participants can’t create topics. Only answer on pre-existing topics created by admins, full moderators or per-forum moderators.
I can achieve this with user roles, but is there a user role for per forum moderator I can target? I don’t know how to code, I have a function Im messing around with.
Basically if user is per-forum moderator of that forum allow to create topics.
If not, don’t allow
Sorted:
'video' => array(
'controls' => true,
'width' => true,
'height' => true,
'source' => array(
'src' => true,
'type' => true
)
)
Hi John!
Thanks for the quick response!
I modified your code to:
/* wp customer -> bbp block */
add_filter( 'bbp_get_user_role_map', function( $roles = array() ) {
$roles['customer'] = 'bbp_blocked';
return $roles;
} );
/* wp suscriber -> bbp participant */
add_filter( 'bbp_get_user_role_map', function( $roles = array() ) {
$roles['subscriber'] = 'bbp_participant';
return $roles;
} );
But doesn’t works fine… when I change a Wp user role they lost any user role at bbpress.. (I put the code in functions in my child theme, is correct?)
Thanks again!
bbPress 2.5.10 did fix a bug that was causing maximum title lengths to not be enforced, and this was part of 2.6 as well. It does use '8bit' encoding, but perhaps 'UTF-8' would be better. I think @casiepa is doing some digging to figure this out exactly.
You’ll have to write a custom plugin that filters bbp_get_user_role_map and adds a key for the customers role.
Something like:
add_filter( 'bbp_get_user_role_map', function( $roles = array() ) {
$roles['customer'] = 'blocked';
return $roles;
} );
It is not working. For a standard user once I hit submit the code I end up with is:
<video controls="controls" width="300" height="150"></video>
It has lost the inner source item:
<video controls="controls" width="300" height="150">
<source src="xxxxx.mp4" type="video/mp4" /></video>
Before these recent plugin updates, it showed the subforums in a vertical list
This will require some CSS for you to get back. The markup used for separating subforums went back and forth for a little while, and we ultimately settled on something simpler.
/* Remove comma */
#bbpress-forums .bbp-forums-list .bbp-forum.css-sep:not(:last-child)::after {
content: '';
}
/* Make vertical */
#bbpress-forums .bbp-forums-list .bbp-forum {
display: block;
}
it only displays for 1 of them
I see now what you mean. It’s fixed, but not completely. Thanks. Will look into this also!
Nothing like this yet. There is some support started for this idea, but it is not fully implemented.
For anyone that wants to poke around at the code, search for: bbp_settings_integration()
- Yes. W3TC with CSS minification.
- Yoast SEO. As far as I know, it doesn’t interact with CSS files.
- No.
- No.
Related change test: Tested with both screen and all. Did not work.
Additional information:
I have dequeued bbpress stylesheets for non-bbpress pages, using the below code.
function dequeue_bbpress_style() {
if ( class_exists('bbPress') ) {
if ( ! is_bbpress() ) {
wp_dequeue_style('bbp-default');
wp_dequeue_style( 'bbp_private_replies_style');
wp_dequeue_script('bbpress-editor');
}
}
}
add_action( 'wp_enqueue_scripts', 'dequeue_bbpress_style', 99 );
I hope this helps.
I also noted another issue where the replies were not loading (both topic replies and threaded replies) for any topics.
Hi JJJ,
Renaming to bbpress.min.css brings the style back. Yes, the bbpress.css is inside a subdirectory css.
Also, the subforum is not appearing. And I see two favorite and subscribe elements in the topic page now.
One last question:
Are your bbpress.css files in the root of your theme directory, or under a subdirectory?
Like…
css/bbpress.css
assets/css/bbpress.css
etc…
I threw all of my bbpress.css code into the bbpress.min.css file and it all became included at that point. Not sure I like that but at least it works…
Thanks everyone for the details here.
For those who had a bbpress.css file, can you try renaming it to bbpress.min.css and see if it gets included now? I have a theory on what’s going on, and your feedback will help me narrow it down.