Searching a number range in CGUserDirectory

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
webform
Power Poster
Power Poster
Posts: 366
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Searching a number range in CGUserDirectory

Post by webform »

Is it possible to searching (filtering) a number range in CGUserDirectory in frontend in an user friendly way?

I doubt the casual user is able to use Regular Expression to search a number range, so i would like to make some kind of GUI for the search page in frontend, so the user just have to insert the number range they want to search/filter for.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1076
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Searching a number range in CGUserDirectory

Post by DIGI3 »

Not that familiar with CGUD but could you create min & max fields (or perhaps a slider if you're fancy) for the visitor, a hidden field with the regex, then modify the regex with javascript based on the visitor's input?
Not getting the answer you need? CMSMS support options
webform
Power Poster
Power Poster
Posts: 366
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: Searching a number range in CGUserDirectory

Post by webform »

I think your on to something!

A Min. and Max. field and a regex generator handling the input (Age range). I've just got to figure out to how to handle the age range input when i only have a birthday/year field for each user. ???

Maybe a dropdown for the Min. and Max. field with age ranges (0-100) and the selected value a calculated year based on current year. Or something like that ???
Post Reply

Return to “Modules/Add-Ons”