All,
I'm currently running MediaWIki 1.6.3 on my production Wiki. I am working on upgrading to 1.7.1 and transitioning all the little tweaks. I want to take the time to do it right and move things into extensions where possible.
That said, is there a way to extend the MagicWords system via an extension? I've grown to enjoy my __NOCACHE__ addition...
Petr,
Using your NamespacePermissions extension, is there a way to retrieve a list of namespaces to which a user has RO or RW access?
Thanks.
Dan
On 13/07/06, Dan Davis hokie99cpe+wiki@gmail.com wrote:
That said, is there a way to extend the MagicWords system via an extension? I've grown to enjoy my __NOCACHE__ addition...
There are various hooks for it. If that fails, it wouldn't be too much work, code-wise, to convert it to a parser hook extension...same principle, except one would use <nocache /> to do it.
Rob Church
On 7/13/06, Rob Church robchur@gmail.com wrote:
On 13/07/06, Dan Davis hokie99cpe+wiki@gmail.com wrote:
That said, is there a way to extend the MagicWords system via an extension? I've grown to enjoy my __NOCACHE__ addition...
There are various hooks for it.
Thanks, Rob.
Guess it would've helped if I had thought to check out mediawiki-1.7.1/docs/magicword.txt before I mailed the list. :)
Dan
Maybe, but that's what those guys are here for :)
-- gary kirk
On 7/14/06, Dan Davis hokie99cpe+wiki@gmail.com wrote:
On 7/13/06, Rob Church robchur@gmail.com wrote:
On 13/07/06, Dan Davis hokie99cpe+wiki@gmail.com wrote:
That said, is there a way to extend the MagicWords system via an extension? I've grown to enjoy my __NOCACHE__ addition...
There are various hooks for it.
Thanks, Rob.
Guess it would've helped if I had thought to check out mediawiki-1.7.1/docs/magicword.txt before I mailed the list. :)
Dan _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Maybe, but that's what those guys are here for :)
-- gary kirk
On 7/14/06, Dan Davis hokie99cpe+wiki@gmail.com wrote:
On 7/13/06, Rob Church robchur@gmail.com wrote:
On 13/07/06, Dan Davis hokie99cpe+wiki@gmail.com wrote:
That said, is there a way to extend the MagicWords system via an extension? I've grown to enjoy my __NOCACHE__ addition...
There are various hooks for it.
Thanks, Rob.
Guess it would've helped if I had thought to check out mediawiki-1.7.1/docs/magicword.txt before I mailed the list. :)
Dan _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Hi Dan,
Using your NamespacePermissions extension, is there a way to retrieve a list of namespaces to which a user has RO or RW access?
One can know if a user is in one of the autocreated groups: ex. in_array( "ns{$ns_title}RO", $user->getGroups() );
It is possible also to know if a user can do a particular action with an article in a namespace: e.g. $user->isAllowed( "ns100_read" ). This is a more adequate way to obtain access permissions for a given namespace, since the access level is determined by permissions; autogroups just contain most usable sets of permissions.
Petr
Strangely enough, I did not really answer your question, I'm sorry.
In order to get a list of namespaces having a given access level one should use, I believe, Language::getNamespaces() in an obvious way, in combination with what I wrote before.
-- Petr
2006/7/14, Petr Andreyev gulliput@gmail.com:
Hi Dan,
Using your NamespacePermissions extension, is there a way to retrieve a list of namespaces to which a user has RO or RW access?
One can know if a user is in one of the autocreated groups: ex. in_array( "ns{$ns_title}RO", $user->getGroups() );
It is possible also to know if a user can do a particular action with an article in a namespace: e.g. $user->isAllowed( "ns100_read" ). This is a more adequate way to obtain access permissions for a given namespace, since the access level is determined by permissions; autogroups just contain most usable sets of permissions.
Petr
mediawiki-l@lists.wikimedia.org