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.