Currently, it's possible to click on a role in the members list and see only users with that role. Well, I've taken that a step further. With this patch, there's a new tab at the top of the members list, enabling the user to get a nice display of all available roles and choose which one to see members of.

Comments

junyor’s picture

Note: This patch relies on the Drupal 4.7 patch in http://drupal.org/node/47829#comment-188270.

junyor’s picture

Status: Active » Needs review
junyor’s picture

Assigned: Unassigned » junyor
junyor’s picture

If you want to use this patch along with http://drupal.org/node/114441, you'll also want to have the attached patch.

junyor’s picture

Make that, this patch.

Stephan_M’s picture

Hi junyor,

this patch doesn't work anymore. In order to apply your patch you needed to take members.module (1.38), which was head at that time, and patch it with your members6.patch
Then you had to apply contrib-head.members.by-role.junyor.patch
Right?
Currently there is no way to get members.module (1.38)

Version 4.7.x is 1.39 at the moment
HEAD is 1.40 at the moment

I'd really like to have these user-role tabs you got. Care to help?

Stephan

junyor’s picture

Are you using 4.7 or 5.x?

Stephan_M’s picture

Using 4.7.x - It's version 1.39 2007/02/01

Patch members6.patch won't apply correctly.

junyor’s picture

members6.patch has already been applied to the 4.7 branch, so you don't need to apply it anymore. Just apply the original patch for this issue, contrib-head.members.by-role.junyor.patch. It applied cleanly to the 4.7 branch here.

Stephan_M’s picture

Works. Thank you very much.

junyor’s picture

You're welcome! Do you like it?

Stephan_M’s picture

Perfect. Should be a feature in head.

Just a minor issue:
I wanted to have a menu item that links to "/members/roles/2", so that a certain role would be selected directly, but then unfortunatly the tabs are gone.

Stephan_M’s picture

Fixed. Need to include full path "http://www.name.org/members/roles/2". Then the tabs are still there and the second role is selected directly.
Strange. Perhaps something to do with clean-urls?

junyor’s picture

Odd. It sounds more like a bug in the menu system.

wmostrey’s picture

Status: Needs review » Closed (duplicate)

Will take it one step further and allow for multiple members pages

http://drupal.org/node/126924

junyor’s picture

Version: master » 5.x-1.x-dev
Status: Closed (duplicate) » Active

Unfortunately, this is still quite difficult with the Drupal-5 branch of members.module. If you have a lot of roles, you'll need to create a new members page for each role. The views way of handling this would be arguments, but the members.module doesn't support arguments. Any plans for that?

wmostrey’s picture

Status: Active » Closed (won't fix)