bbPress Plugin Browser »

Forum Restriction (1.5)

Download

Version: 1.5

Other Versions

Last Updated: 2007-2-16

Requires bbPress Version: 0.73 or higher

Compatible up to: 0.75

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(9)

Your Rating

Author: David Bessler


  1. affacat, I won't be fixing this one because I've written a new alternative to both this plugin and private forums. It allows hidden forums with entry by either user number or user type. It uses newer abilities from bbPress 0.9 to pre-filter all results instead of what these plugins mostly do with filtering the results afterwards. It should also be faster.

    The catch is it's brand new so I'm still awaiting bug reports and doesn't have an admin menu yet:
    http://bbpress.org/plugins/topic/hidden-forums/

    Posted: 4 years ago #
  2. I am using this plugin because it's for a client site, and thus I need a user-friendly admin interface, and can't afford to go with a brand new plugin. (Even though I think _ck_ is a star and I use other plugins by same - thanks!) So, I have summarized a few things I to do to make this work, in case others need this functionality in the interim - some of this has been said already in this thread, but thought it might be helpful to have it all in one place.

    To get the admin menu to show up:
    REPLACE function forum_restriction_adminnav() with the following:

    function forum_restriction_adminnav(){
    	bb_admin_add_submenu(__('Forum Restriction'), 'use_keys', 'forum_restriction_admin_page');
    }

    To deal with "not a valid user" error:
    REPLACE if ($pos == FALSE) in forum_restriction_admin_page function with:
    if ($pos === FALSE) (three equals signs - approximately line 50)

    To make sure admin users can see all forums:
    REPLACE ALL occurrences of if ($pos === FALSE && !empty($forum_restriction_allowed_in_forum[$forum->forum_id])) { with:
    if ($pos === FALSE && !empty($forum_restriction_allowed_in_forum[$forum->forum_id]) && !bb_current_user_can( 'use_keys' )) {

    To be compliant with PHP 5.1+:
    REPLACE all occurrences of "split" with "explode," as "split" is deprecated in later versions of PHP.

    To use display name field:
    Install latest Display Name plugin. Note that if you do NOT install this, you can simply use login names.

    Posted: 2 years ago #
  3. kehlers,

    What version are you using? I would love to get this working on 1.0.2; I've tried other restriction plugins and none have worked for me. Thanks!

    Posted: 2 years ago #

RSS feed for this topic

Add a Comment

You must log in to post.