Topic-icon Jquery conflict after loggin in

Active Subscriptions:

None
10 years 3 months ago #41138 by totamus
There are several photo galleries on my site. It is a joomla adaptation of the galleria jquery gallery and has worked fine.

After installing jfbconnect, I am seeing that whenever a user is logged in, the photogallery stops working. I am assuming a jquery conflict.

Both the SClogin module and the photogallery module lets you chose to either load or not load jquery. If I tell the photogallery module to not load jquery, then it does work when users are logged in - but not after they log off. The SClogin is set to not load jquery, but I am guessing it does anyway after log in.

The site is www.gregscycles.com. You can duplicate by creating a login, or loggin in with facebook. You can see galleries on most of the pages in the custom shop menu dropdown.
The topic has been locked.
Support Specialist
10 years 3 months ago #41143 by alzander
Please disregard the include jquery setting in the SCLogin module. When you have JFBConnect installed, that setting in the SCLogin module is actually ignored.

Please go to the JFBConnect -> Configuration area and enable (or disable) the "Include jQuery/Bootstrap" setting there. That may help get you going. If not though, let us know, and we'll gladly help test further.

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

None
10 years 3 months ago #41156 by totamus
I tried disabling the load jquery/bootstrap per your suggestion. That corrected the photogallery issue, but now the modal popup for login does not work.

I tried changing to "always visible" instead of "modal popup" with jquery/bootstrap off in JFB Connect, and found that the photogallery still does not work when logged in.

I currently have caching and JCHOptimize disabled.
The topic has been locked.
Support Specialist
10 years 3 months ago #41181 by alzander
I'm unsure what's happening on your site. I found a page where the login button exists, but not sure if that's where I should be testing:
custom-shop-services/custom-build-services-we-do-it-all

On that page, the modal popup does work and the gallery in the center works. However, when I open the modal and try to login with Facebook, the popup is completely blank. I'm not sure why it's blank and not asking for my Facebook credentials as it should. I'm not sure if you're seeing that behavior, but if so, let me know.

The other thing that could be improved is the inclusions of jQuery on that page. It's currently being included 5 different times:
* Joomla's included v1.10.2
* A Google CDN version of v1.7.2 (unsure from what extension)
* A local copy of v1.7.2 from 'popanyarticle'
* Another Google CDN inclusion of v1.7.2 (unsure from what extension)
You have JFBConnect's jQuery included too, for 5 inclusions. However, ours is a special copy that won't conflict with others and can only be used by JFBConnect.

I'd really recommend seeing if you can remove some of those repeat and really old versions. 1.7 is really, really old and may be causing some of your conflicts just by including it along with the newer v1.10 version. Most extensions have the ability to disable their inclusion of jQuery, and I'd try to start finding them.

Let me know what you're seeing, and if the above helps.

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

None
10 years 3 months ago #41204 by totamus
Your nudge in the right direction did the trick. the old jquery libraries are no longer loading, and the log-in issue is now corrected.

One last question.

What tool do you use to find the instances of jquery loaded? I usually will look at the source code - but if the scripts arent properly located in the head, I can - and do - miss them. There must be a better way....

Great support Alex. I wish you had a similar extension for wordpress.
The topic has been locked.
Support Specialist
10 years 3 months ago #41211 by alzander
Awesome! Very glad to hear things are going for you with that, and happy to hear we helped narrow things down.

For finding the jQuery issue, we did exactly what you did.. just opened up your HTML and searched for 'jquery'. Then, we looked at all the instances of it, regardless of whether it was in the head or not. I've been doing this long enough that I generally know where to start investigations; you're issue wasn't terribly obscure.. we've seen many more inclusions of jQuery on some sites.. :)

I hope that gets everything going well for you, but should you need anything else, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.