Tips and Tricks HQ Support Portal › Forums › WP eMember › Restrict bbpress Forum Topics?
Tagged: bbpress integration, emember and bbpress, forum integration, not logged into bbpress, protect bbpress topic
- This topic has 20 replies, 5 voices, and was last updated 10 years, 1 month ago by wzp.
-
AuthorPosts
-
August 29, 2012 at 3:40 pm #7274streidlMember
I would like to create a forum where all topics are visible for everyone, but only users from a certain Membership level (or role) can view the real content…
How is it possible to restrict the Topics’ content with eMember
Using the Capabilities of the Members plugin doesn’t work – it only allows access or no access to private/hidden forums completly, not for the topics.
Thanks
August 30, 2012 at 1:31 am #48785adminKeymasterYou can protect any BBPress topic content the same way you protect a WP Post or Page.
1) Edit the BBPress forum topic in question.
2) Look for the “eMember Protection options” section below the topic editor.
3) Set your protection preference.
Now, anyone can go to this topic URL as normal but the actual posts/text inside the topic will only be visible to logged in member of the correct membership level.
August 30, 2012 at 7:32 am #48786streidlMemberWell I was more thinking of a general automatic protection of a complete forum. Editing each new topic is not quite practical I guess.
August 31, 2012 at 7:59 am #48787adminKeymasterWe are working on a feature that will allow you to protect a BBPress forum and then all the topics that belong to that protected forum will also get protected. I will give you an update when we finish this feature.
September 3, 2012 at 1:37 am #48788adminKeymasterWe have completed this feature. You can now protect a BBPress forum using eMember’s protection settings and eMember will protect the content of each topic that belongs to that protected forum. The following documentation has more details on this:
September 3, 2012 at 3:42 pm #48789February 21, 2013 at 4:18 am #48790nomadamyMemberThis is great, but it doesn’t seem to be working properly for me. I protected a forum, and when I’m logged in at a level that should not be able to access that forum, not only can I see the forum, I can add a new topic! Then, when I click submit and the topic loads, it says “you don’t have permission to view this content”. It seems like this message should appear much earlier in the process, or that the forum shouldn’t even appear in the list of forums available (I set up three, two of which this level can access, one it can’t).
Is it possible to hide the forum from the list entirely if it is not accessible to a membership level, or a way to prevent someone from entering a new topic in a forum they don’t have permission to access? Is there some other kind of protection I need to enable for this to work? Thanks!
February 22, 2013 at 4:19 am #48791adminKeymasterI would like to take a look at your setup to understand the situation better. I sent you an email to get access to the site so I can do that.
February 22, 2013 at 6:06 pm #48792nomadamyMemberI got your email and filled out the form; let me know what you figure out. Thanks!
Update: This should be fixed now.
October 11, 2014 at 8:13 pm #48793frankbriseMemberIs it possible to hide the forum from the list entirely if it is not accessible to a membership level?
October 11, 2014 at 11:05 pm #48794wzpModeratorYou can place the forum sortcodes such as [bbp-forum-index] onto pages that are protected by membership level.
October 12, 2014 at 5:41 pm #48795frankbriseMemberBut, it’s not possible to only hide it from the list for a specific membership?
October 12, 2014 at 7:25 pm #48796wzpModeratorhttps://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88
Let’s say you have 4 membership levels (1, 2, 3, 4) and you want to hide it from membership level 1:
[emember_protected for=2-3-4]
[bbp-forum-index]
[/emember_protected]
Anyone who is not logged in as membership level 2, 3 or 4, will get the default protected content message.
If you want to display a specific message, then do this:
[emember_protected for=2-3-4 custom_msg=”I know something that you don’t know!”]
[bbp-forum-index]
[/emember_protected]
October 13, 2014 at 3:23 am #48797frankbriseMemberI want to show the forum index to all of my membership, but I want to hide the forums/categories in the index if they don’t have the membership level for it. Is it possible? Maybe with add_filter in function.php…
October 14, 2014 at 2:18 am #48798adminKeymasterLet me investigate this a little.
-
AuthorPosts
- You must be logged in to reply to this topic.