Topic-icon Map Linkeding registration with custom Joomla Profile plugin

Active Subscriptions:

None
Hi there,
we are implementing Linkeding registration on a site in which we have already developed a custom profile plugin. We would like to extract some data from Linkeding to make it easier for our users to register. Can you please point me where do I have to check to use our plugin instead of default Joomla Profile plugin?

Our Custom profile plugin is based on Joomla's so if you read xml form data directly from the joomla plugin it should be just a matter of changing paths and plugin names.
The topic has been locked.
Support Specialist
The file you're looking to edit would be the /plugins/socialprofiles/joomla/joomla.php file. Around line 191 is where we load Joomla's profile.xml file.

I'd highly recommend that you copy that /socialprofiles/joomla plugin and make the modification in your new version of the plugin. That way, the file isn't overwritten whenever we release a new version.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
That works like a charm!!!

Thank you very much, I have just created my version of the plugin.

Best!!
The topic has been locked.
Active Subscriptions:

None
As said, this works perfect. Now I'm mapping fields and I have noticed some important ones like "Company" are missing in the MApping at "Profiles" area. Is there a way to add it?

Thank you!
The topic has been locked.
Support Specialist
A while back, LinkedIn really, really limited the amount of fields that could be returned from their API. Take a look at the link below and let me know if you see a field available that we're missing. We'll gladly look into how we can add it back in:
developer.linkedin.com/docs/fields/basic-profile

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

None
Hi Alex,
thank you very much for your reply!!

I have checked the link and I do see some improvements:

Position field returns a whole object with interesting data. One of the properties is the Company object which will allow getting company name and other interesting stuff.
The topic has been locked.
Active Subscriptions:

None
Hi Alex,
did you see my reply? Have you checked the possibility of adding those fields back?

Thank you!!
The topic has been locked.
Support Specialist
Sorry for the delay. I looked a little more into it and remembered some of the issues we had with LinkedIn Profiles in general. First, you can currently get the user's company and position if you use the "Current Position" field. It will set a value in the user's profile like "CEO at SourceCoast".

The issue we have/had is that LinkedIn will return an array of 'positions' and we have to parse them out. It's possible there's one position or 30. We use to have more profile fields for "Current Position", "Past Postion 1" and "Past Position 2". All of them may or may not return data.

If you want to take a look at our /components/com_jfbconnect/libraries/profile/linkedin.php file, you can see what we're doing. The main things you'd want to look at are in the top where we specify the profile fields. If you want, you could add new items there, like:
'positions.1' => "Past Position 1",
'positions.2' => "Past Position 2",

Then, lower down, there's a getPosition function where you can see how the Position field is pulled out of the company array returned.

With that, hopefully it gives you some ideas on quick modifications. If you need something more robust, just let us know and we can give pointers on the best way to proceed.

Thanks,
Alex
The topic has been locked.