× Joomla Facebook Connect support forum

Topic-icon Country and Website Jomsocial fields

Active Subscriptions:

None
14 years 1 month ago #22012 by mancon
Hi

I am setting the mapping for jomsocial custom fields, I think country and URL type fields cannot be mapped and are not shown.

Is this normal? is there a workaround or it this planned to be supported in the future?

thanks!
The topic has been locked.
Support Specialist
14 years 1 month ago #22027 by alzander
Manuel,
If you edit the /plugins/jfbcprofiles/jomsocial.php file, around line 522, you'll see the following line:
$query = 'SELECT * FROM #__community_fields WHERE type="text" OR type="textarea" OR type="date" OR type="birthdate" ORDER BY ordering';
Update that to the following (adding the --OR type="url"--)
$query = 'SELECT * FROM #__community_fields WHERE type="text" OR type="textarea" OR type="date" OR type="birthdate" OR type="url" ORDER BY ordering';

That should show URL type fields in your Profiles area of JFBConnect. Obviously test to make sure the URL is imported properly.

You can also try adding --OR type="country"-- to the line above to show the country field. However, the reason we don't currently do that is Facebook doesn't always return a country value that lines up exactly with the options in JomSocial. For 99% of the countries, you should be fine.. but again, test!

Please let us know how that goes, and if you run into any issues or have other questions.

Thanks,
Alex
The topic has been locked.