How can I restrict all forum content to members only?
-
How can I restrict all forum content to members only?
I know that this is an oft-discussed topic, but I have yet to find a satisfactory solution.I want to have a website that has public content and a private forum.
All posts and pages will be private – except for all forum content.‘bbPress Members Only’is a great and mature solution, but it bars access to all posts and pages except for a few defaults.
Many membership plugins exist, including free ones. I could use one of those, but they not designed for this specific purpose. As such they require configuration for this specific case. This could work, but there are risks to privacy when configuring and updating a general-purpose plugin.
I found a plugin (sorry, can’t remember the name) that does most of what I want, but it leaves topic archives exposed. I think the point of that was that it allows a forum to advertise its content. This is the opposite of what I want.
The approach that I’m about to experiment with will be a programmatic one:
In PHP I will parse the URL. If the URL contains the string ‘forums’, then I’ll redirect the request to a gatekeeping page.In the meantime, if anyone can tell me about an approach or a plugin that I’ve missed, then please let me know.
- You must be logged in to reply to this topic.