SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
Posted:  02 Jul 2005 22:48   Last Edited By: happypad
I've tried setting up a private forum but I've found it will only let me do it for 1 forum. If I try to set it up for more than 1 forum I get either error messages or nothing happens (depending on how I do it).

I've tried every possible code e.g.:

Quote:

$privateforums = array(1, 2, 3 => array(1, 2, 3, 4, 5, 6, 7, 8));

AND

$privateforums = array(1 => array(1, 2, 3, 4, 5, 6, 7, 8));
$privateforums = array(2 => array(1, 2, 3, 4, 5, 6, 7, 8));
$privateforums = array(3 => array(1, 2, 3, 4, 5, 6, 7, 8));

and even(!):
$privateforums = array(1 => array(1, 2, 3, 4, 5, 6, 7, 8)); array (2 => array(1, 2, 3, 4, 5, 6, 7, 8));
array(3 => array(1, 2, 3, 4, 5, 6, 7, 8));


Any ideas? Thanks
Posted:  02 Jul 2005 23:18
Here's the correct code (ex: you want forum 1, 2 to be private and allow users 5 and 10 to use them):
Code:

$privateforums = array(1=>array(5,10),2=>array(5,10));
Posted:  02 Jul 2005 23:29
thanks so much!!
Posted:  14 Dec 2005 00:02
Here is my privateforums array

Code:

$privateforums = array(22 => array(1, 2));


When I try to add more than the two users 1 & 2 like for instance 8,9 and 10 also it will not allow those users other than 1 and 2 to see the private forums.

Im I doing something incorrect?

Here is what I tried to do to add more than the 2 users:

Code:

//private forums, only for a selected subset of users
// = array(private_forum_id => array(allowuserid1, allowuserid2..));
$privateforums = array(22 => array(1, 2, 8, 9, 10));
//only admin can post in read only forums


Any help would be appreciated!
Posted:  14 Dec 2005 12:33
Your syntax is right. Just make sure the user IDs are correct (the 8,9,10). It must work.
Posted:  10 Jun 2011 08:12
Hello - I'm having the exact same problem...did you solve this?

I copied word-for-word, and it works great for only 2 forums, and 2 users. Anything more than that in the array list, and it doesn't work - only makes the first two in the list private.
Posted:  10 Jun 2011 08:59
Your syntax is wrong. Show me your private forum settings.