I'm trying to create a search function of user profile with Views, but it just doesn't seem to be working.

First, I used Profile module to craete custom fields, which are something like:
- Country of origin(dropdown box)
- Year of birth (dropdown box)

Then I used Views to create a filter to allow authenticated users to look for others. The setting looks like this:

Home >> Administre >> Views

Edit view User_Profile_Search

Basic information:
   Access Authenticated user (ticked)

Page:
   Provide Page view - (ticked)
   URL: usearch

   Menu:

   Provide menu - (ticked)
   Menu title: - User search

Fields:
   Name                  Value
   Profile: Country               Country
   Profile: Year of birth        Year of birth

Filters:
   Field                   Value

   Profile: Country               (a list of countries displayed as a listbox)
   Profile: Year of birth        (a list of year in YYYY displayed as a listbox)

Exposed filters:               Field                 Label           Optional         Force Single
   Profile: Country             Country            (ticked)         (ticked)            (ticked)
   Profile: Year of birth      Year of birth     (ticked)         (ticked)          (ticked)

I saved this setting, went to the page 'usearch' and selected criteria (or selected nothing), but it doesn't return anything. There are several users registered with the values in relevant fields and they can be searched with user_search module.

Am I missing some step, or is the filter misconfigured? If you see any mistake, please let me know. Thanks in advance for your help.

Comments

dokumori’s picture

I'm replying to myself, as I found the solution... I noticed that user and profile are not nodes; therefore Views cannot filter or even pick them up at the first place. This can be resolved simply by installing modules 'usernode' and 'nodeprofile'.