We have a similar setup to what you require, except that we allow the Main Page to be seen by everyone.
Below is the section of configuration from our LocalSettings.php to achieve this:
Hope this helps,
Graeme
# # The following line should be commented, otherwise these settings will # throw away the settings on DefaultSettings.php (you probably don't want this). # With this line commented you will only overwrite the settings you explicitly # define here (that's what you probably want). #$wgGroupPermissions = array(); $wgGroupPermissions['*' ]['createaccount'] = false; $wgGroupPermissions['*' ]['read'] = false; $wgGroupPermissions['*' ]['edit'] = false;
#Prevent new user registrations $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1);
# Pages anonymous (not-logged-in) users may see $wgWhitelistRead = array ("Main Page", "Special:Userlogin");
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jason Spirko Sent: 01 August 2007 03:11 To: 'MediaWiki announcements and site admin list' Subject: Re: [Mediawiki-l] Use Special:UserLogin as Main Page
Rob:
We are using MediaWiki for our company wiki, when a employee goes to our wiki they are taken to the main page and then they are able to navigate through the site. I want the employees to login *before* they are directed to the main page (or any page for that matter).
I use namespace protection throughout the site and to make it simpler for the employees it would be easier if they logged in first (every employee has an account w/permission to edit various namespaces). Some employees are confused by the login "errors" they receive when they want to edit a page. After I explain that its not an error and that they need to login to edit pages they understand. But I'm just trying to curb these panic attacks by making them login before they are even allowed to access the site.
I hope this makes sense...
Jason Spirko Systems Administrator Xoran Technologies Inc.
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Rob Church Sent: Tuesday, July 31, 2007 9:49 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Use Special:UserLogin as Main Page
On 01/08/07, Jason Spirko jspirko@xorantech.com wrote:
I'm sorry, my intentions were not to mislead anybody. I was looking for a way to make users login first, then be directed to the wiki.
I apologize for any confusion. I am new to MediaWiki and PHP. I'm struggling to get this up and running for my company and
implement the
features they would like to see.
I appreciate the help you all have given me so far.
Perhaps it would be useful if you could briefly restate the problem, assuming none of the solutions provided to date have been helpful, so we can understand what we're being asked?
Some indication of expected behaviour would be great.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
.............................................................. ...................... This message (including any attachments) contains confidential and proprietary information intended only for the addressee. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete this message and attachments from your system. If you have any questions about this e-mail please notify the sender immediately. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
CAUTION: This message was sent via the Public Internet and its authenticity cannot be guaranteed.
************************************************ The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email. ************************************************