Setup a Project Wiki: Difference between revisions

From Research
Jump to navigation Jump to search
m (fixed whitespace)
Line 28: Line 28:
To restrict anonymous viewing:
To restrict anonymous viewing:


<font color=red>sr-hercules01</font> <font color=blue>''wiki_name'' #</font> '''vim LocalSettings.php'''
<font color=red>sr-hercules01</font> <font color=blue>''wiki_name'' #</font> '''vim InstanceLocalSettings.php'''


          #Allow some special pages
#Allow some special pages
          $wgWhitelistRead = array("Special:UserLogin", "Special:UserLogout", "Special:PasswordReset", "MediaWiki:Common.css" );
$wgWhitelistRead = array("Special:UserLogin", "Special:UserLogout", "Special:PasswordReset", "MediaWiki:Common.css" );


          #Restrict general Public from viewing all pages.
#Restrict general Public from viewing all pages.
          $wgGroupPermissions['*']['read']        = false;
$wgGroupPermissions['*']['read']        = false;
          $wgGroupPermissions['*']['createtalk'] = false;
$wgGroupPermissions['*']['createtalk'] = false;
          $wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['*']['createpage'] = false;
          $wgGroupPermissions['*']['writeapi'] = false;
$wgGroupPermissions['*']['writeapi'] = false;
            
            
Disable even research users from reading. Members of "trusted" group can view (as can sysop)
Disable even research users from reading. Members of "trusted" group can view (as can sysop)
   
   
  <font color=red>sr-hercules01</font> <font color=blue>''wiki_name'' #</font> '''vim LocalSettings.php'''
  <font color=red>sr-hercules01</font> <font color=blue>''wiki_name'' #</font> '''vim InstanceLocalSettings.php'''
#Restrict wiki to only users in the trusted group.
#Restrict wiki to only users in the trusted group.
$wgGroupPermissions['user']['read']          = false;
$wgGroupPermissions['user']['read']          = false;
Line 54: Line 54:
To allow bans by account name in lieu of IP address:
To allow bans by account name in lieu of IP address:
   
   
  <font color=red>sr-hercules01</font> <font color=blue>''wiki_name'' #</font> '''vim LocalSettings.php'''
  <font color=red>sr-hercules01</font> <font color=blue>''wiki_name'' #</font> '''vim InstanceLocalSettings.php'''
           # allows bans to be typed in by account name rather than IP
           # allows bans to be typed in by account name rather than IP
           $wgSysopUserBans=true;
           $wgSysopUserBans=true;

Revision as of 09:09, 28 February 2012