× Joomla Facebook Connect support forum

Topic-icon Jquery instead of Mootools

Active Subscriptions:

None
14 years 6 months ago #2309 by funkydimensions
I want to remove mootools completely from my site as I use jquery instead, the fbconnect button is the only thing holding me back. Is there anyway to make jfbconnect work with jquery? Could someone atleast tell me why and where mootools is used so I can try to do it using jquery.
The topic has been locked.
Support Specialist
14 years 6 months ago #2324 by alzander
Replied by alzander on topic Jquery instead of Mootools
The only place that I can think of that we use Mootools is to use the domready functionality to ensure that the FB javascript library is loaded last on the page. I'm not as familiar with JQuery, though learning a little on the side. The place this is being used is in the helpers/facebookhelper.php file, in the function initFbApi(). If you come up with a solution for that with JQuery, let us know and we'll implement it as a configuration switch.

Also, while looking through, I noticed that we do an include of MooTools on the JFBCLogin module which is unnecessary. That used to be used, but is no longer. I'd remove the JHTML::_('behavior.mootools'); call from the mod_jfbclogin.php helper as well to un-include Mootools while testing.
The topic has been locked.
Active Subscriptions:

None
13 years 3 months ago #7017 by fb_799591109
I believe this is a source of an incompatibility that I'm having on my site - when I have the system plugin enabled "System - JFBCSystem" some other components stop working.

The primary example is TIENDA - my add to cart buttons break and do 'nothing' when System - JFBCSystem is enabled. Like clockwork, reproduce-able.

Tienda says this: (one of only 3 troubleshooting articles.)
www.dioscouri.com/index.php?option=com_c...ry&id=173&Itemid=468
www.dioscouri.com/index.php?option=com_c...eshooting&Itemid=468

So.. I have it disabled, but I would LOVE to be using it.. you think it's just the domready function?
The topic has been locked.
Support Specialist
13 years 3 months ago #7029 by alzander
Replied by alzander on topic Jquery instead of Mootools
The article you reference talks about how to make jQuery compatible with Mootools. We don't use jQuery in our components at all, so if that is the cause of the problem, it wouldn't be from JFBConnect.

However, if you can paste a link to a page with the issue, we'll gladly look at it and see what we can tell you. We usually can diagnose issues pretty well (even if it's unrelated to our component) to give you a solution or the right people to point the support finger at :)
The topic has been locked.
Active Subscriptions:

None
13 years 3 months ago #7030 by fb_799591109
Would love the help - here is a test site, exact copy - same symptom:

test.drpcfix.com/online-repair.html

The Add to Cart doesn't work - If I unpublish that plugin, it does work.
The topic has been locked.
Support Specialist
13 years 3 months ago #7032 by alzander
Replied by alzander on topic Jquery instead of Mootools
Well, the issue is definitely our fault.. if that helps.

However, the bug your running into was fixed in the 3.1.1 release, and you're running 3.1.0. There's also, now, a 3.1.2 release. You should just be able to download and install (no need to un-install first) and your problem should vanish.

Sorry for the inconvenience, and definitely let us know if you run into other issues (or the above doesn't fix your problem).
The topic has been locked.
Active Subscriptions:

None
13 years 3 months ago #7035 by fb_799591109
Nice - fixed - thank you!

Would LOVE to be able to turn on the facebook like buttons for only a specific category..

:)
The topic has been locked.