Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 426 through 450 (of 6,774 total)
  • Author
    Search Results
  • #223501
    Robin W
    Moderator

    ok, that’s development rather than support.

    so you will need to alter templates and put these in your child theme.

    look for

    \templates\default\bbpress\loop-topics.php
    does topic list headers
    
    calls loop-single-topic
    \templates\default\bbpress\loop-single-topic.php
    lists each topic in the forum, last post and freshness
    
    lists topic content

    so for each find the file

    transfer this to your pc and edit

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above

    bbPress will now use this template instead of the original

    #223499
    Robin W
    Moderator

    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

    Health Check & Troubleshooting

    Then come back

    #223497
    Robin W
    Moderator

    And breadcrumb does not display on the forum.

    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

    Health Check & Troubleshooting

    Then come back

    #223489
    dalton125
    Participant

    Replace it with just a list of topics, yes. I have bbPress 2.6.6, and I haven’t changed the theme, so I’m assuming I’m using whatever the default theme is.

    #223455
    Robin W
    Moderator

    ‘There are some settings that will basically let you “refresh” certain aspects’

    ok no idea where that is and without a clear ‘click this, press that’ not really able to help on that aspect, and may well be an additional plugin which may be the cause.

    so I’d suggest

    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

    Health Check & Troubleshooting

    Then come back

    #223450
    linguabuddy
    Participant

    Hi,

    I’m experiencing some really odd behaviour when trying to change the slug for my Buddypress group directory (under which all my BBpress forums are housed) and redirect traffic.

    My set-up is: BP 9.1.1; BBp 2.6.6, WP 5.8.1

    Short explanation:

    • traffic to a pre-change (/[old]/[groupname]) group url is being redirected to (/[new]/[groupname]/forum)
    • This happens regardless of whether:
      • There is a specific redirect in place
      • There is a regex redirect in place (/[old]/(.*) to /[new]/$1/)
      • There is no redirect at all
    • My redirect provider – Rank Math – can’t explain this.

    I’ve not modified my hta, and the only other redirect rules in page on the site relate to post-login behaviour. It seems there’s something deep within Buddypress, BBpress or WordPress which is driving this, but I have no idea what.

    Does anyone have any idea what might be causing this abd how to address it? I dare not make this change on my live site without resolving and having a clear idea what’s behind it.

    Appreciate any suggestions…

    #223267
    bobdobbs
    Participant

    How can I restrict all forum content to members only?
    I know that this is an oft-discussed topic, but I have yet to find a satisfactory solution.

    I want to have a website that has public content and a private forum.
    All posts and pages will be private – except for all forum content.

    ‘bbPress Members Only’is a great and mature solution, but it bars access to all posts and pages except for a few defaults.

    Many membership plugins exist, including free ones. I could use one of those, but they not designed for this specific purpose. As such they require configuration for this specific case. This could work, but there are risks to privacy when configuring and updating a general-purpose plugin.

    I found a plugin (sorry, can’t remember the name) that does most of what I want, but it leaves topic archives exposed. I think the point of that was that it allows a forum to advertise its content. This is the opposite of what I want.

    The approach that I’m about to experiment with will be a programmatic one:
    In PHP I will parse the URL. If the URL contains the string ‘forums’, then I’ll redirect the request to a gatekeeping page.

    In the meantime, if anyone can tell me about an approach or a plugin that I’ve missed, then please let me know.

    #223234

    Topic: Topic Sidebar

    in forum Troubleshooting
    grell67
    Participant

    Hello,

    I was wondering if someone could suggest how I might change the sidebar when a topic is opened. Unlike the forum post which has a ‘forum’ sidebar, when topics are opened the sidebar reverts to the default.

    Thank you

    Damian

    Wordpress: 5.8.1
    BBpress: 2.6.6
    Our site: https://languagecaster.com/football-language-forums/

    #223137
    Robin W
    Moderator

    I took a look at this, but cannot see what is causing the issue

    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

    Health Check & Troubleshooting

    Then come back

    #223136
    Robin W
    Moderator

    login here came with 2.6.x

    bbpress has a template in

    \templates\default\bbpress\form-user-login.php

    you can change this to have a click link to any url you wish

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-user-login.php

    transfer this to your pc and edit

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then amend this file to take out the current form and put in a link

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-user-login.php

    bbPress will now use this template instead of the original

    #223124
    cosmiclove1978
    Participant

    Hi Robin,

    Thanks as always for your assistance.
    Starting with the last question, I have BuddyPress installed but not activated…

    As for the slug, I’ve now ditched the underscore thing and went with /lab for the shortcode page, and in settings, /forums for the root and /forum for the forum. My permalinks are back to %postname%. This current setting guarantees that all my styles are displayed properly when accessing the page with the bbp-forum-index shortcode.

    If I visit the /lab page, it’s all good until I clicked on a specific forum. Then the /lab is lost to acquire /forums (declared the settings) and thus display a 404 error page since there’s no page with that /forums/forum/topic, etc.

    When I switch to having the shortcode page slug and settings slug be the same, no 404 error message, but all customizations vanish.

    I’ve read some other post talking of templates not being properly referenced and honestly, so I created a bbpress folder in my childtheme. Since I’m not sure which templates/file to copy inside the newly-created BBPRESS there, I tried copying all php files included in the default template folder inside the BBPress plugin, and it didn’t go to well, so I removed them.

    Still not sure where else to look. 🙁
    I appreciate other pointers you or other bbpress-ers might have.

    Best,
    H

    #223058
    kwk
    Participant

    I am using WordPress 5.8 and BBPress 2.6.6. It appears by default BBPress creates an topic index page such as https://salvationcall.com/topics/. I found that Page 2 of this index page is broken; that is https://salvationcall.com/topics/page/2/. I am also of the view that I might experience the same problem with pagination as my forums keep growing. I have searched the bbPress site for solutions to no avail. I stumbled on a few pieces of information that suggested that setting “Forum root should show” to “Topics by Freshness” instead of “Forum Index” kind of works. However, it did not work in my case. I have diactivated many other plugins but still cannot find the cause. Any help?

    #223042
    bhkh
    Participant

    Thanks again for such a quick reply!

    1. since this relates to bbpress attachments plugin specifically, it would be better to ask there – Milan should be able to help

    So I just now tested putting the code (in this case a link) I’m trying to filter in the body of a reply in addition to having it be in the attachment (hadn’t thought about trying that before) but before I posted I saw <div class="bbp-attachments"> in the page source and so figured that attachments were something in core bbP, not just the GD bbPress Attachments plugin.

    And the result of that test now is that the link in the body of the reply is also not filtered. So I think I’m back to this being a bbP thing and not a GD bbPress Attachments.

    I notice that you also asked about empty replies in that forum as well as this forum where I gave you a fix – it is very frustrating for plugin authors and helpers when they spend time on an issue only to find that the original poster has already fixed it

    I totally get that! At the time, I had no idea what the response rate was going to be. Sometimes communities/companies reply within the hour (as you did, thanks!!) or if they will take weeks. So not being sure which was causing the problem, I did post in both places. Please forgive me. I was surprised that both places replied so quickly.

    It would be polite to do this

    I did! Within minutes of seeing his response. Wasn’t it visible to you? Should I have linked back to the forum as well? I’m happy to, I just thought the code was enough. I totally know the frustration of support posts that end with “Oh, never mind, I fixed it.” and no solution.

    Anyway, since I now know that my filter also doesn’t catch things in the body of the reply either (and I would like it to) are we back to this being a bbP thing? Are there other troubleshooting things I’m missing? I have disabled all other plugins and tried a default theme.

    #222983

    In reply to: Allow empty replies

    Robin W
    Moderator

    I must hang my head in shame and admit that I had inadvertently hidden the error message. How many times do I have to read “remove all plugins and use default theme” before I remember to do it completely every time.

    🙂 🙂

    great – glad you are fixed 🙂

    #222982

    In reply to: Allow empty replies

    bhkh
    Participant

    Thank you so much for such a fast and helpful reply!

    I must hang my head in shame and admit that I had inadvertently hidden the error message. How many times do I have to read “remove all plugins and use default theme” before I remember to do it completely every time.

    The UX for the error message is not great, especially on a smaller laptop screen. The message is hidden below the fold upon refresh. I wonder why there can’t be validation before the submit button is clicked.

    However, you solved the bigger problem of being able to submit a reply with only an attachment. I had thought about a solution like you proposed but had no idea how to do it.

    Thanks again!

    #222466

    In reply to: Forum url changes

    pawanahluwalia
    Participant

    I haven’t tried adding an extra forum to test it. I am just assuming it defaults to the highest forum ID, which is what it is currently doing.

    #222362
    tumptyteapot
    Participant

    Hi
    When logged in and we use the forum search the results are password protected and they shouldn’t be.

    WordPress 5.8
    bbPress Version 2.6.6

    Mizan Therapy

    I have disabled all plugins apart from bbPress and tried it on a default theme but the problem persists.

    #222160
    tw4040
    Participant

    Is there any theme or way to use WordPress to make a forum that has two columns of independent replies? I refer to something that looks like this:

    https://www.debate.org/opinions/should-18-and-19-year-olds-be-exempted-from-the-death-penalty

    Using BBpress, etc. by default only gives you one single column of replies.

    #222152
    lolataylor1
    Participant

    WordPress 5.8
    bbPress 2.6.6
    BuddyPress 9.0.0
    Astra Theme 3.6.5

    Help! I have read every forum post about creating new custom roles in bbPress, but it still isn’t working for me. The created role names are displaying on my Users page in my Admin dashboard, but the roles themselves are not working as intended. When I assign a user a forum role, it is adding it under the “Roles” [i.e., Subscriber (WP Role), Founder (bbPress Role)] and not “Forum Roles.” I tested the different user role settings and they, too, are not working.

    Am I missing something or doing something wrong? I’m new to bbPress and very frustrated after spending hours trying to get this to work.

    This is the code I have create and placed in my Code Snippet plugin. The forum is being added to a paid members only website, so the URL would not be useful.


    function authorready_add_new_roles( $bbp_roles ) {
    $bbp_roles['bbp_probation'] = array(
    'name' => 'Probation',
    'capabilities' => custom_capabilities( 'bbp_probation' )
    );

    $bbp_roles['bbp_subscriber'] = array(
    'name' => 'Subscriber',
    'capabilities' => custom_capabilities( 'bbp_subscriber' )
    );

    $bbp_roles['bbp_founder'] = array(
    'name' => 'Founder',
    'capabilities' => custom_capabilities( 'bbp_founder' )
    );

    $bbp_roles['bbp_leader'] = array(
    'name' => 'Group Leader',
    'capabilities' => custom_capabilities( 'bbp_leader' )
    );

    $bbp_roles['bbp_moderator'] = array(
    'name' => 'Moderator',
    'capabilities' => custom_capabilities( 'bbp_moderator' )
    );

    $bbp_roles['bbp_administrator'] = array(
    'name' => 'Administrator',
    'capabilities' => custom_capabilities( 'bbp_administrator' )
    );

    return $bbp_roles;
    }

    add_filter( 'bbp_get_dynamic_roles', 'authorready_add_new_roles', 1 );

    function authorready_add_role_caps_filter( $caps, $role )
    {
    /* Only filter for roles we are interested in! */
    if( $role == 'bbp_probation' )
    $caps = custom_capabilities( $role );

    if( $role == 'bbp_subscriber' )
    $caps = custom_capabilities( $role );

    if( $role == 'bbp_founder' )
    $caps = custom_capabilities( $role );

    if( $role == 'bbp_leader' )
    $caps = custom_capabilities( $role );

    if( $role == 'bbp_moderator' )
    $caps = custom_capabilities( $role );

    if( $role == 'bbp_administrator' )
    $caps = custom_capabilities( $role );

    return $caps;
    }

    add_filter( 'bbp_get_caps_for_role', 'authorready_add_role_caps_filter', 10, 2 );

    function custom_capabilities( $role )
    {
    switch ( $role )
    {

    /* Capabilities for 'probation' role */
    case 'bbp_probation':
    return array(
    // Primary caps
    'spectate' => true,
    'participate' => false,
    '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' => false,
    'edit_topics' => false,
    'edit_others_topics' => false,
    'delete_topics' => false,
    'delete_others_topics' => false,
    'read_private_topics' => false,

    // Reply caps
    'publish_replies' => false,
    'edit_replies' => false,
    '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,
    );

    /* Capabilities for 'subscriber' role */
    case 'bbp_subscriber':
    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' => false,
    'edit_topics' => false,
    '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' => true,
    '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' => false,
    );

    /* Capabilities for 'founder' role */
    case 'bbp_founder':
    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' => false,
    'edit_topics' => false,
    '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' => true,
    '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' => false,
    );

    /* Capabilities for 'group leader' role */
    case 'bbp_leader':
    return array(
    // Primary caps
    'spectate' => true,
    'participate' => true,
    'moderate' => true,
    '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' => false,
    'edit_topics' => false,
    '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' => true,
    'delete_replies' => true,
    'delete_others_replies' => true,
    'read_private_replies' => true,

    // Topic tag caps
    'manage_topic_tags' => false,
    'edit_topic_tags' => false,
    'delete_topic_tags' => false,
    'assign_topic_tags' => true,
    );

    /* Capabilities for 'moderator' role */
    case 'bbp_moderator':
    return array(
    // Primary caps
    'spectate' => true,
    'participate' => true,
    'moderate' => true,
    'throttle' => true,
    'view_trash' => true,

    // 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' => true,
    'delete_others_replies' => true,
    'read_private_replies' => true,

    // Topic tag caps
    'manage_topic_tags' => false,
    'edit_topic_tags' => true,
    'delete_topic_tags' => true,
    'assign_topic_tags' => true,
    );

    /* Capabilities for 'administrator' role */
    case 'bbp_administrator':
    return array(
    // Primary caps
    'spectate' => true,
    'participate' => true,
    'moderate' => true,
    'throttle' => true,
    'view_trash' => true,

    // Forum caps
    'keep_gate' => true,
    'publish_forums' => true,
    'edit_forums' => true,
    'edit_others_forums' => true,
    'delete_forums' => true,
    'delete_others_forums' => true,
    'read_private_forums' => true,
    'read_hidden_forums' => true,

    // Topic caps
    'publish_topics' => true,
    'edit_topics' => true,
    'edit_others_topics' => true,
    'delete_topics' => true,
    'delete_others_topics' => true,
    'read_private_topics' => true,

    // Reply caps
    'publish_replies' => true,
    'edit_replies' => true,
    'edit_others_replies' => true,
    'delete_replies' => true,
    'delete_others_replies' => true,
    'read_private_replies' => true,

    // Topic tag caps
    'manage_topic_tags' => true,
    'edit_topic_tags' => true,
    'delete_topic_tags' => true,
    'assign_topic_tags' => true,
    );

    break;

    default :
    return $role;
    }
    }

    #222151

    In reply to: Help with Forum Roles

    mairag
    Participant

    Thank you Robin.

    I did the change but didn’t solve the issue, let’s see if OP had more luck.

    This is my updated code for the new role Crochetera.

    // bbPress custom 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 crochetera */
        $bbp_roles['bbp_crochetera'] = array(
            'name' => 'Crochetera',
            'capabilities' => custom_capabilities( 'bbp_crochetera' )
            );
     
        return $bbp_roles;
    }
     
    function add_role_caps_filter( $caps, $role ) {
        /* Only filter for roles we are interested in! */
        if( $role == 'bbp_crochetera' )
            $caps = custom_capabilities( $role );
     
        return $caps;
    }
     
    function custom_capabilities( $role ){
        switch ( $role ) {
     
            /* Capabilities for 'crochetera' role */
            case 'bbp_crochetera':
                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'        => false,
                    'edit_topics'           => false,
                    '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'  => true,
     
                    // Topic tag caps
                    'manage_topic_tags'     => false,
                    'edit_topic_tags'       => false,
                    'delete_topic_tags'     => false,
                    'assign_topic_tags'     => false,
                );
     
                break;
     
            default :
                return $role;
        }
    }
    myblackf150
    Participant

    Hello,

    I copied the code forms-topic to create a very simple form for use in only one forum.
    How I may please pre-select the forum from the drop-down that selects which forum to post by default? I’d assume it would require the forum ID but I do not know how to make it select to that forum by default.

    Thank you for any assistance.

    #222144

    In reply to: Help with Forum Roles

    Robin W
    Moderator

    ok, thanks.

    It is a load order issue, so we need to add the filters once everything is loaded.

    So for @techinbermudas example we would have

    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 )
    {
        $bbp_roles['bbp_gcamdev'] = array(
            'name' => 'GCam Developer',
            'capabilities' => custom_capabilities( 'bbp_gcamdev' )
            );
         $bbp_roles['bbp_romdev'] = array(
            'name' => 'ROM Developer',
            'capabilities' => custom_capabilities( 'bbp_romdev' )
            );
        $bbp_roles['bbp_kerneldev'] = array(
            'name' => 'Kernel Developer',
            'capabilities' => custom_capabilities( 'bbp_kerneldev' )
            );
        $bbp_roles['bbp_modder'] = array(
            'name' => 'Modder',
            'capabilities' => custom_capabilities( 'bbp_modder' )
            );
        $bbp_roles['bbp_member'] = array(
            'name' => 'Member',
            'capabilities' => custom_capabilities( 'bbp_member' )
            );
     
        return $bbp_roles;
    }
    
    function add_role_caps_filter( $caps, $role )
    {
        /* Only filter for roles we are interested in! */
        if( $role == 'bbp_gcamdev' )
            $caps = custom_capabilities( $role );
     
        if( $role == 'bbp_romdev' )
            $caps = custom_capabilities( $role );
     
        if( $role == 'bbp_kerneldev' )
            $caps = custom_capabilities( $role );
    
        if( $role == 'bbp_modder' )
            $caps = custom_capabilities( $role );
    
        if( $role == 'bbp_member' )
            $caps = custom_capabilities( $role );
    
        return $caps;
    }
     
    
     
    function custom_capabilities( $role )
    {
        switch ( $role )
        {
            case 'bbp_gcamdev':
                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,
                );
    
            case 'bbp_romdev':
                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,
                );
    
            case 'bbp_kerneldev':
                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,
                );
    
            case 'bbp_modder':
                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,
                );
     
    
            case 'bbp_member':
                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'        => false,
                    'edit_topics'           => false,
                    '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;
        }
    }

    which adds the filter once the theme and all plugins are loaded.

    #222018
    Robin W
    Moderator

    I’ve just upgraded my test site to wordpress 5.8 and all looks ok.

    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

    Health Check & Troubleshooting

    Then come back

    #221996
    centralstatesmedia
    Participant
      Running wordpress 5.8, php 7.4

    • have deactivated all plugins except bbPress
    • switched to a default theme
    • flushed permalinks
    • cleared cache
    • repaired forums

    bbPress All Replies still getting a 502 error. What can I do. WP Engine states segmentation faults, which is common with plugin error. Any advice?

    #221870
    Robin W
    Moderator

    the keymaster role is further down the profile – it is an additional role to the wordpress one.

    If you have keymaster set for you, then 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

    Health Check & Troubleshooting

    Then come back

Viewing 25 results - 426 through 450 (of 6,774 total)
Skip to toolbar