Field mapping with Jomsocial

More
13 years 8 months ago #15743 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Field mapping with Jomsocial
Hi

The integration only means that when a user logged in and register for the event, the data from his Jomsocial's profile will be used to Fill-in Registration Form automatically so that they don't have to type the information again . It however, doesn't create a Jomsocial account (profile) .

If you want to turn off username and password fields, simply go to Event Booking -> Configuration, find the config option User registration integration, set it to No .

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #15769 by PenniMD
Replied by PenniMD on topic Re: Field mapping with Jomsocial
Excellent! Thanks Tuan for that prompt response. Inputting the username actually doesn't pull the record from Jomsocial tho' and I'm assuming it's because we can't map those fields: username, email, address etc. It's ok - I just made the registration form really short :laugh: Thanks a ton!

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #18871 by Keyvision
Replied by Keyvision on topic Re: Field mapping with Jomsocial
I managed to solve an issue I had with some field mapping with Jomsocial so I decided to highjack this thread in case someone comes across this component breaking bug in the future.

Basically with the Jomsocial integration turned on, users were unable load the Individual Registration or Group Registration tasks in the front end of the component due to a php error. After a couple hours I found that the php error was occurring on:
line 127 of com_eventbooking\helper\fields.php $rowProfile->$fieldName = $fieldValue ;

After printing out some values I found that some of the mapped fields did not have Field Codes, I'm quite sure that somewhere in the Jomsocial documentation it states that those fields must have values but for some reason on this site they were skipped.

I added field codes by going to Components>Jomsocial>Custom Profiles and editing the values there and all was well.
I also understand that this is generally a user error and not Joomdonations problem but if they added a tad of error checking for nulls it would stop the PHP error from occurring or maybe if a note in the documentation on how to avoid this problem in the future could save some issues for someone in the future.

Cheers,
Keyvision

tl;dr Make sure all Jomsocial custom profiles have field codes

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc