jldupont / mediawiki

Automatically exported from code.google.com/p/mediawiki
0 stars 0 forks source link

ConditionalShowSection: added NotInGroup #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I used the ConditionalShowSection extention but I needed some more feature. 
This is the first time I touch to MediaWiki extention, so I did a little bit 
more than needed in order to "play" with the code. Please find the modified 
extention attached.

Here are the modifications I made :
* For Logged parameter, allow user to give the litteral value 'false'. All 
other values are converted into boolean by PHP and used as is (means that empty 
strings or 0 will make false, other values will make true).
* I added a NotInGroup parameters which allow to display the text only if the 
user is not in a given group. Of course, this parameter can be used in the same 
time as others, which allow, for example, to display a text for a user member 
of the "user" group but not of the "sysop" group.

As this was rather a big change, I modified the version number of the extention 
into 2.0.

Hope this can help someone…

Stéphane.

Original issue reported on code.google.com by svey...@gmail.com on 4 Aug 2011 at 11:30

Attachments: