Topic-icon jQuery conflicts with JLinked

Support Specialist
10 years 6 months ago #37651 by alzander
I got a little sidetracked on the original issue of the LinkedIn Share button not showing. For me, I'm not seeing any buttons showing, just a "Tweet" link (but not a real image). All the other buttons are missing. When I use the 'direct' link, bypassing Cloudflare, all the buttons are showing (except for LinkedIn). While Cloudflare isn't causing the LinkedIn issue, the Rocketscript stuff (or some other optimization) does seem to be causing some problems. Some images are below.
Missing (using www):
File Attachment:

Working (using direct):
File Attachment:


As for what may be causing the LinkedIn share button to be missing when you enable LinkedIn, when I load the 'direct' page, the following is shown in the Javascript console:
Uncaught Error: You must specify a valid JavaScript API Domain as part of this key's configuration.
Please check your LinkedIn App settings and make sure you have set a Javascript API domain. More information in our LinkedIn app creation guide .

Finally, thanks for creating me an account. I was able to login, but couldn't see the incorrect 'connect' buttons. What I see is below, which looks the same as the /el/ site:
File Attachment:

Let me know if there's some other way I should be testing or if you're still having issues.

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

None
10 years 6 months ago #37688 by 7of9
Replied by 7of9 on topic jQuery conflicts with JLinked

Please check your LinkedIn App settings and make sure you have set a Javascript API domain.

The functionality of this button (Content - ITPShare plugin) is to allow the visitor share the page on their status at Linkedin and that's why there is no such parameter in this plugin. So I really do not understand the purpose of the API here. Maybe they load a different Linkedin js after all, or part of it is common and part of it is different. Do Linkedin provides with two different js, one for API and one for share purpose? And if yes, are they in conflict?

Finally, thanks for creating me an account. I was able to login, but couldn't see the incorrect 'connect' buttons. What I see is below, which looks the same as the /el/ site:
www.sourcecoast.com/images/agorapro/atta...9-ConnectButtons.png

I had already replied at message #37565 about this:
"Edit: I found out what the problem was, with the styling. I am using Falang for the translation and it seems the English translation (my default language is Greek), was still using the old format. I deleted and recreated the translation and that fixed the problem."
Obviously, I should have made it bold or something, because it was not too visible and you missed it. :)

Thanks in advance.
The topic has been locked.
Support Specialist
10 years 6 months ago #37696 by alzander
The LinkedIn Javascript that JLinked and the other module are loading are the same. However, JLinked has to initialize the Javascript with your API key to enable some additional features for LinkedIn authentication. That API key is then used to check your configuration, and if you don't have your app setup correct, you'll get the results you see. So, if you want additional LinkedIn integration which JLinked provides, you just need to set that Javascript Domain setting.

As for the buttons, glad you got them going!

Hopefully this will get you all fixed up, but should you need anything else, just let us know.

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

None
10 years 6 months ago #37723 by 7of9
Replied by 7of9 on topic jQuery conflicts with JLinked
Hi Alex,

I have set up my API months ago, when I set up JLinked and I use it for JLinked component.
However, as I told you before, the social share plugin has no parameters to use Linkedin API.

Please advice.
The topic has been locked.
Support Specialist
10 years 6 months ago #37730 by alzander

However, as I told you before, the social share plugin has no parameters to use Linkedin API.

It doesn't matter what the share plugin you're using has for settings. Since you're loading the LinkedIn Javascript through JLinked which is including an API key, any calls to load the LinkedIn social widgets, like the share button, must have the App setup properly. Check your Javascript API domain in your application settings and make sure it's correct or else the share button will not work.

If that still doesn't work, let us know.

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

None
10 years 6 months ago #37763 by 7of9
Replied by 7of9 on topic jQuery conflicts with JLinked
Hi Alex,

I added www.allmassage.gr/,http://direct.allmassage.gr/ as you instructed. Still Linkedin button is not shown.
Any ideas?
The topic has been locked.
Support Specialist
10 years 6 months ago #37781 by alzander
It's working for me now. Can you test further and let me know what's happening? If you can check the browser's Error Console, that may give some info as to what's happening as well.

File Attachment:


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

None
10 years 6 months ago #37794 by 7of9
Replied by 7of9 on topic jQuery conflicts with JLinked
It's working for me too now. Thank you so much Alex!
Could you help me resolve this one too, please?

This module, (social tabs), works fine when JLinked is not installed.
Unfortunately it does not have any option not to load the Linkedin js.

Thanks in advance.
The topic has been locked.
Support Specialist
10 years 6 months ago #37798 by alzander
I wouldn't know where to start on that one. You'd need to contact their developers and let them know the issue and have them help you to not include the LinkedIn Javascript library. I don't think there's anything we could do in JLinked itself to get around that.

Sorry I can't help more with that one, and best of luck,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 6 months ago #37805 by 7of9
Replied by 7of9 on topic jQuery conflicts with JLinked
I already have and they are stuck for the past few weeks. Is is possible to provide them with you information, in order to find out a solution?

Thanks in advance.
The topic has been locked.