User Search Question

User Search Question

by Italo Marques -
Number of replies: 0

Hello everybody.

This might sound a bit silly but here goes. I usually search for users by their 'username' and I already modified the file  user/filters/lib.php so the Username field would show without me having to click the "Show Advanced" button all the time.

I also tested changing the line (in the same file):

return implode(' AND ', $sqls);
to
return implode(' OR ', $sqls);

So I could search for multiple usernames by adding more username filters and while this works it sort of screws up the search if I add any other filters.

Is there any way for me to search for users by inserting a, lets say, comma-separated string of usernames (ie: user001,user002,user003)? I know I can easily achieve this by using Ad-hoc Database Queries or Custom SQL Queries but I'm thinking about giving non-sql savvy users such as Teachers the ability to search for multiple students at once.

Thanks in advance for your attention.

Average of ratings: -