Topic-icon Webadress CB Field

Active Subscriptions:

None
12 years 1 month ago #19544 by stephernandez
Hello,

When I create a field in CB (Community Builder) to get the profile URL from a linkedIN profile it only works if I set it as a text info.
If I create a CB field as a webadress (better for a public profile URL, could be click by users) it doesn't appear in the social section of JlinkedIN.

Is it possible to get it or I do an error ?

Thx
The topic has been locked.
Support Specialist
12 years 1 month ago #19553 by alzander
Replied by alzander on topic Webadress CB Field
You should be able to do that, but it will take a minor modification to our code. In the /plugins/jlinkedprofiles/communitybuilder/communitybuilder.php file, at about line 341, you'll see:
$query = 'SELECT * FROM #__comprofiler_fields WHERE ( type = "predefined" AND name != "username" AND `table` = "#__comprofiler" ) OR type = "text" OR type = "textarea" OR type = "editorta" OR type="date"';
Update that to the below, which adds the -OR type="webaddress"- part at the end:
$query = 'SELECT * FROM #__comprofiler_fields WHERE ( type = "predefined" AND name != "username" AND `table` = "#__comprofiler" ) OR type = "text" OR type = "textarea" OR type = "editorta" OR type="date" OR type="webaddress"';
Once that's done, any web address fields should show up in the Field Mapping area of JLinked.

I've added a case to our tracker to include those types of fields in the next version as well.

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

None
12 years 1 month ago #19584 by stephernandez
Replied by stephernandez on topic Webadress CB Field
Ok, thx

Now it works.
I've got another problem due to CB, it doesn't manage this field just as a link. It adds http://http//www.linkedin.....
I'll check this in CB.
The topic has been locked.