mairag (@mairag)

Forum Replies Created

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

  • mairag
    Participant

    @mairag

    Done, thank you!


    mairag
    Participant

    @mairag

    Hi Robin!

    I have access to the db, I will dig a little more there. It would be really helpful if this was added as a feature.

    Thanks!

    In reply to: Help with Forum Roles

    mairag
    Participant

    @mairag

    It’s working for me too, thanks Robin!

    In reply to: Help with Forum Roles

    mairag
    Participant

    @mairag

    Ok, I’ll be waiting for an update.

    Thanks!

    In reply to: Help with Forum Roles

    mairag
    Participant

    @mairag

    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;
        }
    }
    In reply to: Help with Forum Roles

    mairag
    Participant

    @mairag

    Yes, I’m using a Genesis child theme, added the plugin compatibility for Genesis too. Also, disabled all my plugins to check for any incompatibility but the problem is still there.
    The user role is created and can be assigned in the Forum settings but is not assigned to the new users and it always says – No role for these forums – when I select the new role in the user profile and save the change.

    In reply to: Help with Forum Roles

    mairag
    Participant

    @mairag

    Hi Robin, I’m placing it in functions.php…

    In reply to: Help with Forum Roles

    mairag
    Participant

    @mairag

    I’m having the same issue, I’ve created a new role as I don’t want participants to create new topics, but the new role is not saved in the Settings and hence is not being applied to the users.

    I hope someone can chime in.

    In reply to: Index page is empty.

    mairag
    Participant

    @mairag

    ???


    mairag
    Participant

    @mairag

    That would be very useful.
    I finally decided to make a new WP install on my server and create the forum site on a subdomain, so it won’t be part of my site network and it has its own login/register options, much easier for a newbie like me, maybe is not the best solution but it works for now.

    Thanks for your time!


    mairag
    Participant

    @mairag

    Thanks Koyla, will try with Google Translator and your tutorial. I’ll let you know if I have any question.


    mairag
    Participant

    @mairag

    I’m having this problem on my multisite installation as well, I know this is an old thread but there’s no much info available to solve it. I’m quite new and I don’t understand the solution provided here, can someone explain it step by step, like for dummies?

    Thanks in advance.

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