What I'm looking for is a user list which presents a limited number of user names on the screen (20 is a good number for me, although I suppose a variable to select the number displayed would be best) and then uses a pager to display an embedded menu for selection of alternate names. I really need an alphabetic pager, as simply a numeric pager doesn't work too well.

Would you consider adding a Pager based on the alphabet? Look at http://drupal.org/project/user_list for an example. It would require changing the settings slightly because you wouldn't want to allow the actual table to be sortable if the information was being presented in paged output.

Your module allows for a display of, and most importantly sorting on, profile fields, while I had to hack user_list to be able to do so. In my case there is a profile field appropriately entitled "sortname" which I wanted to use as the basis for ordering the display. So I hacked user_list to use that one field for ordering the ouput and to display that instead of user->name, as well.

user_list hasn't been upgraded to 5.x and the author isn't sure it makes sense to update it. Again, I've hacked it up to 5.1 for my purposes, but I'd much rather use a maintained module going forward.

I would think looking at user_list would give you a running start on implementing an alphabetic pager (not that I'm implying you need one!)

Comments

pukku’s picture

Assigned: Unassigned » pukku
Status: Active » Closed (works as designed)

Hi! The reason that I don't provide a pager is that sorting is one of the major criteria for our use of this module, and as you noted, with a pager sorting becomes difficult.

If you have a patch that adds the functionality to site_user_list, I would be happy to look at applying it.

Sorry,
Ricky

drupal777’s picture

I'll take a shot at it when I get the proverbial "round tuit". Hopefully not too delayed.

However, I still think that a numeric pager would be a good idea. If a site has thousands of users, mandatorily loading the entire list might be a bottleneck.