Using profile module, setup a checkbox field, hoping to use views page to return a filtered set of users. Trying to solve two issues at the moment with the view:
1) In another older post, saw that users must have created a node, not just completed their profile in order to show up in a view. Is this still correct?
2) Getting repeated results, when filtering only by the profile checkbox field. Would expect to only get one Unique result for each user name / user picture. (Might be getting one per post submitted?)
Seems very close. Hoping there is an end-run on #1, so can filter just on profile questions in a view - without turning users into nodes, setting up nodeprofile, family, sub module... I tried that already, but seems like extra overhead for this task.
Thanks,
-Greg
Comments
Comment #1
adrinux commentedI'm having a few views+profile problems myself, although probably not the same as yours: http://drupal.org/node/144839
You don't mention which version of Drupal you are using, note that there is a bug in 5.1's profile module http://drupal.org/node/119114 - sounds like that might be an issue for you. It's fixed in DRUPAL-5 head (which will become 5.2).
Comment #2
merlinofchaos commentedNote that if you do not have users somehow attached to nodes, users that have never authored a node cannot show up. So 1) is correct.
Because of this, you will also get 1 result for every node that a user authored. That is why 'usernode' module is currently required to get Views to do a proper list of users.
Unfortunately, that is a problem at the core of Views. I plan to fix this for Views 2, but that'll be Drupal 6 only, so it is likely not a solution you can use for several months at the earliest.
Comment #3
greg@beargroup.com commentedThanks Merlin. Closed this, as it seems like a known issue with Views which wasn't meant to handle users. I ended up just adding a profile checkbox, and using this bit of code in a page to render a normal profile page without views.
Views is super cool... having fun exploring it. thanks for building it.