Forum is closed

jQuery conflicts with JLinked

Re: jQuery conflicts with JLinked

Hi Alex,

I added http://www.allmassage.gr/,http://direct.allmassage.gr/ as you instructed. Still Linkedin button is not shown.
Any ideas?

"We are the Borg. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service us. Resistance is futile."
7of9
useravatar
Offline
110 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

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.

http://www.sourcecoast.com/images/agorapro/attachments/64/7of9-LinkedInShare-Working.png

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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?
http://www.sourcecoast.com/images/agorapro/attachments/6413/socialtaberr.jpg
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.

"We are the Borg. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service us. Resistance is futile."
Attachments:
7of9
useravatar
Offline
110 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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.

"We are the Borg. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service us. Resistance is futile."
7of9
useravatar
Offline
110 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

You can have them post in this forum or use our Contact Us button. Our solution is still going to be the same.. remove the code that's loading the in.js file from LinkedIn. I wouldn't think that should be that hard to do for the developers of the extension.

We'll gladly tell them the same if they contact us, but I can't dig into their extension to understand what it's doing and how to change it.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

Dear Alzander

I'm just fixing the conflict with JLinked on the site http://direct.allmassage.gr/en/.
Can you let me know the file calling javascript in.js. I need to check it and find the solution for the conflict.

Thank advance.

number17
useravatar
Offline
6 Posts
Website 
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

That file is being loaded from the /plugins/system/jlinkedsystem/jlinkedsystem.php file. Around line 94, you'll see:

Code:

            $inJS = '<script type="text/javascript" src="//platform.linkedin.com/in.js?async=true"></script>' . "\n";

That variable is being insered a few lines down from there.

The initialization we do there is critical for some LinkedIn features, so please don't disable the IN.init section.

I hope that helps,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

Dear Alzander

Can you help me again ?. I know your JLinked used file in.js with few parameter have IN.ENV.js[key] = ["r_emailaddress", "r_basicprofile", "r_fullprofile", "r_contactinfo", "rw_nus", "r_network"]

But in this our module, we need the typeof IN.ENV.js[key] = undefined, so how can I create the function IN.init() to not give your parameter ?

number17
useravatar
Offline
6 Posts
Website 
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

I'm honestly not sure what you're asking. The in.js file is a Javascript file loaded from LinkedIn and is required.

If you need help making modifications, we'll gladly help. However, it sounds like your issues are very different than this original thread. If you could, please create a new topic, let us know a URL where we can see the issue, and let us know how things need to change or what problems you're running into, and we'll gladly help how we can.

Finally, please post from the account you subscribed to JFBConnect from. Priority support is for subscribers only.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

Hi Alex,

alzander wrote:


If you could, please create a new topic, let us know a URL where we can see the issue

number17 is the programmer of the extension I have a conflict with JLinked. The URL is the same I have already given you and the problem is still when I have JLinked installed, the Linkedin tab of mod_jux_social_media_tabs is not working. You can see this extension at my website, at the top / left, is the one that shows the streams of each social network and allows like / follow.
Are you saying we need to create a new thread for this problem?

alzander wrote:

Finally, please post from the account you subscribed to JFBConnect from. Priority support is for subscribers only.

As I said before this is my problem and number17 is trying to resolve this for me, since there is a conflict between his extension and JLinked. So I think that priority support applies here. Furthermore I would really appreciate your assistance here.

Thanks in advance.

"We are the Borg. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service us. Resistance is futile."
7of9
useravatar
Offline
110 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

Sorry, I was confused. It was late night last night when I responded, and forgot the full course of this thread.

Can you help me again ?. I know your JLinked used file in.js with few parameter have IN.ENV.js[key] = ["r_emailaddress", "r_basicprofile", "r_fullprofile", "r_contactinfo", "rw_nus", "r_network"]

But in this our module, we need the typeof IN.ENV.js[key] = undefined, so how can I create the function IN.init() to not give your parameter ?

The scope parameter actually shouldn't be required, and could be removed. However, the api_key parameters is critical for some of the LinkedIn social widgets to function as they will only work on a domain set for that API key.

I don't know of any way to re-load the in.js library and re-init it without causing a conflict. What parameters are you trying to add to the init routine? We may be able to help you add it to our extension or help you add the code that JLinked requires into your code.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

Dear

We don't use any parameters, because in this file

http://platform.linkedin.com/js/framewo … lang=en_US

line 1609, I need typeof IN.ENV.js[key] == 'undifined', so it will out of switch ... case. With the current parameters, the code will error in line 1621.

I do not understand it clearly, can you help me with this ?

number17
useravatar
Offline
6 Posts
Website 
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

I really don't know what the in.js code is actually doing. We've just used the LinkedIn Developer Documentation to properly initialize it for our needs. Can you help me understand what you're doing that needs the initialization to be blank? We may be able to investigate how to get around that, but to our knowledge, most use of the LinkedIn Javascript requires it to be initialized unless you're just using the share button.

What feature(s) are you implementing?

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

Hi Alex,

The module in question supports two main features, in various social networks:
1. Display stream.
2. Follow.

You can actually see what it does if you click on the rest of the social network tabs.

Edited by: 7of9 - Oct-29-13 02:50:33
"We are the Borg. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service us. Resistance is futile."
7of9
useravatar
Offline
110 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

7of9 wrote:


Hi Alex,

The module in question supports two main features, in various social networks:
1. Display stream.
2. Follow.

You can actually see what it does if you click on the rest of the social network tabs.

Hi Alex,

You can see the demo in our site demo
http://demo30.joomlaux.com/social-media-tabs

Before install the jLinked, the LinkedIN Tabs look like in our demo

number17
useravatar
Offline
6 Posts
Website 
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

I understand what the module is supposed to do. I don't understand why you need the LinkedIn Javascript to be not-initialized. Do you ever call the IN.init function? If so, what do you initialize it with. If not, how are you loading some of those social widgets which require an App ID?

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

Dear

As you know before, our module call the IN.js because in module javascript, we call IN.init() with none parameters.

number17
useravatar
Offline
6 Posts
Website 
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

Hi,

I have this problem for a very long time now. Could we get some more immediate answers in order to resolve this faster, please?

"We are the Borg. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service us. Resistance is futile."
7of9
useravatar
Offline
110 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

I don't know an answer for you, unfortunately. It seems there's a deep conflict between how LinkedIn wants it's API initialized, and how both of our extensions are doing so. We need to provide an API key for multiple features in JLinked to work. It's possible you could remove our in.js load and init call altogether from the jlinkedsystem.php file referenced above. That is required for most of the social widgets to function. But if you're only using the share button and authentication *and* the other extension is properly loading the in.js library on each page, that may work for you.

From our reading of the LinkedIn developer docs, the in.js file needs to be initialized with an API key to use the follow button. Is the other module *ever* using an API key? If so, when is it being used and why not in the init function?

I didn't develop the LinkedIn Javascript, so I can't tell you what it's requirements are or why it doesn't like what's happening. I can point you to the documentation for how to initialize it though, which is what we used in JLinked.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

Hi Alex,

I only use JLinked for authentication. I cannot use the Sourcecoast widgets if you remember, because I had another problem I could not resolve in another thread. So I use another extension for those. Could you please direct me to how to disable the script load from JLinked? Also could you provide me with the documentation for how to initialize it though, which is what we used in JLinked.?

Thanks in advance.

Edited by: 7of9 - Nov-07-13 02:22:01
"We are the Borg. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service us. Resistance is futile."
7of9
useravatar
Offline
110 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

In the /plugins/system/jlinkedsystem/jlinkedsystem.php file, around line 105, you'll see:

Code:

$doc->addCustomTag($inJS .

                    '<script type="text/javascript">' .
                    "jlinked.base = '" . JURI::base() . "';\n" .
                    "jlinked.return_url = '" . base64_encode($return) . "';\n" .
                    $initJs .
                    "</script>");

Comment that whole block out by putting /* and */ around it, like:

Code:

/*

$doc->addCustomTag($inJS .
                    '<script type="text/javascript">' .
                    "jlinked.base = '" . JURI::base() . "';\n" .
                    "jlinked.return_url = '" . base64_encode($return) . "';\n" .
                    $initJs .
                    "</script>");
*/

Let us know how that goes, and good luck,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

Dear Alex

Thank you for your help. I made the change like you suggest, and I saw that our module working fine. But I need Manos check your module again, I hope it'll be fine.

number17
useravatar
Offline
6 Posts
Website 
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

Hi,

Yes the module works fine now, however when I try to login using Linkedin I get a 404 error for URL: http://direct.allmassage.gr/en/%BAw%5E~%29%DE
If I go back I see We were unable to find the authorization token in Linkedin.

Any ideas?

"We are the Borg. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service us. Resistance is futile."
7of9
useravatar
Offline
110 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: jQuery conflicts with JLinked

I see what's wrong. Instead of the update I mentioned above of wrapping the whole block with /* and */, try to update it so it looks like:

Code:

$doc->addCustomTag('<script type="text/javascript">' . 

                    "jlinked.base = '" . JURI::base() . "';\n" .
                    "jlinked.return_url = '" . base64_encode($return) . "';\n" .
                    "</script>");

That removes the $inJS and $initJS variables from that code on 2 different lines.

Please let me know if that gets you going!

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11404
Total Polls:
0
Total Posts:
48070
Posts today:
2
User Info
 
Total Users:
47234
Newest User:
jrucker
Members Online:
1
Guests Online:
919

Online: 
Vinnie
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program