Extension talk:EditOnlyYourOwnPage
Add topicVersion 1.11
[edit]This extension does not work with MW version 1.11. --Hoggwild5 03:16, 6 December 2007 (UTC)
Another Example of Wiki = Democracy
[edit]Although I don't think I would use such an extension, I thank you, author(s), for your time and effort. Your extension is a good example of how the wiki principle parallels democracy, and is good for both. Brian7632416 01:29, 27 March 2008 (UTC)
How to change the owner of a page
[edit], so that someone else could be the new editor/owner? Thank you. --83.69.40.1 13:01, 19 June 2008 (UTC) Pavel Kosina
Extension:KeepYourHandsToYourself?
[edit]What's the difefrence to Extension:KeepYourHandsToYourself? --Subfader 15:01, 28 June 2008 (UTC)
Modification : Keep users from editing other users' userpages
[edit]Hi, I installed this extension on my wiki thinking it would prevent users (except sysops) from editing other users userpages, but I then found out it doesn't exactly do that eventually... :o)
I modified the EditOnlyYourOwnPage() function so that it would do what I needed, here's the code if anyone is interested!
function EditOnlyYourOwnPage(&$title, &$user, $action, &$result) {
$name = $user->getName();
$text = $title->getText();
# if page is a user page && if title is not the username && if the action is edit or create the page && if user is not in sysop group
if ($title->getNamespace()==NS_USER && $name!=$text && ($action=='edit' || $action=='create') && !in_array('sysop', $user->getGroups())) {
# User is trying to edit another user's page
$result = false;
return false;
}
# else it's ok, go ahead
$result = true;
return true;
}
--Fish1203 00:22, 26 February 2011 (UTC)
Broken as of version MW 1.18.0
[edit]Hi, I get the following error message after installing MW 1.18.0: "Fatal error: Call to a member function addMessage() on a non-object in /..../extensions/KeepYourHandsToYourself/KeepYourHandsToYourself.php on line 75". A fix would be cool. Cheers --[[kgh]] 20:03, 29 November 2011 (UTC)