× Joomla Facebook Connect support forum

Topic-icon How to map CB gender field

Active Subscriptions:

None
15 years 1 month ago #9607 by dotcom22
hello

I use your last version 3.2.1 with CB 1.4 and I would like map the gender field who is a select box. I already ask for this and you tell me actually your component disallow mapping field other than text field.. However you give me a trick in a past topic (but under version 3.1) who permit to map select box by making a change inside the code of the file /plugins/jfbcprofiles/communitybuilder.php file. At line 189..

Now it seem you have revamped the code of this file and the modification can't be made...

Have you another trick for allow me to map gender field?

thank

PS: I use Facebook User Only with all skip activation enabled
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9653 by dotcom22
Replied by dotcom22 on topic How to map CB gender field
any reply please?
The topic has been locked.
Support Specialist
15 years 1 month ago #9687 by alzander
Replied by alzander on topic How to map CB gender field
Sorry for the delayed response. The same code needs to be modified, but it was shuffled around in that file. Please make the same modification to line 315 of the communitybuilder.php file. Again, simply add the following:
OR type="date" OR type="radio" OR type="webaddress" OR type="select"';

We'll likely be adding this in a future release, but still want to do more testing before we release with the ability to map into select or radio boxes because of the possible support issues it may cause.

Hope that helps, and good luck!
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9691 by dotcom22
Replied by dotcom22 on topic How to map CB gender field
That right I found where to include the code provided and now I'm able to map FB Basic gender field Male/Female ...

However unfortunately no data are imported.. I try with both radio and select field...

Now I remember... Mapping was possible in your past version with radio and select field but no data was imported...

So it seem is really not possible to import gender data inside CB... This is quite annoying because gender is a public data and don't show warning inside the Facebook popup app.. It is also a data useful in the case of my community site where man and woman have different privilege according to their gender...

Have you a suggestion???

In fact I must admit CB is not very flexible about select and radio field. Normally when we create this kind of field (in simple html or even is some other components I use), we must give a name for the select or radio field...than we must also give a name to each option (Male/Female) and set his own value (I'm a Man/I'm a Woman)... So I suspect import is not possible because CB don't allow us to give a name to each option...Only setting a value is possible..
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9692 by dotcom22
Replied by dotcom22 on topic How to map CB gender field
Correction: I'm wrong now data is imported :-)

In fact I have 2 fake FB profile for testing purpose with your component... Until now I make all my test using a FB account where gender was not specified in my FB profile. I make right now another test with my other FB account and gender is now successfully imported in CB...

The only thing I can't explain is why one of my fake FB profile had not his gender specified... Normally when creating a new FB account, gender data is a mandatory field... Very strange...
The topic has been locked.
Support Specialist
15 years 1 month ago #9706 by alzander
Replied by alzander on topic How to map CB gender field
Fields change in Facebook a lot. Depending on when the account was created, it may not have been required.. that day.. or something changed on Facebook's end in an update and that field was removed. Yes, it should be there.. Yes, we've seen stranger things :)

Glad it seems like it's going now, and let us know if there's anything else we can help with!
The topic has been locked.