I made a module which should accomplish this same goal with CB 1.2, and without requiring the CB Advanced Search component. A key benefit of this module is it is not subject to any of the bugs in CB Advanced Search, because the search results are displayed by Community Builder itself.
But there's a little problem--my module gets CB 1.2 to return search results, but avatar and age range searching do not seem to work correctly. I'm not sure the problem is in my module, though, because CB 1.2's own search feature returns the same (incorrect) results. Perhaps I haven't configured CB 1.2 correctly in some way. The "cb_birthday", "cb_gender", and "avatar" fields are all published and searchable. "cb_birthday" is a date field with the following settings:
Minimum Year shown: -100
Maximum Year shown: -18
Display on profiles as: Age in years
Display N years text: Display just 'N'
If searchable, then search by: Age
Alternate field title for age/time ago/birthday only display: Age
Display Date and time: Date only
Is anything wrong with these settings?
The URL the module creates is like this:
index.php?cb_gender__srmch=is&cb_birthday__srmch=is&option=com_comprofiler&task=usersList&Itemid=&limitstart=0&search=&cb_gender=Male&cb_birthday__minval=18&cb_birthday__maxval=30&avatar=1&cb_title__srmch=&cb_title=&cb_eyes__srmch=&cb_eyes=&cb_haircolor__srmch=&cb_haircolor=&cb_height__srmch=&cb_height=&cb_weight__srmch=&cb_weight=&cb_build__srmch=&cb_build=&cb_lookingfor__srmch=&cb_agerangedesired__srmch=&cb_agerangedesired=&cb_myrace__srmch=&cb_racetodate__srmch=&city__srmch=&city=&cb_state__srmch=&cb_state=&cb_country__srmch=&cb_country=&cb_denomination__srmch=&cb_denomination=&occupation__srmch=&occupation=&company__srmch=&company=&location__srmch=&location=&website__srmch=&website=&interests__srmch=&interests=&cb_maritalstatus__srmch=&cb_maritalstatus=&cb_smoking__srmch=&cb_smoking=&cb_drinking__srmch=&cb_drinking=&cb_education__srmch=&cb_education=&cb_onthesubjectofchildren__srmch=&cb_onthesubjectofchildren=&cb_christianwalkage__srmch=&cb_christianwalkage=&cb_docofgraceeffects__srmch=&cb_docofgraceeffects=&cb_quiettime__srmch=&cb_quiettime=&cb_biblicalcharacter__srmch=&cb_biblicalcharacter=&cb_singlecontent__srmch=&cb_singlecontent=&cb_fourqualities__srmch=&cb_fourqualities=&cb_passionate__srmch=&cb_passionate=&cb_mostthankful__srmch=&cb_mostthankful=&cb_othercharacter__srmch=&cb_othercharacter=&cb_mostinfluential__srmch=&cb_mostinfluential=&cb_relationship__srmch=&cb_relationship=&cb_favorites__srmch=&cb_favorites=&cb_work__srmch=&cb_work=&cb_goals__srmch=&cb_goals=&cb_leisure__srmch=&cb_leisure=&cb_live__srmch=&cb_traveled__srmch=&cb_traveled=&cb_family__srmch=&cb_family=&cb_activitiesinterests__srmch=&cb_additionalactivities__srmch=&cb_additionalactivities=&cb_notcovered__srmch=&cb_notcovered=&username__srmch=&username=
Is anything wrong with this URL?
(Eventually the module will read those parameters from the list of published, searchable CB fields.)
If you'd like the module itself, the code is available using the Bazaar VCS using this command:
[code:1]bzr branch lp:mod-cb12-search[/code:1]
I'll publish a downloadable module installer in a minute on
launchpad.net/mod-cb12-search
. Feel free to contribute, everyone!