Topic-icon Fill out custom fields with Facebook-login

Active Subscriptions:

None
11 years 6 months ago #49233 by livagroup
Hi,

I have created some custom fields, following this: www.inmotionhosting.com/support/edu/joom...-user-profile-plugin .

The thing is that when people register with Facebook, the optional fields are not filled.

Is there some way to get these informations into the custom fields?

Thanks.
The topic has been locked.
Support Specialist
11 years 6 months ago #49236 by alzander
JFBConnect currently supports the User - Profile plugin. We don't have support for additional customized plugins that are based on the User - Profile plugin because there's no guaranteed format for the naming of that plugin.

However, you can make some modifications to our Social Profile - Joomla plugin that should make it recognize your new custom plugin. To do so, edit the /plugins/socialprofiles/joomla/joomla.php file. Around line 186, you'll see:
protected function getProfileFields()
    {
        $fields = array();
        if (JPluginHelper::isEnabled('user', 'profile'))
        {
            SCStringUtilities::loadLanguage('plg_user_profile', JPATH_ADMINISTRATOR);
            $form = JForm::getInstance('profile', JPATH_SITE . '/plugins/user/profile/profiles/profile.xml');
Update that section like:
protected function getProfileFields()
    {
        $fields = array();
        if (JPluginHelper::isEnabled('user', 'profile10')) // UPDATED
        {
            SCStringUtilities::loadLanguage('plg_user_profile10', JPATH_ADMINISTRATOR); // UPDATED
            $form = JForm::getInstance('profile', JPATH_SITE . '/plugins/user/profile10/profiles/profile.xml'); // UPDATED
I *think* that's all you should need to do to have our plugin look at your new plugin, but this is completely un-tested. Please try it out and let us know how that goes.. hopefully, it slick as butter!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 6 months ago #49238 by livagroup
Hi Alex,

That was exactly what I should do, as it is working now - Thanks!
The topic has been locked.