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.
Different themes use different styling for different reasons.
If I recall correctly, Twenty Seventeen does not use the text-decoration attribute, but rather uses some kind of text-shadow or bottom-border. It’s a weird anomaly with how that theme decided to do things.
It’s nearly impossible for bbPress to work perfectly with all themes, but we do try to keep the default styling working well with the themes that come bundled with WordPress.
This should be solvable with a bit of custom CSS. I’ll create a Trac ticket and see if we can bring this back for you with this theme specifically.
Say I have this in a code block (originally):
<Talk Number="31" Type ="0" Date="01/08/2018">Are You Conscious Of Your Spiritual Need?</Talk>
At the time it worked. And right now if I view the post I can see the code correctly.
But when I edit the post, the HTML gets stripped. Unless I edit the file and have the “text” editor as the active one. Then the text shows wrapped in the code characters.
But if I edit the post and the Tiny MCE (4.9.6) is active, or I toggle between Text and Visual I get:
Are You Conscious Of Your Spiritual Need?
It has stripped the XMl syntax which is frustrating.
Why is this?
Hey there! Sorry that 2.6 is giving you trouble.
bbPress roles are somewhat tricky, but not too much has changed, so it shouldn’t be too hard for us to figure it out.
We’ll need to see the code that you used to make your custom Roles. If you can include it or link to it here, that will be really helpful.
Hi,
I’m currently using BuddyPress, bbPress, and Image and video gallery from Google Drive (all are latest updated). The plugin “Image and video gallery from Google Drive” provides a shortcodes is [sgdg path=”MyPath”]. I tried installing “bbPress – Do Shortcode” and it worked. However, the javascript file for loading is missing. Anyone can help me out please?
Oddly, the fix results in the same error endlessly looping:
16. Converting anonymous reply authors (50 through 50 of 50) 100%
The new bbPress 2.6.0 update implemented yesterday breaks the forum index displayed with the [bbp-forum-index] shortcode.
1. The above shortcode used to display two levels, not one on bbpress 2.5.14 before the update.
2. The problem happens on three different sites, so it is not a plugin compatibility issue.
3. The problem was reported during the 2.6.0 development cycle but ignored:
https://wordpress.org/support/topic/subforums-not-showing-after-upgrade-from-2-6rc5-to-2-6rc7/
4. The forums that are displayed are and always have been propertly set to display two levels in the index:
Showing parent forums and subforums (categories) in forum root: How?
What I would recommend is modifying bbpress to implement a parameter after the [bbp-forum-index] shortcode such as “showlevels=1-2” or the like. That way users can control how many levels of the hierarchy are displayed in the index.
This is clearly a bug in 2.6.0 that needs to be fixed. When will it be fixed?
Same problem. I changed the CSS on my forum about a year ago, uploading the custom styles to Active Theme > css > bbpress.css
Then upon this latest update, they all reverted back.
It is fixed when you copy/paste the CSS code from that file into either main style.css or the Appearance > Customize > Additional CSS
I also use Autoptimize which wraps the bbpress.css code into one file.
I would like to know what’s causing the issue even though this is a workaround.
Workaround fix:
My theme’s bbPress custom styles were in bbpress/css/bbpress.css, I have copied the CSS contents into the main style.css and it is ok now.
after upgrading from 2.6 rc 5 to 2.6 one of my plugins stopped working, with the fatal error Call to undefined function bbp_get_version(). I can’t figure out why, from what I can see that function still exists?
[14-Nov-2019 08:27:11 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bbp_get_version() in /home/woouser/wordpress/wp-content/plugins/wp-courseware-bbpress-addon/wp-courseware-bbpress-addon.php:222
Stack trace:
#0 /home/woouser/wordpress/wp-settings.php(360): include_once()
#1 /home/woouser/wordpress/wp-config.php(92): require_once(‘/home/woouser/w…’)
#2 /home/woouser/wordpress/wp-load.php(37): require_once(‘/home/woouser/w…’)
#3 /home/woouser/wordpress/wp-blog-header.php(13): require_once(‘/home/woouser/w…’)
#4 /home/woouser/wordpress/index.php(17): require(‘/home/woouser/w…’)
#5 {main}
thrown in /home/woouser/wordpress/wp-content/plugins/wp-courseware-bbpress-addon/wp-courseware-bbpress-addon.php on line 222
here’s the code from the plugin
add_theme_support( 'bbpress' );
$pluginroot = plugin_dir_path( __FILE__ );
$themeroot = get_template_directory();
$bbpressversion = bbp_get_version();
$ex_aaa = explode("-", $bbpressversion);
$ex_bbpressversion = $ex_aaa[0];
When I try the fix on https://bbpress.org/forums/topic/fix-for-phpbb3-to-bbpress-conversion-script/page/2/#post-205592, I get this error on an endless loop:
Converting anonymous reply authors (100 through 100 of 100)
I get stuck on that loop too:
Converting anonymous reply authors (100 through 100 of 100)