Extension talk:UserPageEditProtection/Archive1

Don't work with MediaWiki 1.11 :( --201.52.31.55 11:04, 28 September 2007 (UTC)

I'm currently looking at this for version 1.11. There was a rewrite of code that affects this extension for version 1.11. --Hoggwild5 00:24, 6 December 2007 (UTC) A new extension version has been provided for MediaWiki version 1.11 --Hoggwild5 17:17, 6 December 2007 (UTC)

I edited the code just a little:
 * Using local $user var instead of global $wgUser as per Manual:Hooks/userCan.
 * Returning true so that future functions that hook userCan can do their thing.
 * Only $result needs to be passed by reference especially since you're not changing $title or $user.
 * Not checking all sub-pages for the user's name. The previous way would allow someone to create/edit a sub-page under someone else's userpage using their own username (e.g. User:NormalUser/SpamUser). --Egingell 09:40, 16 October 2007 (UTC)

Please add compatibility with version 1.11 and ability of choosing namespases.

Eric -- thanks for the contributions. I'm currently looking at rewriting the extension to function in version 1.11. There was a major recoding of Title.php, where this extension hooks in version 1.11 and I'm evaluating the coding differences now. --Hoggwild5 00:46, 6 December 2007 (UTC) A new extension version has now been provided for MediaWiki version 1.11 --Hoggwild5 17:17, 6 December 2007 (UTC)

The compatibility for choosing namespaces -- not sure what you mean here. This extension has a very specific purpose, and that is to protect user pages from being edited from anyone but the user or an admin. It is not meant to provide protection for other namespaces, and I will not be extending the restriction capability beyond the User pages. Thanks! -Hoggwild5 00:16, 21 December 2007 (UTC)

1.12?
Can you make it work with 1.12?
 * It works with version 1.12. --Hoggwild5 23:33, 22 April 2008 (UTC)

Error
On 1.12 I get the following error: Warning: Cannot modify header information - headers already sent by (output started at /home/hys/public_html/phantopedia/extensions/UserPageEditProtection.php:2) in /home/hys/public_html/phantopedia/includes/WebResponse.php on line 10

What does this mean?


 * I have this extension running on two site with verson 1.12 with no problems whatsoever. If this error message happens only when you have this extension installed, the most likely culprit is that you've got some garbage somewhere in your script file.  This is a common problem in PHP if you've you've got a blank line or a space before the beginning   tag. While a blank line before the <?php start tag may look innocent, when processed by PHP, it will turn into an echo statement printing out a blank line.


 * You can find more on this error by googling "Cannot modify header information".


 * This is not a problem with the extension itself.
 * --Hoggwild5 12:51, 25 May 2008 (UTC)

1.13.2
Testing and works fine as far as I can tell now. Sidearm 14:44, 24 December 2008 (UTC)

A question on this extension
I am a user not a programmer. I did set up our company wiki as far as the actual pages are concerned. My boss requested that we limit the ability to edit pages. Approximately how long should it take our IT department to install this? Booster4324