Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – Protect forums to certain level
- This topic has 7 replies, 3 voices, and was last updated 12 years ago by jeckton.
-
AuthorPosts
-
August 14, 2012 at 8:59 am #7162streidlMember
Is it possible to protect the buddypress group forums (bbpress) for certain levels?
I have a free membership level, so a “members only” site wide-protection and Specific Page Lockdown doesn’t work.
Thanks.
August 15, 2012 at 2:49 am #48383adminKeymasterYou do this using WordPress user role capabilities. You can hook each eMember’s membership level to a particular WP User role so when a user signs up the user will have that WordPress role applied. Now, other WordPress plugin’s that uses WordPress user role will work based on the user’s role. More details here:
November 22, 2012 at 9:03 pm #48384jecktonMemberDoes anyone have this working? I want to have a bbpress forum where free members can see some of the content, and the rest is locked down for paid members. I have eMember configured so that a wordpress user is created when they register through eMember, and the forums display appropriately depending on whether they are free or paid. However, eMember is not populating the forum role in the wordpress user, so even if the paid user is able to get to the forum, he can’t do anything. If I manually set the forum role, it is removed once the user signs in. Is there some other plugin I need to use so that eMember keeps the forum role updated on the user profile?
November 23, 2012 at 3:41 am #48385adminKeymasterHi, Just making sure you checked this documentation (this is the eMember and BBPress integration documentation):
Next, in eMember’s membership level, you can specify the user role. When eMember creates a WP user it will set the role to the one you specified. What role have you set there?
November 24, 2012 at 1:56 pm #48386jecktonMemberOk, I just upgraded bbpress (v2.2.2) and eMember (v8.3.6) to make sure that wasn’t the issue. I have a membership level called “Member” and it is set to a role of “Participant”. When I add a new user at this level, then go to the WP list of users, I see the user defined correctly with a Forum Role of participant. I log off WP, go to the site, log in as this new member, go to the forum, and I can see the topics but not reply to them. Then I go sign back into the dashboard as an administrator, look at the WP user definition, and the Forum Role is blank. Any ideas what might be removing this role?
November 25, 2012 at 2:51 am #48387adminKeymasterOk that means you most likely have another plugin (possible some kind of a user/role management plugin) that is messing up the user role after a BBPress login. Can you do this test please:
https://support.tipsandtricks-hq.com/forums/topic/test-to-identy-a-conflicting-theme-or-plugin
November 25, 2012 at 7:36 pm #48388jecktonMemberI took this site back to bare bones, where the only 2 plugins installed were eMember and bbPress. I put the theme back to WordPress Twenty Ten (and even tried Twenty Eleven). Same issue. As soon as I log in with the new member ID, the Forum Role in the user profile is removed. Using 2 sessions, I added the role back in after I was signed in, and the forum protection worked properly. Something in the [wp_eMember_login] component is removing the forum role.
November 25, 2012 at 8:21 pm #48389jecktonMemberApparently the latest version of bbPress has changed the way they handle roles. I scrapped this whole setup and created 2 separate forums, one public and one private. I checked the “Automatically assign default role to new, registered users upon visiting the site” forum setting and made the default role Participant, and then use eMember to control the access for the private forum. I left the public one wide open. Not the best solution, but at least I can move forward for now.
-
AuthorPosts
- You must be logged in to reply to this topic.