Search Results for '+.+default+.+'
-
Search Results
-
I am trying to replace my comments on posts with bbpress topics. This plugin is working for the most part…I’m able to auto create new topics of my published posts on the forum. However, my comment box has disappeared on the posts. There is a comment button to click. But when clicked, there is nothing displayed for posting comments.
I have found out that this is a theme issue and not a plugin issue. When I change to a different theme, such as a WordPress default theme, the plugin works. However, I do not want to lose my current theme. Does anyone know if there is any css code I can add to my theme in order to make the bbpress comment box to appear on the WordPress posts.
Website: http://bamadigest.com
Thank you!Topic: 500: post_status no array
Hey guys,
I get a 500 error after the latest update:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/vhosts/<url>/wp-content/plugins/bbpress/includes/forums/functions.php:1800 Stack trace: #0 /var/www/vhosts/<url>/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query)) #1 /var/www/vhosts/<url>/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array) #2 /var/www/vhosts/<url>/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #3 /var/www/vhosts/<url>/wp-includes/class-wp-query.php(1681): do_action_ref_array('pre_get_posts', Array) #4 /var/www/vhosts/<url>/wp-includes/class-wp-query.php(3238): WP_Query->get_posts() #5 /var/www/vhosts<url>/wp-includes/class-wp.php(617): WP_Query->query(Array) #6 /var/www/vhosts/<url>/wp-includes/clas...'ln 1800 looks like this:
$post_stati = $posts_query->get( 'post_status' ); // Default to public status if ( empty( $post_stati ) ) { $post_stati[] = bbp_get_public_status_id(); // Split the status string } elseif ( is_string( $post_stati ) ) { $post_stati = explode( ',', $post_stati ); }could be fixed by forcing the array:
$post_stati = $posts_query->get( 'post_status' ); if (!is_array($post_stati)){ $post_stati = array($post_stati); } // Default to public status if ( empty( $post_stati ) ) { $post_stati[] = bbp_get_public_status_id(); // Split the status string } elseif ( is_string( $post_stati ) ) { $post_stati = explode( ',', $post_stati ); }side note: wp version 4.7.4, bbpress version 2.5.12
Thanks in advance,
TobyHi,
I have followed this documentation page
to enable TinyMCE. Now I would like to change the default behavior of TinyMCE to not add a paragraph for each new line but use instead <br>.
For WordPress I have to use thisfunction tinymce_remove_root_block_tag( $init ) { $init['forced_root_block'] = false; return $init; } add_filter( 'tiny_mce_before_init', 'tinymce_remove_root_block_tag' );But the TinyMCE in bbPress doesn’t get this setting.
I have tried to do something likefunction bbp_enable_visual_editor( $args = array() ) { $args['tinymce'] = true; $args['quicktags'] = false; $args['forced_root_block'] = false; return $args; } add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );but it doesn’t work.
How can I pass that “forced_root_block” to the TinyMCE enabled for bbPress?Thanks
Massimo
Topic: Problem with custom role
Wordpress : WordPress 4.7.4 avec le thème BlackFyre.
bbpress : Version 2.5.12
http://www.vieuxetmechants.com/Hello i’ve created custom and i don’t understand the role MembreVetM can’t edit or delete their own post
function add_new_roles( $bbp_roles ) { $bbp_roles['bbp_gamer'] = array( 'name' => 'Gamer', 'capabilities' => custom_capabilities( 'bbp_gamer' ) ); $bbp_roles['bbp_membrevetm'] = array( 'name' => 'MembreVetM', 'capabilities' => custom_capabilities( 'bbp_membrevetm' ) ); $bbp_roles['bbp_veteran'] = array( 'name' => 'Vétéran', 'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) ); $bbp_roles['bbp_officier'] = array( 'name' => 'Officier', 'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) ); return $bbp_roles; } add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 ); function add_role_caps_filter( $caps, $role ) { /* Only filter for roles we are interested in! */ if( $role == 'bbp_gamer' ) $caps = custom_capabilities( $role ); if( $role == 'bbp_membrevetm' ) $caps = custom_capabilities( $role ); return $caps; } add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 ); function custom_capabilities( $role ) { switch ( $role ) { case 'bbp_gamer': return array( // Primary caps 'spectate' => true, 'participate' => true, 'moderate' => false, 'throttle' => false, 'view_trash' => false, // Forum caps 'publish_forums' => false, 'edit_forums' => false, 'edit_others_forums' => false, 'delete_forums' => false, 'delete_others_forums' => false, 'read_private_forums' => false, 'read_hidden_forums' => false, // Topic caps 'publish_topics' => true, 'edit_topics' => true, 'edit_others_topics' => false, 'delete_topics' => false, 'delete_others_topics' => false, 'read_private_topics' => false, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'edit_others_replies' => false, 'delete_replies' => false, 'delete_others_replies' => false, 'read_private_replies' => false, // Topic tag caps 'manage_topic_tags' => false, 'edit_topic_tags' => false, 'delete_topic_tags' => false, 'assign_topic_tags' => false, ); case 'bbp_membrevetm': return array( // Primary caps 'spectate' => true, 'participate' => true, 'moderate' => false, 'throttle' => false, 'view_trash' => false, // Forum caps 'publish_forums' => false, 'edit_forums' => false, 'edit_others_forums' => false, 'delete_forums' => false, 'delete_others_forums' => false, 'read_private_forums' => true, 'read_hidden_forums' => false, // Topic caps 'publish_topics' => true, 'edit_topics' => true, 'edit_others_topics' => false, 'delete_topics' => true, 'delete_others_topics' => false, 'read_private_topics' => true, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'edit_others_replies' => false, 'delete_replies' => true, 'delete_others_replies' => false, 'read_private_replies' => true, // Topic tag caps 'manage_topic_tags' => true, 'edit_topic_tags' => false, 'delete_topic_tags' => true, 'assign_topic_tags' => true, ); break; default : return $role; } }Hi guys
Please see attached screenshot. When not logged into the forum, there is the standard message “You must be logged in to create new topics”
I want to change that text and add a link there to signup to my membership page, i used the explore inspection tool, and think i pin pointed it to this file ” bbp-template-notice” BUT i cant find that file any where…
Please advice

I’m seeing issues that seem to only affect public forums (private or hidden work as expected). Public forums don’t appear in the admin ‘All’ list view, although they do appear under ‘Published’. Attempting to view the single page for a public forum gives a 404 when logged in. When not logged in, it gives the following fatal error:
Fatal error: Uncaught Error: [] operator not supported for strings in .../plugins/bbpress/includes/forums/functions.php on line 1855Looking at that line, the get method of WP_Query returns an empty string if no matching key is found. That explains the [] operator error and adding a default empty array to the call does fix the issue for non logged in users. However, the root cause must be higher up the call chain because it doesn’t fix the permalink problem.Topic: Changing forum root path ?
Hello!
I’ve added a new custom forum main page with some bb-codes instead of the default main page and I get a little disapointment, I can’t find out how to change the forums root page which redirect to mysite/forums instead of mysite/mynewmainforumpage.
Is it possible to do it?
Thanks!