Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
I would like to display Jomsocial users on a map, by filtering them beforehand.
Let's take the following example : every JomSocial users would have the following field (checkbox or radio field) "Human : YES or NO"
I want to filter users having the "Human" field set to "YES" only.
Is there any search engine ? or map module ? or anything else allowing you to do that ?
There is MembersMap module (JS Members Map in Addons, look at My Account - Download section). It displays users on map with location field(s) as parameters.
It does not support custom user profile fields, but in:
there is line 131 in which starts function:
private function getUsers($userid, $limit, $friendsOnly)
and there is on line 160 loop
foreach( $members as $friendId )
that needs to be changed to exclude users that don't have desired custom field value.
If you don't feel comfortable doing this please don't make changes on "live"/production server.
To retrieve specific custom field value from user in that foreach loop use:
All this is untested so please use at your own risk.