Forum Replies Created
-
In reply to: Add Custom User Roles
//code to add tutor role add_action ('wp_loaded' , 'load_new_roles') ; function load_new_roles () { add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 ); add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 ); } function add_new_roles( $bbp_roles ) { /* Add a role called tutor */ $bbp_roles['bbp_tutor'] = array( 'name' =>'Tutor', 'capabilities' =>custom_capabilities( 'bbp_tutor' ) ); return $bbp_roles; } function add_role_caps_filter( $caps, $role ) { /* Only filter for roles we are interested in! */ if( $role == 'bbp_tutor' ) $caps = custom_capabilities( $role ); return $caps; } function custom_capabilities( $role ) { switch ( $role ) { /* Capabilities for 'tutor' role */ case 'bbp_tutor': 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' => false, 'delete_others_topics' => false, 'read_private_topics' => true, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'edit_others_replies' => false, 'delete_replies' => false, 'delete_others_replies' => false, 'read_private_replies' => true, // Topic tag caps 'manage_topic_tags' => false, 'edit_topic_tags' => false, 'delete_topic_tags' => false, 'assign_topic_tags' => true, ); break; default : return $role; } }In reply to: Forum role drop-down missing in admin WP profilethat is as designed, you are not allowed to change your own forum role, just as you can’t change your own wordpress role.
In reply to: Forum Display🙂 great – glad you are fixed
In reply to: Forum Displaysorry, copied the wrong link
it should be
[bbp-single-forum id=$forum_id]all the shortcodes are here
In reply to: Forum Displaygo to
dashboard>forums>all forums> and then hover over the ‘edit’ button of the forum, and you will see a url appear in the bottom left hand corner of your browser – the number in that is the number of the forum
🙂
In reply to: Akismet causing “recent topics” problem?contact me via
In reply to: Forum Topicsit could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
In reply to: Akismet causing “recent topics” problem?ok, if Milan says it is in core, then he should know.
In reply to: Forum Topicshmmm… that’s not a bbpress phrase, do you have another bbpress related plugin that might be doing that ?
In reply to: Forum Topicsfor all roles?
In reply to: Akismet causing “recent topics” problem?I need to know what you are using ie
can you just clarify what this is, a widget or shortcode, and which one
In reply to: Akismet causing “recent topics” problem?‘Recently Active Topics’
can you just clarify what this is, a widget or shortcode, and which one
🙂
you would do better to use the bbpress widget
(bbPress) Recent Topics
which lets you set a number
sorry, cab you explain what you want to show in [bbp-topic-index] ? just the first 10 topics ????
amended in the original code to add the missing ;
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
In reply to: Topic only shows while logged inI’d suggest you check out
function bbp_new_topic_handleron line 96 of
includes\topics\functions.php
for how a new topic is created
In reply to: Forum Topicsadd
once activated go to
dashboard>settings>bbp style pack>Forum Display
and near the bottom you will see the ability to set the number of forums
In reply to: Please I need help for solution this problemnot sure how this related to bbpress
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
In reply to: Forum Displaycreate 2 categories and make your forums subs of these, create 2 pages and use a shortcode in each
[bbp-topic-form forum_id=$forum_id]where $forum_id is the categoryIn reply to: Not working with Divi Themetry
In reply to: bbPress does not workit could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back