Skip to:
Content
Pages
Categories
Search
Top
Bottom

add_role on my site and influence of bbpress

  • @sagive

    Participant

    i need to create a new top of user and want to give it “read=>true” capability only…

    example

    $cpar_capabilities = array(
        'read'	=> true
    )
    add_role('course_participant', 'Course Participant', $cpar_capabilities);

    would this mean he / she cant publish on the forums and if so how can i add the right capabilities so those user can participate in the forums but have read only permission
    or any type of other permissions on my site?

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

    Moderator

    bbpress has a separate set of capabilities, so you can set permissions for the wordpress part of your site totally separately to the capabilities for bbpress.

    see

    https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    and if needbe

    Custom Capabilities

    @sam-rohn

    Participant

    the separate bbpress dynamic caps have been very frustrating for me, i had actually been able to rig something up as the OP described a few years ago with user role editor plugin, but it was broken by the caps change in 2.2 🙁

    Roles and Capabilities in bbPress 2.2

    an interface to set granular permissions per forum by user or user role for bbpress would be a HUGE boon, this is a core feature of all other forum software i am aware of

    otherwise, here is an article on customizing bbpress dynamic caps, haven’t tried this one yet

    http://gawainlynch.com/customising-dynamic-roles-in-bbpress-2-2/

    i have seen robin’s new plugin too, might do almost what i need but i haven’t had a chance to test it yet, but ultimately my goal would be the ability to create different forums for different customized (custom code or URE etc) member roles which are auto-assigned by s2 member

    sam

    @ramiy

    Participant

    I think this is a WordPress question, not bbPress.

    @sagive

    Participant

    Thanks @robin-w thats all i need to know.

    Nice to see you here @ramiy 😉

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