Ok, if I understand this time correctly...
Add in bb_specials.php array defining "group of users by forum", users, which are allowed to create topics. That way:
$poForumsAllowedUsers=array( FORUM_ID1=>array(USER_ID1, USER_ID2, USER_ID3...), FORUM_ID2=>array(USER_ID4, USER_ID5, USER_ID6...), .... );
All forum IDs also must be defined in $poForums array.
For example, I have read-only forums with IDs 2 and 9, and want to assign user with ID 1127 which is able to create topics in the forum ID 9.
$poForumsAllowedUsers=array( 9=>array(1127) );
$poForums=array(2, 9);
After defining users, you will need to paste at the end of your language pack (/lang/eng.php or whatever):
/* Hack for assigning topic creation rights in post-only forums */ if($user_id!=0 and $forum!=0){ if(isset($poForumsAllowedUsers[$forum]) and in_array($user_id,$poForumsAllowedUsers[$forum])){ $tmproForums=array(); foreach($roForums as $key) if($key!=$forum) $tmproForums[]=$key; $poForums=$tmproForums; } } /* --Hack for assigning topic creation rights in post-only forums */
It works on my side...
this would be a good feature for a next version (although i love the simplicity of minibb) - sorry, no new features anymore! Else we will bloat implementing every custom request. This little hack should help you. |