Searching for Users

drupalina - July 28, 2007 - 03:43

Say for instance that I want to search for users who are interested in golf. If I type "golf" and ask to search inside "Users", it returns no results, even though I know that there are a few dummy users (for instance Kevin) that I created, who have "golf" listed among their interests on their profile pages. If I'm not mistaken, that's because it searches for User-names and not for profile fields.

Now, what would be the best way to make this work???

I know that there are potentially easy solutions to this problem. And I wanted to see what solutions you will recommend.

What I want is that if someone types "Golf" (interest) when searching inside "Users", she will find all users interested in Golf. Similarly, if she types "Kevin" (username) when searching inside the same "Users" section she will find all Kevins on this site. Or if she types "Kevin Golf", she will find all the Kevins who are interested in Golf. In other words how can I make search users function work in a flexible way... like a keyword search???

What are the best ways of achieving this without loosing other functionalities? Usernode? UserTag (used to denote interests)?

Any suggestions?

site User list

SteveK - July 28, 2007 - 05:58

Hey matrixfighter, I've looked over a couple of solutions over the past week and have found Site User List to be somewhat of a solution for me. It allows you to search through usernames as well as user profile fields. You can modify which fields are outputted.

yeah, but I mean finding

drupalina - July 28, 2007 - 11:56

yeah, but I mean finding users through a seamingly simple search from the search-box in the header. For me it is very important that my end-users have a very seameless and intuitive surfing experience.

This is also very important for me for the following reason: because of Drupal's very inflexible logging in structure, I decided to add a new field "Real Name" -- so that users can write their Full name. This fileld appears in the profiles. So for instance there is a username "marko" who's real name is "Mark Owen". And need the search to search this Real Name fileds inside profiles.

did you check out the

SteveK - July 30, 2007 - 03:50

did you check out the module? it does this for you...

---
www.entityarts.net
www.thejibe.com

I'm not sure...

drupalina - July 30, 2007 - 11:12

I have tested Site User List module before. I like it's optional and flexible search and display functionalities, but this module is not too great in terms of a display that is intuitive to the end-user. For instance I want user's Country field to display as a link. Member's module, though a lot more primitive, is doing that kind of thing. In terms of displaying the user list, I have chosen "Members" module and I have proposed that the 2 modules (Members and Site User List) are merged into one -- see http://drupal.org/node/161186 and http://drupal.org/node/161184

I'm also looking for a solution to display my Buddies in a distinct color (like on Facebook) in this table. And also for "Add to my Buddylist" icon (for those names in the table who are not already in), and also for some special FOAF (friend of a friend) icons to splay as well. But I'm digressing off the topic...

In short, yes, it looks like Site User List is a good and complex module, but In terms of a search I'm looking for a way so that people will be able to do a search from a frint page and immediately get what they are looking for.

links as fileld

drupalina - July 30, 2007 - 11:44

I mean the onlu reason why I didn't go with Site User list (ever tough it is an excellent module), is because I don't know how to get those profile fields to display as %value links -- i.e. If someone is from London, Site_User_List module will just display a plain text "London" -- but what I want is that the end user clicks on "London" and sees all other users from London.

and same thing for all other fields.

Do you or anyone know how to achieve this with Site_Usr_List module???

 
 

Drupal is a registered trademark of Dries Buytaert.