Topic-icon [LinkedIn] Error with LinkedIn Icon

Active Subscriptions:

None
9 years 11 months ago - 9 years 11 months ago #44702 by fb_1125577627
Got another issue to post about.. the Linkedin icon doesn't show.

The code is calling for calling for www.linkedin.com/scds/common/u/img/sprit...rite_connect_v14.png but the actual URL should be www.linkedin.com/scds/common/u/images/ap...rite_connect_v14.png

Our error can be seen here: xbit.asia/beginners

The LinkedIn Icon is not visible.
Last edit: 9 years 11 months ago by fb_1125577627.
The topic has been locked.
Support Specialist
9 years 11 months ago #44707 by alzander
That's a bug in JFBConnect. We have some code that used to be required to work on https sites to prevent mixed-content errors. That code is no longer required and causes the image to not display. This will be fixed in the next release.

To fix now, edit the /components/com_jfbconnect/libraries/provider/linkedin.php file. Around line 123, you'll see:
if ($scheme == 'https')
                $initJs .= "IN.Event.on(IN,'frameworkLoaded',function(){if(/^https:\/\//i.test(location.href)){IN.ENV.images.sprite='https://www.linkedin.com/scds/common/u/img/sprite/'+IN.ENV.images.sprite.split('/').pop()}});";
Delete those 2 lines and you should be good to go.

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