Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Allow participants to trash their own topic and replies?

@leonyipa

Participant

hi, sorry for the late reply.

I tried both ways:

1) changing the Participant role directly

// Participant/Default
case bbp_get_participant_role() :
default :
$caps = array(

// Primary caps
‘spectate’ => true,
‘participate’ => true,

// Forum caps
‘read_private_forums’ => true,

// Topic caps
‘publish_topics’ => true,
‘edit_topics’ => true,
‘delete_topics’ => true,

// Reply caps
‘publish_replies’ => true,
‘edit_replies’ => true,
‘delete_replies’ => true,

// Topic tag caps
‘assign_topic_tags’ => true,
);

break;
}

after I changed it, nothing happened :/

and
2) making custom role, but it says:

Parse error: syntax error, unexpected ‘roles’ (T_STRING), expecting ‘(‘ in /home/gleam/public_html/wp-content/plugins/bbpress/includes/core/capabilities.php on line 216


216: function add_new roles( $bbp_roles )
217: {
Skip to toolbar