Topic on Extension talk:RightFunctions/Flow

Great Extension! .. But where is "Usergroups"? (plural)

5
Revansx (talkcontribs)

There is a "userrights" function which returns all of rights of a given user, and there is a "usergroup" function that returns the highest group a user belongs to, but why isn't there a "usergroups" function that works like "userrights" and returns all of the groups that a user belongs to? ... Would that be hard to add? .. Is there a reason not to?.

Thank you!

-Rich

Kghbln (talkcontribs)

I believe this would indeed be a convenient parserfunction. Currently I do checks like e.g. {{#ifgroup: coordinator |[[Is in user group::Coordinator| ]] | |{{FULLPAGENAME}} }} per existing user group on each user's page to get that information.

Revansx (talkcontribs)

so.. if you're willing to teach me, I'll be happy to join the dev team for this extension and try my hand at adding this capability.. whatsayyou? :-)

(btw.. I fixed my typo in the OP.. it was certainly confusing to read.. sorry)

Kghbln (talkcontribs)

I would if I could but I am a novice programmer if at all, basically I am not. Pinging @Skizzerz: who is the creator of this extension.

Skizzerz (talkcontribs)

See How to become a MediaWiki hacker for details on how to set up a local MediaWiki install. Then you need to download the extension from git (using the developer clone via SSH), make your changes, and then submit them to gerrit using the git review command. See here for a tutorial on how to set up git and git-review on your machine.

Once submitted, I'll perform a code review and will either let you know of any issues, or I will merge in the change.

Reply to "Great Extension! .. But where is "Usergroups"? (plural)"