Search Results for 'code'
-
Search Results
-
Hi,
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
Hi there,
I have enabled forums on my site, but it seems like my forum URL is here:
http://www.satdecoded.com/forums/forum/support-clinic/It’s set to private, so you may not be able to see it, but I’ve taken screenshots below.
The Forum Root (which is being used as a prefix slug for all forum related content) is “forums.” I’ve checked yes to the show prefix option.
Then in the single forum settings, I see that the it shows “forum” (singular, not “forums”).
Here is a screenshot of my settings: http://prntscr.com/f7m2caThe forum I created is called “Support Clinic.” It shows up at a URL that says “/forums/forum/ support-clinic/” Here’s a screenshot of my URL: http://ibb.co/iKJrvk
How can I get rid of the “forum” in the middle? I just want it to say “/forums/support-clinic/”
I’ve also set my forum to “Private” (I was logged in as admin when I took the screenshot), so now that gets doubled too: “Private: Private: Support Clinic”
I only want it to say “Private” once. How can I do that?
Thank you!
This is both feedback and a request.
I’m working on simplifying the UI of a Commmons In A Box site, which means I’m working with both BuddyPress and bbPress. While working on the group/forum page, I found that the forum title is hard coded as a simple h3 with no selectors into wp-content/plugins/bbpress/includes/extend/buddypress/groups.php at line 767. This is just before the content-single-forum template call.
My request is that the forum title be moved from groups.php and into content-single-forum.php where it can be customized through the normal child theme process. Let me know if there is a better place than here to file this as an issue.
Thanks!
Topic: bbPress User Ranks Released
Hi,
Just wanted to share a newly released plugin available called bbPress User Ranks and it allows you to create user ranks, star ranks, RPG ranks, user badges and month badges which display on forums and user profiles. It also has widgets and shortcodes.
You can view all the features and screenshots here:
http://pre55.com/downloads/bbpress-user-ranks/
You see the free lite version here:
https://wordpress.org/plugins/bbp-user-ranks-lite/
The plugin was created as I had been using the brilliant bbp user ranks plugin created by Robin W and although this worked great for what I initially wanted I eventually needed something a little more custom.
I have therefore built my plugin from scratch incorporating lots of great features I think will increase engagement for any bbPress forum.
Let me know what you guys think, if you have any suggestions please let me know.
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; } }