Disclaimer: I do not support this plugin.
After my recent adventures with phpBB I’ve decided to switch to bbPress. phpBB has served me well for a while, but there are two major downsides: you can’t use custom PHP inside your template, and to install plugins you have to edit a lot of the core files. The latter especially sucks, so I went looking around for a better piece of forum software.
bbPress seemed like a good choice: small, easily customizable and a very usable admin panel. Unfortunately development has been rather slow lately and some basic functions you’d expect on a forum are still missing. Fortunately though, it’s so easily customizable and looks a lot like WordPress (which I have plenty experience with) that I was able to write some plugins of my own.
One of the most important missing pieces to me was the ability to hide a section of the forums from certain usergroups. As an admin, I want to have a place where I can discuss ongoing projects and other administrative activities with my fellow admins without everyone reading along. So I made a plugin that allows me to hide forums from usergroups I specifiy in the admin panel.
(if you don’t care about this story just jump to the download link)
What does it do?
After looking around in the bbPress plugin repository I found a plugin that basically does what I was looking for (Private Forums). Unfortunately, this one was broken (no wonder, last updated in 2007) so I just went ahead and re-wrote it. My plugin basically does the same:
- Adds a page to the admin panel in which you can change your settings
- Allows you to restrict forums to only registered users, moderators or admins
- Filters restricted forums and posts from the front page, search results, tags, rss feed and user history
- Throws an error if a user tries to manually visit a forum or thread that’s restricted to him
- Download restricted-forums-for-bbpress.zip
- Extract restricted-forums.php and upload it to your
- Go to “Plugins” in your admin panel and activate Restricted Forums
- Go to the “Restricted Forums” page and set which forums are restricted and who is allowed to see them
- Optionally, add a custom error message in the text box.
The following functions have not been added yet, but I might add them in future versions:
- Add “Key masters” as a separate usergroup from Administrators
- Recursive restrictions (restricting a forum category automatically sets those rights to it’s child forums, except when specified otherwise)
- (…Request a feature)
- 1.0.1: Fixed non-existing array on first use (March 25, 2011)
- 1.0.0: Initial version (March 6, 2011)