I want to create a page on my website so users of the site can view other users on the site and filter the results based on certain criteria, such as "location" or "sex", I have come across this website that was built in Drupal: http://teamsugar.com/people/filter - This shows exactly what I am trying to do, however I believe this site was heavily modified so I'm not sure if this is possible without making a lot of changes to the code. I would appreciate if anyone can point me in the right direction for obtaining this sort of functionality, I've been searching the modules for a while now and so far haven't come across anything for this.

Comments

WorldFallz’s picture

Entering the words "teamsugar people filter" into the d.o. search box yielded Detailed User Search, using for every profile field search-input-field as the first link with "... user has nobody a detailed user search? // http://teamsugar.com/people/filter how is that build? detailed user search the search on ..." as the teaser. it says: "the search on teamsugar site is a view with the filters that you see exposed" which is indeed what it looks like to me alsoh, just heavily themed.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

techguy10’s picture

hmm ok thanks for pointing that out, I did a search on "teamsugar" but didn't think to do a seach on "team sugar people filter" I guess I am lacking in search skills.

WorldFallz’s picture

I wasn't trying to be a smart@ass-- I've starting adding how I find answers to posts to the posts themselves so people can start to learn how to help themselves. I'm hardly a drupal guru yet, but I've gotten very good at finding answers--usually on the first page of the first query. For me the hardest part of groking drupal was learning how to find answers-- there is literally a TON of gold on d.o., the key is sorting the wheat from the chaff.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

imrook’s picture

It looks like you could do this using Views with exposed filters. The fields can be simple taxonomy fields and the filters for taxonomy are already there for you. Probably the only modification you'll have to do it to theme the output. The Views Bonus pack would probably help you out there too.

techguy10’s picture

Those other threads don't give much useful information.. does anyone know how they got the profile avatars to display in the results?

Nevermind, its part of the views module as I know see, I wish I would're realized earlier I could do this with views because I spent a lot of time messing around with faceted search and other modules that lead to dead ends.

WorldFallz’s picture

For most social networking/user based sites (where the users themselves are actually content), you're going to want to use one of the users as nodes modules (ie nodeprofile) to get the most flexibility/functionality for your user profiles. Once you set up a node for each user with cck fields and/or taxonomy fields to capture the data you want to track, all of that becomes exposed to the Views module.

Views spits out lists of nodes in various generic formats (teasers, tables, lists, etc)-- the teamsugar people filter pages looks to be a heavily themed view of user nodes with exposed filters (the drop down boxes). The picture is probably just replacing the standard output of the view results with a themed $user->picture.

There's some good info on theming views (this time the better results came from googling with the words "drupal theming views"):

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz