Gey guys,
I'm relatively new to mediawiki, but learning fast. I want to be able to give access to only users whom I approve.
I used these lines to disable view access for anonymous users:
$wgGroupPermissions['*']['read'] = false; $wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Help:Contents");
But a user can always login and start viewing. Is there any way that I could restrict registration? Either I approve of the user before his login starts working, or only I have access to "add" new users.
Any suggestions?
Thanks,
Waleed
_________________________________________________________________ Windows Live™ SkyDrive™: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009
E.g. # disable user registration $wgGroupPermissions['*']['createaccount'] = false;
See http://www.mediawiki.org/wiki/Manual:Preventing_access http://www.mediawiki.org/wiki/Manual:$wgGroupPermissions
Gu
Quoting Waleed Pervaiz wpervaiz@hotmail.com:
Gey guys,
I'm relatively new to mediawiki, but learning fast. I want to be able to give access to only users whom I approve.
I used these lines to disable view access for anonymous users:
$wgGroupPermissions['*']['read'] = false; $wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Help:Contents");
But a user can always login and start viewing. Is there any way that I could restrict registration? Either I approve of the user before his login starts working, or only I have access to "add" new users.
Any suggestions?
Thanks,
Waleed
Windows Live SkyDrive: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009 _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Thanks!
I also find a more elegant solution:
Install this extension: http://www.mediawiki.org/wiki/Extension:ConfirmAccount
And this line to localSettings: $wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Help:Contents", "Special:RequestAccount");
voila! unregistered users can now only see those three pages... and to register, you have to "request" an account... bureaucrats have the ability to grant/deny access.
Thanks again!
Waleed
_________________________________________________________________ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009
Awwww, you are really one very lucky and fortunate guy. I left my website open for registration at Dummipedia.orghttp://dummipedia.org/Free_Simplified_Online_Encyclopediafor almost 2 years and hardly anyone does.
PM Poon
On Fri, Jun 12, 2009 at 11:27 PM, Waleed Pervaiz wpervaiz@hotmail.comwrote:
Gey guys,
I'm relatively new to mediawiki, but learning fast. I want to be able to give access to only users whom I approve.
I used these lines to disable view access for anonymous users:
$wgGroupPermissions['*']['read'] = false; $wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Help:Contents");
But a user can always login and start viewing. Is there any way that I could restrict registration? Either I approve of the user before his login starts working, or only I have access to "add" new users.
Any suggestions?
Thanks,
Waleed
Windows Live™ SkyDrive™: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009 _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org