actually main goal is a 'user_filter_page(create by views)' can filter user by name, by age, by email, by gender, by country, by hometown.

b'cos i already done 'user_filter_page', filter option got profile_name, profile_gender, profile_email, profile_country, except the profile_birthday cant be expose... (views not support for profile_date filter)

so i think two solution to fix, by i dont know how to create the solution out.

solution 1 #585530: Solution of 'User filter(user search)' expose by views filter. is add one more profile field (but is in 'textfield' type) at birthdays module like this:

<------- birthday admin page --------->

General settings
Profile field (date type): *
profile_birthday (create by profile 'date' type field)

Profile field (textfield type): *
profile_age (create by profile 'textfield' type field)

<------- birthday admin page --------->

then modify the birthday $age value display in profile_age field, so we can expose the profile_age by views filter.

or

solution 2 is add a views filter for profile_date.

add a file views_handler_filter_profile_date.inc to views/module/profile.

i really need to discuss about this two solution, welcome all to show the solution out. i think this is everybody needs.

***to create out this solution is bcos for who user dont use the computer_field & node_profile or content_profile, so pls dont show the solution using computer_field & node_profile or content_profile. thanks.

Comments

merlinofchaos’s picture

Status: Active » Closed (won't fix)

Views does not support filtering on the profile date because the profile date is not stored in a manner that is filterable.

Anonymous’s picture

ic, so any solution filter user by age?

merlinofchaos’s picture

The best solution is to use something like content_profile module which allows you to associate a node with a user, and thus use CCK fields for this stuff. CCK is MUCH more powerful than profile module.

Anonymous’s picture

thanks for your infomation, is that only way to follow?