Topic-icon Get Registration Data

Active Subscriptions:

None
12 years 11 months ago - 12 years 11 months ago #33921 by Murphz
Get Registration Data was created by Murphz
Hi all,
I'm using JFBConnect with Community Builder Profiles.

I've managed the login part and getting the data from the facebook profile. Community builder is divided in some user groups, so in the registration form I also need to ask something to the user, I've mapped correctly the fields in JFBConnect profiles for Community Builder but no user is created for CB, just for normal joomla user.

A part from that, my need is to catch the data passed to the createNewUser function in controllers/loginregister.php, how to do that? What I need is to get the firstname, lastname and cb_profiletype (that are the fields requested in the registration).

In the code I see that $formData; is used to get the password, so, how to get the other data passed by the form? I tried $formData; with no lucky.

Thanks to all,
Andrea

ps: I'm not using SCLogin but the {JFBCLogin} button. Don't really know if that's important.
Last edit: 12 years 11 months ago by Murphz.
The topic has been locked.
Support Specialist
12 years 11 months ago #33925 by alzander
Replied by alzander on topic Get Registration Data
It doesn't matter how you create the Login with Facebook button. Using the {JFBCLogin} tag is fine and does the same thing as the SCLogin module.

For the user that isn't created in CB, my guess is that there are fields you have set as 'Required' in CB that aren't being filled in during registration. *Any* fields in CB that are marked as required must get a value set or CB will reject the user. JFBConnect can only set text-type fields, so any required text-type fields must have a mapping set for them. If you're using radio, select, or other types of fields, then you have to use the "Normal" registration process so that the user can set those values... or mark those fields as not required.

When you're looking to hook into the other data, do you just want the CB profile data? If so, it'd probably be best to add whatever custom code you need into the socialprofiles/communitybuilder.php file. If you need help locating the best spot to edit there, we can help. If so though, please describe a bit more of what you're trying to do so we can give the best suggestion to implement it.

Thanks,
Alex
The topic has been locked.