7 May 18:44
Re: Is there a way to control edit rights for talk pages differently from content pages?
From: Derrick Farnell <derrick.farnell@...>
Subject: Re: Is there a way to control edit rights for talk pages differently from content pages?
Newsgroups: gmane.org.wikimedia.mediawiki
Date: 2008-05-07 16:44:25 GMT
Subject: Re: Is there a way to control edit rights for talk pages differently from content pages?
Newsgroups: gmane.org.wikimedia.mediawiki
Date: 2008-05-07 16:44:25 GMT
That went above my head! Perhaps if I just added a line for each non-talk namespace? That is: $wgNamespaceProtection[NS_MAIN] = array( 'sysop' ); $wgNamespaceProtection[NS_MEDIAWIKI] = array( 'sysop' ); $wgNamespaceProtection[NS_TEMPLATE] = array( 'sysop' ); $wgNamespaceProtection[NS_WIKI_TITLE] = array( 'sysop' ); etc. plus: $wgGroupPermissions['sysop']['sysop'] = true; ? Also, is there way to allow only users to be able to edit their own user page, admins or not (while letting anyone edit their talk page)? Derrick On Wed, May 7, 2008 at 5:29 PM, Thomas Dalton <thomas.dalton@...> wrote: > On 07/05/2008, Thomas Dalton <thomas.dalton@...> wrote: > > 2008/5/7 Daniel Barrett <danb@...>: > > > > > How about a foreach loop through the array of namespaces, then change > the exceptions afterward? > > > > > > No point - the exceptions list would be just as long as doing it the > > other way around. There's a talk namespace for every non-talk one. > > As always, the idea comes to me just as I click send... I think > non-talk namespaces generally have even IDs and talk namespaces odd > ones. If that really is the case, then you can do a foreach loop and > check if the id is even or odd (using "foo % 2 == 0" or whatever it is > in php) and set the protection accordingly. > > _______________________________________________ > MediaWiki-l mailing list > MediaWiki-l@... > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l >
RSS Feed