Topic on Project:Support desk/Flow

Special groups edit pages belong to them&change default mail content

13
Rachel1208 (talkcontribs)

MediaWiki 1.22.4 PHP 5.4.26 (apache2handler) MySQL 5.5.36

Hi~Now my wiki lets all users except "sysop" unable to edit pages. However, now the requirement changed: let special group like:group A ,can edit the page belong to that group. What should I do now?

And the other question is that is it possible to change the content of mail which is sent to users who monitor some pages? And which file should I edit?

Any help will help me!! Thanks~

Ricordisamoa (talkcontribs)

I do not understand what "belong" means when referred to pages. Maybe you're looking for page protection with custom restriction levels.

To change default email messages, go to "Special:AllMessages?prefix=enotif" on your wiki and create custom messages that you want to overwrite.

Rachel1208 (talkcontribs)

Hello!Thank you for your kind reply! I am sorry the first question was not clear. And I;d like to restate it: Now,my users are divided into several groups like sysop, groupA,groupB, and no one has the rights to edit pages except sysop according to my BOSS requirements. However, he now requires that members in groupA can only edit the page “Department A”, meanwhile, the page “company A" can only be edited by sysop and menbers in groupA. And the same to groupB which can only edit the page:“Department B". I have tried to protect the page "Department A", however, it showed that that page can only be edited by sysop or autoconfiremed users or all users...There were no other groups that I established before, like groupA.

I hope the new description will not confuse you :) Thanks!

Ricordisamoa (talkcontribs)

Use $wgRestrictionLevels:

// add 2 additional protection levels
array_push($wgRestrictionLevels, 'groupA', 'groupB');
// give the "groupA" permission to users in the "groupA" group
$wgGroupPermissions['groupA']['groupA'] = true;
// give the "groupB" permission to users in the "groupB" group
$wgGroupPermissions['groupB']['groupB'] = true;
// give the "groupA" and "groupB" permissions to sysops (needed so sysops can apply this protection levels to pages)
$wgGroupPermissions['sysop']['groupA'] = true;
$wgGroupPermissions['sysop']['groupB'] = true;

Then, you should be able to protect "Department A", "company A" and "Department B".

Rachel1208 (talkcontribs)

Oh~~yes! That is exactly what I want! Thx thx and thx!!!

Rachel1208 (talkcontribs)

Sorry to bother you again, Samoa. I have to say I met a new problem..

Because I want to let users input their email address when they do registration, I tried to use the same way to change the content of "createacct-email-ph"and"createacct-email-optional" as you told me, and then I thought the registration interface would have changes at the same time.

However, the content was still the custom message.. :(

88.130.112.50 (talkcontribs)

Hi Rachel,

go to the page, on which you see the wrong texts. Then add to the URL ?uselang=qqx or &uselang=qqx, if there already are parameters. You will see the name of the system messages, which MediaWiki is using on the page. Now pick that message, which you want to change, let's say it would be called "logintext" and then go to the wiki page MediaWiki:Logintext. Being a wiki admin, you can edit this text to the text you want. You can edit languages by adding them to the URL, e.g. you can edit the German text by modifying MediaWiki:Logintext/de.

Rachel1208 (talkcontribs)

Hi~thank you for your help firstly.

However, I have to say it didn't work. When I changed the text of for example, 

"createacct-email-ph" as admin, even it had been changed successfully, there was no change on the registration page where "createacct-email-ph" was used...

Ricordisamoa (talkcontribs)
Rachel1208 (talkcontribs)

Sorry, but it did not work..

And I found a strange thing, when I click the "special page" and click "creat account" as admin, the content was changed; when I click "creat account" as a unregistered user, the content has no change. I was really confused... And would you mind to tell me in which file are these messages called? For example, I want to replace "createacct-email-optional" with "createacct-email-required" on the creat account page. Sincerely thank you for your reply

Ricordisamoa (talkcontribs)
Rachel1208 (talkcontribs)
114.66.4.212 (talkcontribs)
Reply to "Special groups edit pages belong to them&change default mail content"