Derrick Farnell | 7 May 18:44

Re: Is there a way to control edit rights for talk pages differently from content pages?

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
>

Gmane