Quote:
Originally Posted by Rehven
First, great product ElfMage =)
|
Thanks, appreciate the feedback.
Quote:
Originally Posted by Rehven
Using Standard version, I've got my vB group mappings going fine. But how do I restrict wiki access to only certain vB groups? During testing and data-population I want only certain groups to have wiki access.
|
EDIT: Removed Mapping instructions, just realized you had already posted this..
Once you have the mapping taken care of, then you need to set up per group security, which you did already in the changes to LocalSettings.php that you mention.
Quote:
Originally Posted by Rehven
Do I make a group in LocalSettings.php and restrict access there? How will that prevent people seeing the Main Page? Is there actually a way to restrict access to the main page?
|
For instance, if you want to keep all users from viewing any page in your wiki you do use the following:
PHP Code:
$wgGroupPermissions['*' ]['createaccount'] = true;
$wgGroupPermissions['*' ]['read'] = false;
$wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['*' ]['createpage'] = false;
$wgGroupPermissions['*' ]['createtalk'] = false;
'*' means unregistered/not-logged in.
But you could easily create custom groups as well.
Quote:
Originally Posted by Rehven
EDIT: OK I've changed my wiki LocalSettings.php to deny everyone except Sysops and Bureaucrats, but ordinary users can still go to the Main Page (they just get a Permission Error page). I'd like to have non-Sysops/Bureaucrats not even load up the wiki Main Page, possibly redirect to a specific error page. Can this be done with vbWiki?
|
To accomplish this you would need to write a bit of code. In vbWiki_Init.php, at the very end of the file, add the following:
PHP Code:
if (!$wgUser->getID())
exec_header_redirect("http://url/to/page/where/unregs/should/go");
Similarly, you could check for regular vBulletin usergroups:
PHP Code:
if ($vbulletin->userinfo['membergroupid'] != 6)
exec_header_redirect("http://url/to/page/where/non-admins/should/go");
Not sure if this answer your questions (or if these work..

). Let me know in either case.
Thanks.