PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
// Other specific roles
case 'editor' :
case 'author' :
case 'contributor' :
case 'subscriber' :
default :
$caps = array(
// Topic caps
'publish_topics',
'edit_topics',
// Reply caps
'publish_replies',
'edit_replies',
// Topic tag caps
'assign_topic_tags',
);
break;
// Other specific roles
case 'editor' :
case 'author' :
case 'contributor' :
case 'subscriber' :
case 's2member_level1' :
case 's2member_level2' :
case 's2member_level3' :
case 's2member_level4' :
default :
$caps = array(
// Topic caps
'publish_topics',
'edit_topics',
// Reply caps
'publish_replies',
'edit_replies',
// Topic tag caps
'assign_topic_tags',
);
break;
seifip wrote:I just fixed it, but by editing core bbPress files so it's only a temporary solution...
The plugin can be found at http://bbpress.org/forums/topic/bbpress-20-faq It's a beta, but considering the very poor state of the standalone version I'm sure most will switch to it very quickly.
What I had to change in order to fix the problem is to edit the /plugins/bbpress/bbp-includes/bbp-core-caps.php file. On line 378:
- Code: Select all
// Other specific roles
case 'editor' :
case 'author' :
case 'contributor' :
case 'subscriber' :
default :
$caps = array(
// Topic caps
'publish_topics',
'edit_topics',
// Reply caps
'publish_replies',
'edit_replies',
// Topic tag caps
'assign_topic_tags',
);
break;
Adding the four s2Member roles fixed the problem:
- Code: Select all
// Other specific roles
case 'editor' :
case 'author' :
case 'contributor' :
case 'subscriber' :
case 's2member_level1' :
case 's2member_level2' :
case 's2member_level3' :
case 's2member_level4' :
default :
$caps = array(
// Topic caps
'publish_topics',
'edit_topics',
// Reply caps
'publish_replies',
'edit_replies',
// Topic tag caps
'assign_topic_tags',
);
break;
I still can't get users with no role to work... adding "case 'none' " didn't help
* **(s2Member). bbPress® 2.0+.** s2Member has been integrated with preliminary support for bbPress® 2.0+ ( i.e. the new plugin variation for WordPress® ). Please check your Dashboard, under: `s2Member -> Other Integrations` for further details and a list of current limitations.
Users browsing this forum: Yahoo [Bot] and 0 guests