I need this to, but only mods/admins to begin a topic and members can only reply on them. But this only to a specific forum, all other forums stay “normal”
Do you think this would be an easy code?
If we we’re editing the actual bb code, wouldn’t we just put an if then conditional around the link to post a new topic? Then again… I guess that wouldn’t remove the ability, just the link that makes posting a new topic an ability… hmmm.
What existing plugin do you think my be the easiest to modify to this end?
Put this code in a Plugin. The group “Member” will be affected.
function restrict_bb_got_roles() {
global $bb_roles;
unset($bb_roles->roles);
unset($bb_roles->roles);
unset($bb_roles->role_objects->capabilities);
unset($bb_roles->role_objects->capabilities);
}
add_action(‘bb_got_roles’, ‘restrict_bb_got_roles’);
Put this code in a Plugin. The group "Member" will be affected.
function restrict_bb_got_roles() {
global $bb_roles;
unset($bb_roles->roles['member']['capabilities']['edit_topics']);
unset($bb_roles->roles['member']['capabilities']['write_topics']);
unset($bb_roles->role_objects['member']->capabilities['edit_topics']);
unset($bb_roles->role_objects['member']->capabilities['write_topics']);
}
add_action('bb_got_roles', 'restrict_bb_got_roles');
What happens If you use this? Do only members + higher be able to post here and all can reply and read?