Easily view members of each role

Junyor - January 31, 2007 - 04:51
Project:Members
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Junyor
Status:active
Description

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.

AttachmentSize
contrib-head.members.by-role.junyor.patch5.31 KB

#1

Junyor - January 31, 2007 - 04:52

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

#2

Junyor - January 31, 2007 - 04:52
Status:active» needs review

#3

Junyor - January 31, 2007 - 04:53
Assigned to:Anonymous» Junyor

#4

Junyor - January 31, 2007 - 05:06

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

AttachmentSize
contrib-head.members.by-role-and-status.junyor.patch 2.03 KB

#5

Junyor - January 31, 2007 - 05:07

Make that, this patch.

AttachmentSize
contrib-head.members.by-role-and-status.junyor_0.patch 1.94 KB

#6

Stephan_M - April 3, 2007 - 17:32

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

#7

Junyor - April 3, 2007 - 17:38

Are you using 4.7 or 5.x?

#8

Stephan_M - April 3, 2007 - 18:00

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

Patch members6.patch won't apply correctly.

#9

Junyor - April 3, 2007 - 18:11

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.

#10

Stephan_M - April 3, 2007 - 18:32

Works. Thank you very much.

#11

Junyor - April 3, 2007 - 18:39

You're welcome! Do you like it?

#12

Stephan_M - April 3, 2007 - 19:07

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.

#13

Stephan_M - April 3, 2007 - 19:13

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?

#14

Junyor - April 3, 2007 - 19:29

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

#15

wmostrey - April 25, 2007 - 09:30
Status:needs review» duplicate

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

http://drupal.org/node/126924

#16

Junyor - January 8, 2008 - 03:39
Version:HEAD» 5.x-1.x-dev
Status: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?

 
 

Drupal is a registered trademark of Dries Buytaert.