Skip to:
Content
Pages
Categories
Search
Top
Bottom

Allow user to post same post in different forums

  • @brandi22

    Participant

    We have bbPress used on a website that has different groups. We need instructors to be able to post the same message in more than one forum, for each group. Right now, they’re prevented from doing that. Is there any way we can reduce the restrictions on duplicate content? This is all on a password protected site, so we don’t worry about spam.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @robin-w

    Moderator

    so if only instructors to be able to do this, then you need to add ‘thottle’ to their WordPress permission for their role.

    what role do instructors have ?

    if custom, what creates this role?

    @brandi22

    Participant

    The instructors have the “Subscriber” role. I’ve just given them the forum role of “Moderator”.

    They shouldn’t have any restrictions in timing between posts and they should be allowed to post the same post twice (or more) if needed.

    Thanks!

    @robin-w

    Moderator

    thanks,

    this will add throttle to the participant role

    Put this in your child theme’s function file – or use

    Code Snippets

    add_filter( 'bbp_get_caps_for_role', 'brandi_role_caps_filter', 10, 2 );
    
    function brandi_role_caps_filter( $caps, $role )
    {
        /* Only filter for roles we are interested in! */
        if( $role == 'bbp_participant' )
            $caps['throttle'] = true ;
         return $caps;
    }

    @brandi22

    Participant

    Thank you, Robin.

    To be clear, if this code adds throttle to the participant role, does it allow moderators to have less posting restrictions on the site?

    @robin-w

    Moderator

    moderators already have this ability

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar