Topic-icon JFBconnect doesnt import the Social Network Profile data to Jomsocial

Active Subscriptions:

None
I thought I open a new topic.
So I tried to use Jomsocial. The Social Network Profile field values are not imported to Jomsocial fields at the very first time when the new user registers on the website. The user MUST log out and log in again and then the field values appear in the fields. Why the fields' data are not imported at the very first time when the user registers. Why they have to log out and in again?

Thanks
The topic has been locked.
Support Specialist
When this happens, it usually means that some other extension or plugin is trying to redirect the user after a successful registration. Please check your 'user', 'authentication' and 'system' plugin groups for any extensions that may be redirecting the user.

Thanks
-Melissa
The topic has been locked.
Active Subscriptions:

None
Hi,

Thanks for your answer. I have checked everything. There is nothing to redirect the users. I checked all plugins but I dont really have such thing.
When I used CB I didnt have any problem with importing the field data. They were imported at once.
To solve this problem would be extremely important for me. I often have one time members and we give them permissions based on the imported fields' data. If the fields remain empty we can't control the permissions. The user wont come back next time.

Thanks
The topic has been locked.
Support Specialist
Can you PM your site credentials so I can take a look?
The topic has been locked.
Support Specialist
After testing on your site, I was able to reproduce and fix the issue on my local test site.

In /plugins/socialprofiles/jomsocial/jomsocial.php around line 330, you should see the following line:
$values[$data['id']] = $value;

Please replace it with:
$values[$data['id']] = strval($value);

Please let me know if you still have issues after this change has been made.

Thanks
-Melissa
The topic has been locked.
Active Subscriptions:

None
Hi Melissa,

Thanks, It is awesome. It works flawlessly. Thank you.

I have one extra question here. Can we add an extra feature to SClogin module?
I want to add a custom link to the "Registration" button. I just want to redirect the user to my membership page if they want to register on the site instead of setting up any other components for registering.
Something like this: "/index.php?option=com_content&view=article&id=8&Itemid=115"
Currently I can just pick one component.

Thanks
The topic has been locked.
Support Specialist
I have added this feature request to our issue tracker to investigate for a future release.

In the meantime, edit /modules/mod_sclogin/helper.php around line 226
else
{
   $this->profileLink = '';
   $this->registerLink = JRoute::_('index.php?option=com_users&view=registration', false);
}
// common for J!, JomSocial, and Virtuemart

After the else statement, we'll just add a single line to go to your menu item.
else
{
   $this->profileLink = '';
   $this->registerLink = JRoute::_('index.php?option=com_users&view=registration', false);
}
$this->registerLink = JRoute::_('index.php?option=com_content&view=article&id=8&Itemid=115', false);
// common for J!, JomSocial, and Virtuemart

This line of code should still work, regardless of which 'Registration Component' value you have set.

-Melissa
The topic has been locked.
Active Subscriptions:

None
Thanks Melissa,

This code didnt work for me. At least I can't see anything new that I could choose in SClogin admin.

Thanks
The topic has been locked.
Support Specialist
No, there won't be anything new in the SCLogin module parameters to choose with this change. It just hardcodes the redirection link to the one that you provided. This is just a temporary workaround; when it is added to a future SCLogin release, there will be an option in the module backend, just not yet.

Did you try on the front end to login and it still didn't redirect to this link?
The topic has been locked.
Active Subscriptions:

None
Ok. Yes, now I see. Thanks. In the future releases are u going to add a blank field to fill in SCLogin admin?

Thanks
The topic has been locked.