Search Results for '+.+default+.+'
-
Search Results
-
Topic: Forums
I would really like to create forums for my website, however, I don’t have this option:
A. Set Up Sitewide Forums only
Install and activate bbPress.
Proceed to bbPress.org Codex to get started in creating your Sitewide Forums.
If you kept the default “forums” slug in Settings > Forums, you can create a new Page via Pages > Add New. Add Title “Forums” and insert the forums index shortcode and/or other bbPress shortcode you’ll find in the bbPress Codex then publish the new page.
Add new “Forums” Page in your custom menu via Appearances > MenuCan someone please tell me what I am missing?
Thank you so much for your time!!
Take care,
KariTopic: custom forum page setup
HI
I have Install bbPress and like to setup custom page for forums
Im getting two URL .. which I dont need and it will be creating duplicate post
Im getting this link as default https://bestcomputersforgaming.com/forums
Im trying to design custom page for forums at https://bestcomputersforgaming.com/forum/
any solution to just to get one forum link
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
Today I installed the bbpress plugin and converted all WordPress comments to bbpress topics.
It works for default post type, but what about custom post types? I trying show comments on that post types as bbpress topics, but unsuccessful.
Is that even possible?