Search by username
aharown07 - December 12, 2008 - 05:43
| Project: | Advanced User |
| Version: | 6.x-2.x-dev |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | critical |
| Assigned: | earnie |
| Status: | closed |
| Issue tags: | accepted feature request |
Jump to:
Description
Is there a way to include the user name field in the list of filterable fields? I can't believe it isn't there, and I can't figure out how to add it.

#1
I will see what I can do eventually. I don't currently have the time to spare but this is a critical request.
#2
#3
Hey, thanks. Hope it works out.
#4
A quick & dirty for 6.x-2.x-dev version, stick this in filters.inc in the
advuser_filters()function where appropriate.<?php$filters['username'] = array(
'title' => t('Username'),
'where' => "u.name %op '%s'",
'form_type' => 'textfield',
);
?>
Anything majorly wrong with this approach? Apart from not being able to search on a partial username.
#5
@imclean: Have you tried it? It should work even with a partial name using the 'CO' => 'contains' operator.
#6
@earnie: Indeed it does, I didn't realise the operator was for all criteria. It works well. Good moodule, btw.
A nice feature, although certainly not critical, would be to move the operator drop down and the Filter button to the row selected.
#7
If you want to work up a patch and create a new feature request I will consider it.
Earnie
#8
I've committed to CVS @imclean's suggestion in #4.
#9
Automatically closed -- issue fixed for 2 weeks with no activity.
#10
Works great. Many thanks!