by wood2695 » June 3rd, 2010, 6:37 am
Hey drcoach. I am trying to accomplish similar things using WP+s2M+bbPress, but going about it a different way. Just thought that I'd share what I know in hopes that you and I can solve our issues together.
First, regarding your specific question (both originally and to Elizabeth)... I don't have a certified answer on whether or not it will work on bbPress since that is really a stand alone platform, but I can say that I have got a deep integration of bbPress on my WP site and I just tried doing what you are attempting, by defining (several variations) URIs in s2M to protect '/forum'. Like you, it did not work, so I suspect that Elizabeth is absolutely correct.
Now let me explain what I'm attempting to do... likely a similar reason to yours, with a different approach. I've got s2M installed for members to (pay and) join. Some content will be accessible only if you're a member and logged in. But my real goal for s2M was to protect the forum. So I am also using a bbPress plugin called 'zaerl Visibility' that gives you control to show/hide/lock any forums/topics/posts based on a users role. So in theory, as long as you've got your bbPress install deep integrated, any user that is logged in could have access to what you define and those that aren't, couldn't. The problem with this is that s2M assigns users to custom roles based on their s2M level (ie. s2Member Level 4), which don't translate to standard WP roles, which in turn do not translate into your standard bbPress roles.
So if you are like me and sign up members using s2M and have a forum that you'd like to protect, I suggest using that zaerl plugin and then all we have to do is find a way to make s2M automatically populate an additional bbPress role into our user table (the SQL stuff is just over my head). Then again, if your forum is not deep integrated (sharing cookies and whatnot) then this wouldn't really work for you either.
If nothing else, I can confirm that s2M will not protect my (bbPress) '/forum' directory.