Extension talk:EditTalkRight

From mediawiki.org
Latest comment: 12 years ago by DulcetTone in topic Won't Work

Won't Work[edit]

I installed this extension, i got the following permissions

$wgGroupPermissions['*'    ]['createaccount']    = true;
$wgGroupPermissions['*'    ]['read']             = true;
$wgGroupPermissions['*'    ]['edit']             = false;
$wgGroupPermissions['*'    ]['edit_talk']        = true;
$wgGroupPermissions['*'    ]['createpage']       = false;
$wgGroupPermissions['*'    ]['createtalk']       = true;

But annon users can't create talk pages.--71.221.196.127 17:03, 16 May 2008 (UTC)Reply

Could you try the latest version now available? Jean-Lou Dupont 17:12, 16 May 2008 (UTC)Reply
I just pulled 1.0.1 off of svn and uploaded it, I get the error
You do not have permission to do that, for the following reason: 

The action you have requested is limited to users in the group user.
This happens on both existing talk pages I try to edit as annon, and non-existing talk pages I try to create as annon.
See my Special:Version page: http://en.codevwiki.org/wiki/Special:Version
Thanks for your help.--71.221.196.127 21:24, 16 May 2008 (UTC)Reply
Fixed now... stupid error on my part whilst hastily trying to get a patch out the door. Try it and comeback to me please. Jean-Lou Dupont 01:58, 17 May 2008 (UTC)Reply
Hey, that fixed it perfect. Do you by chance know how I would be able to make it to where annon users can edit Project:Help Desk as well as talk pages, but nothing else.-71.221.196.127 22:53, 19 May 2008 (UTC)Reply
Contact me privately. Jean-Lou Dupont 00:09, 20 May 2008 (UTC)Reply

Those using php 5.3 and beyond, in order to avoid the "PHP Warning: Paramater 1 to MW_EditTalkRight::onUserGetRights() expected to be a reference", will need to change line 44 from

       public static function onUserGetRights( &$user, &$rights ) {

to

       public static function onUserGetRights( $user, &$rights ) {

Thanks for this last tip right above. I needed that one. Still not seeing the ability to get the functionality, but it doesn't give an error anymore. Tinkering further. 66.31.42.197 19:52, 15 August 2011 (UTC)Reply

Sadly, I am unable to get this working on MediaWIki 1.17.0 -- I put in a print statement to confirm that the user is having the rights added to the set because he already has edit_talk right, but this does not cause the talk page to go into edit mode when it loads. It neither works when there is or isn't a Talk page already created. Have you tried this on 1.17.0 yet? DulcetTone 20:37, 15 August 2011 (UTC)Reply
Got it working. I was seeing the effects of having the new option of requiring users to confirm their email address before they can edit. Thanks so much for this extension... it was exactly what I wanted. DulcetTone 20:59, 15 August 2011 (UTC)Reply