Page 1 of 1
s2Member/ bbPress Plugin
Posted:
May 15th, 2011, 2:41 am
by CrownOfMars
Hey guys,
In the options it asks for the "Server path to your bbPress® plugins directory:" - i'm not really sure what mine is. I'm using the newly released bbPress plugin for Wordpress, not the stand alone version. I'm not sure if this makes a difference?
I've tried:
domains/stephenjohnmartin.com/html/spa/wp-content/plugins/bbpress/ (This is where the plugin exists)
It simple says the directory doesn't exist
Thanks.
Re: s2Member/ bbPress Plugin
Posted:
May 15th, 2011, 12:59 pm
by Cristián Lávaque
I don't know the plugin, but if it's not a separate install, i.e. it's working from inside WordPress, then you won't need the bridge.
You could manage access with URI restrictions for starters, and maybe used s2Member's advanced conditionals where you can use PHP in your forum.
WP Admin -> s2member -> General Options -> URI Restrictions
WP Admin -> s2Member -> API / Scripting -> Using Advanced Conditionals
WP Admin -> s2Member -> API / Scripting -> Advanced Query ConditionalsI hope that helps.
Re: s2Member/ bbPress Plugin
Posted:
May 22nd, 2011, 11:29 am
by seifip
I also have problems using s2Member with the new bbPress plugin. Until today, I've been using the old standalone bbPress through the s2Member bridge and everything worked fine. I've now installed the new bbPress plugin and users with s2Member user roles can't create new topics or reply anymore. ie. only admins can participate in the forums.
Re: s2Member/ bbPress Plugin
Posted:
May 22nd, 2011, 11:35 am
by Cristián Lávaque
Could you point me to the new plugin's page, please?
Also, tell me how you have set up the plugin and s2Member, so I understand what you have.
Re: s2Member/ bbPress Plugin
Posted:
May 22nd, 2011, 11:51 am
by seifip
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
Re: s2Member/ bbPress Plugin
Posted:
May 22nd, 2011, 12:01 pm
by seifip
Oups... Actually after further testing it looks like it didn't fix anything
Re: s2Member/ bbPress Plugin
Posted:
May 22nd, 2011, 1:15 pm
by seifip
ok, I think I've manged to fix it somehow, but I have done way too many edits and some problems may have been unrelated to default s2Member + bbPres installation...
So long story short, please test s2Member compatibility with the new plugin, both when both are just installed, or when bbPress is upgraded from the standalone version with the bridge.
Re: s2Member/ bbPress Plugin
Posted:
May 22nd, 2011, 1:29 pm
by Cristián Lávaque
Cool, glad you fixed it. Yeah, many edits is not the best.
I'll try it later and see if there are any obvious problems.
Re: s2Member/ bbPress Plugin
Posted:
May 22nd, 2011, 4:16 pm
by velpeo
Just want to confirm, this method does work, but once the core file is changed, need to deactivate and reactivate the plugin, as BBP only changes the capabilities for roles on plugin initiation.
This is not a good long term solution, because BBP is still in beta, and will have many updates in the coming weeks, so maybe if there is enough demand Jason could add a small feature to kickstart forum permissions for roles, inside of s2.
Thanks for sharing this code seifip
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
Re: s2Member/ bbPress Plugin
Posted:
May 23rd, 2011, 4:43 am
by Jason Caldwell
Thanks guys.
Yea, I saw that a new version of bbPress was just released.
I'll be taking a look at this asap, sometime this week.
Re: s2Member/ bbPress Plugin
Posted:
May 23rd, 2011, 10:50 am
by velpeo
Thanks Jason,
The plugin offers the power of forums, without the frustration of having to theme bbpress. My interest in BBpress was always tempered by the need to rebuild a wp theme to fit, this solves that problem. It uses the custom post types, from what I can tell, to achieve the full forum experience, including many hooks, to deliver the power of bbpress directly into wp.
The hooks are there to add custom roles, and permissions, meaning it could be either assigned to a level role in s2 or a premium capablity too?
Re: s2Member/ bbPress Plugin
Posted:
May 24th, 2011, 7:22 pm
by Jason Caldwell
Thanks guys. I've addressed this issue in the development release, which is currently undergoing testing. If you're an s2Member Pro customer with an Unlimited Site License, you can grab the latest release candidates from inside your account at s2Member.com. Otherwise, no worries. We'll have this update available publicly in just a few days.
* **(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.
( click to enlarge screenshot )