drupalfun.com
How to implement a user search in Drupal
Hi all. I am a newbie to Drupal and this is the first view i try to create. I want to ask how to implement a user search for my site based in the users profiles i have created using the Advanced Profile Kit module. I have created a a user based view and then added a relationship to the profile node. The fields i added are User:picture and (Content Profile) Node: Title . In the filters section i added (Content Profile) Node: Type = User Profile and (Content Profile) Node: Published Yes . Now how can i make a search box which will search the site profiles based on the profile titles? Thanks for your answers.
Related Questions
Responses
2. Hi Dorien and thanks for your
Hi Dorien and thanks for your answer. I examined a little more the advanced profile kit and i found that it doesn't use the username as the content profile's title. As Michelle told me APK isn't involved in that at all. It has its own Profile Title Node module. So when i create a new user i have to create an account and a user profile for apk. That is rather confusing. I manage to create the view as showed in this image http://img689.imageshack.us/i/userseaarch.png/ . Now i change my question in is there a possibility user account to cooperate with apk?
- Login to post comments
3. Hi pavlov, I am not familiar
Hi pavlov,
I am not familiar with APK. Are you intent on using it?
Why not use content profile instead, as is described in the book?
Content profile puts all the user information in a node, which you can handle with views. And it is automatically created upon registration...
- Login to post comments
4. Hi Dorien, I admit that i
Hi Dorien,
I admit that i haven't read the book yet. APK confused me a lot so i disable it. Also i have disabled and never used the core profile module. I want to ask all the fields during a user registration such as user picture, location, and others from which module come from? Can they be configured along with the fields i will create with my-content-type created with content profile?
- Login to post comments
5. Yes they can. I'd really
Yes they can.
I'd really suggest you follow the instructions in the book for this, as they describe this in detail...
- Login to post comments


1. Hi Pavlos, I am not very
Hi Pavlos,
I am not very familiar with the advanced profile kit, it uses content profile, but it has some hacks in it.
Normally, with content profile, you can just create a node view like you describe.
Add an filter on node title. I believe the adv prof. also uses the username as the content profile's title (like we do in the book). Next expose this filter.
That should give you the search option...
(thanks for you donation btw! It is really appreciated)