Skip to:
Content
Pages
Categories
Search
Top
Bottom

new users automatically are forum administrator


  • p3t3rr
    Participant

    @p3t3rr

    Hi there,

    I am currently setting up a bbpress forum. This is why I post a view threads atm because I have questions. Hopefully, it’s not perceived as spam

    I noticed that new users are automatically assigned to the forum role administrator, eventhough automatic role assignment as forum admin for new users is not checked under settings > forum > user settings for forum.

    Why is this? Am I missing something?

    New users should just get the wordpress default role subscriber and forum role participant.

    Hopefully you can help. best regards, peter

Viewing 6 replies - 1 through 6 (of 6 total)

  • p3t3rr
    Participant

    @p3t3rr

    I just noticed the following: as a site admin I cannot change forum roles of users. I can only assign the role ‘administrator’ or ‘-nor roles for these forums-‘. No option to assign moderators or anything else.

    How could this have happened @robin-w? At one point I installed buddypress, but deinstalled it again.

    I already deactivated and activated bbpress and went through repair forums > default user roles. When I did the repair all users were assigned forum role ‘administrator’.


    Robin W
    Moderator

    @robin-w

    something strange going on!

    I can only suggest it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, 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.

    Then come back

    I’d start by taking out any code in your child theme’s functions file !


    p3t3rr
    Participant

    @p3t3rr

    UPDATE:

    I found the issue. 2 weeks back I added the following function to functions.php > child theme, because I wanted to rename the Keymaster to Administrator:

    // change user role name 'Verwalter' to 'Administrator'
    function ntwb_bbpress_custom_role_names() {
    	
    	// Keymaster
            bbp_get_keymaster_role() => array(
                'name'         => 'Administrator',
                'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
            )
    }
    add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' );
    

    It successfully renamed the role and I was done with the issue. However, it apparently removed all the other default bbpress roles. I thought this function is exclusively for renaming roles as the name suggests.

    I went back and included all other default roles into that function in the child theme (The complete rename roles function can be seen eg here.) Now I see all roles in settings > forum > automatically assign roles. Also in user management I see all forum roles. Also, new forum registrants are automatically assigned to subscriber.

    problem solved.


    Robin W
    Moderator

    @robin-w

    yes renaming a role to an existing role would lead to all sorts of unexpected things


    p3t3rr
    Participant

    @p3t3rr

    ok. issue resolved. thank you very much


    Robin W
    Moderator

    @robin-w

    🙂

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