If you're trying to use FireBoard 1.0.4 and any YooTheme, RocketTheme, or any other Joomla templates or Joomla components that utilize the MooTools framework, you will find out that MooTools has a conflict with FireBoard's JQuery framework. In my case, when I tried to use Fireboard and Page YooTheme template together, my MooTools that came with the template became non-functional on the FireBoard forum page because it overwrote MooTools framework. Everything that uses MooTools framework, like styleswitcher, spotlight, slider, and pretty much the whole YooTools package threw errors not being able to find required functions. Thankfully, developers at JQuery implemented a really easy workaround with the noConflict() method. Unfortunately, nobody at YooTheme, RocketTheme, and FireBoard seem to know about this easy fix. I know this because I originally searched in their forums for hours for the fix, and they all just gave up, which was very discouraging for me at first, and I almost gave up. However, I knew more about the problem, and it was simple problem, and I was willing to try to hack the thing myself to make it work. Eventually, I found out about the noConflict() method that nobody at these forums suggested. I found out later that JQuery and MooTools forums were much more helpful, and have a much more of a "developer" community, whereas other forums I mentioned earlier have a more of a "customer-in-crisis" community with no developers to help them. In YooTheme's case, I was very disappointed with their lack of any real developers. There are few staff members that go around the forum and answer questions, but it seems like their job is just to tell their customers that there is no fix. Those staff members are probably not developers, but rather customer support.

Here is the fix with noConflict()

1. Open /syydemo/components/com_fireboard/fireboard.php

2. Find

// Add required header tags
$mainframe->addCustomHeadTag('<script type="text/javascript" src="' . JB_JQURL . '"></script>');
$mainframe->addCustomHeadTag('<script type="text/javascript">

3. Add noConflict() methd below so it looks like this.

// Add required header tags
$mainframe->addCustomHeadTag('<script type="text/javascript" src="' . JB_JQURL . '"></script>');
$mainframe->addCustomHeadTag('<script type="text/javascript">
jQuery.noConflict();

Here is an explanation of how noConflict() works. JQuery backsup $ variable when it starts loading and overwrites $ variable. noConflict() method simply replaces the current $ variable with backed up $. You need to do this at the end when JQuery is done with loading. The scenario with FireBoard and YooTheme is that MooTools first gets loaded to $ variable, then FireBoard comes and overwrites it, now when you add jQuery.noConflict() method, you are telling it to bring back its overwritten $ back. This method can go anywhere after loading JQuery. This fix will not only work with JQuery and MooTools, but JQuery and any other frameworks it may have conflict with. They can be fixed in a similar way. A helpful hint if this doesn't work is to check if you're loading JQuery first, and then MooTools. If that's the case, you will want to switch the loading points of these frameworks, so that JQuery gets loaded later. At the moment, JQuery is the only framework smart enough to back up things it overwrites. Their developers are smart enough not to assume the people are only going to one framework at a time. If you have any questions, leave a comment here, and I will try to answer.

Trackback(0)
Comments (37)Add Comment
I have the same problem with yootools...:/
By pichwayz , April 07, 2011
I have the same problem with YOOtools. I want to know where exactly to put the fix, and in the correct file to put the fix, which line ... Now I am using YOOdrawer. Any help is appreciated. Thanks
I have the same problem, Yootheme Mootools don't work
By linitux78 , June 12, 2010
i have the same problem, i installed a yootheme template (yoo_explorer), firstly, it works well, and after , when i added many modules (Frontpage Slideshow, yooTools, ...and others) and components, it does not woks more.

please, can you tell me where to add this line : jQuery.noConflict();{/code} ???
in index.php of tempalte OR index.php of site ???
And where exactly ??


How to find actual conflict?
By fjh , April 19, 2010
I am not using Fireboard or YooTheme, just RocketTheme template. How can I find what items are in conflict with each other. I see the last post was over 3 months ago and this original post is from 2 years ago, but I hope you can help!

Thanks!
Great tutorial,
By Web Development Surrey , January 19, 2010
Cool,
Great tutorial,
I can use fireboard now,
Thanks for writing, most people don't bother.
Thanks
By Best Registry Cleaner Reviews , January 11, 2010
Thank you - I'm a big fan of these tools and love the way you've been able to get into the best type of array with them.
Great work, thank you very much
By Mike Chapel , September 24, 2009
It was a silly thing, and a little code for correct the problem. But the only site that I find the solution was yours. Thank you very much,


I had a conflict with my template of Joomla (itech_bd_edition) and Yootools. The solution was to include the code jQuery.noConflict(); at the index.php site, before the < / script > of the slideshow script.

That was all.

;)
Thanks!
By Neil , August 11, 2009
Thanks so much..this simple fix actually fixed the problem with our rocketheme template. Thanks again.
I don't use fireboard but I am using YooThemes
By John Merlino , April 18, 2009
I need to know how to fix this problem, I do not use fireboard so how do I fix my problem. I am using yootheme Chrome and I get the error in IE

Please help
JM
thanks
By Alberto , February 12, 2009
thanks for the fix from germany!
The same problem with morfeoshow
By Myrddin , January 26, 2009
Hi. I think I have the same problem with morfeoshow component and ja-purity, have a look:

http://preview9.awardspace.com/escacsgerunda.cat/gerunda/index.php?option=com_morfeoshow&task=view&gallery=1&Itemid=172

I've been trying to use the jQuery.noConflict with no success.

Anybody with the same problem?

Thanks.
GREAT FIX!!!!
By Pol , December 26, 2008
Grandissimo!!!! ;) ;)
Ottimo lavoro davvero!!

GRAZIE GRAZIE GRAZIE!!! :D ;D
You ROCK!
By jay , November 19, 2008
Thanks so much for taking the time to post this fix! This corrected the problem for me with Fireboard 1.0.5 and Joomla 1.5.7. As the title says, You ROCK!
Dude!
By Jase , November 17, 2008
mate thanks! freaking perfect solution.
It worked!
By Steve , November 05, 2008
Thanks! The fireboard developers should have added this into their release. I'm using Joomla! 1.5.3 Legacy, Fireboard 1.0.5RC2, and RokBox 1.1. I didn't know what was causing the problem till I saw that my YOOtoppanel wasn't working when the Fireboard page is viewed.

Thanks again!

- Steve
Facebook Connect conflicts with Mootools?
By David , October 19, 2008
First of all, Seong, thank you for your post that solved my problem with interaction Yootheme-fireboard. Now I'm trying to add some Facebook connectivity to my site via Facebook Connect, and find a similar behaviour. When I add this line in my page:



the effects stop working. I assume it must be a similar problem, but this time we don't have access to the php code to include the noConflict() invocation. Following your post, the solution should be to load Mootools before the Facebook api. However, I think that this is going this way:









Yi - Usuarios


















var YtSettings = { tplurl: '/templates/yoo_shuffle', color: '', layout: 'left', fontDefault: 'font-medium', widthDefault: 'width-wide', widthThinPx: 790, widthWidePx: 960, widthFluidPx: 0.9 };






















x

FB_RequireFeatures(["XFBML"], function(){ FB.Facebook.init("4f80521c7a5a997607a6ae117889f63d", "xd_receiver.htm"); }); Please, login




I'd be really thankful if you could help me with this problem.

Thank you (and sorry for so much html). Regards,
David.
...
By Arrawnt , October 18, 2008
Your fix for the shadow slimbox worked greatly. Thanks! But I am still having this problem and haven't found a workaround to fix it. Please let me know if you find out anything!

Regards.

Arrawnt.
RE
By Seong Yup Yoo , October 18, 2008
You're right, I don't think VirtueMart uses jQuery. I actually have not encountered any problem with Mootools and VirtueMart. VirtueMart could have been updated recently to use some kind of js framework that is conflicting with Mootools. The latest 1.1.2 Stable version which I am using is not giving me any problems, so your problem might be actually something totally different.

I have the same problem with YooTheme/YooTools (yooAccordion, YooToppanel, YooCarousel) VirtueMart. However I couldnt find those lines of code that you speak off in Virtuemart.php. What line should I place jQuery.noConflict(); in Virtuemart.php at?

thanks!
...
By Arrawnt , October 18, 2008
I have the same problem with YooTheme/YooTools (yooAccordion, YooToppanel, YooCarousel) VirtueMart. However I couldnt find those lines of code that you speak off in Virtuemart.php. What line should I place jQuery.noConflict(); in Virtuemart.php at?

thanks!
Sorry, but it doesn't work for me
By Marc , October 14, 2008
Wow. Looks great. But it frustrates me to see is working for so many and not me

Neither 1.0.4 nor 1.0.5 RC2. Adding this line doesn't change a thing.

Maybe there is anything else??

I look forward your ideas. Many thanks in advance.
Excellent!!
By Aryentain , September 04, 2008
This fixed the problem with the latest FB 1.0.5 !! ;D
...
By Seong Yup Yoo , September 03, 2008
Thanks, the comment system is Jomcomment.

yo man, thanks very very much !!! you rock!!!

off-topic!!
Im in love with your comment system!!! which 1 is it???

love
thanks
By John , August 30, 2008
yo man, thanks very very much !!! you rock!!!

off-topic!!
Im in love with your comment system!!! which 1 is it???

love
You Rock
By JohnnyDigital , August 25, 2008
THANK YOU!
Genius
By manchester student , August 07, 2008
Like others, been looking for ages to sort this annoying bug out! So simple in the end, and I thank you for sharing the solution!
My Hero Also!
By Taryn , July 26, 2008
I've been frustrating myself with this for MONTHS--to the point I wasn't going to use a yootheme template. THanks so much for your help!!
RE:Are these original
By Seong Yup Yoo , July 22, 2008
I found out about noConflict() from JQuery's forum and their framework documentation. They're the ones who built in this brilliant solution to their framework. I just used it solve this conflict with YooTheme(MooTools), but obviously they did all the work in that they created this method to solve conflicts with any js frameworks, so it's not my original work by any means. Hopefully, other frameworks with catch on and build their own noConflict() method soon. I wrote this article because YooTheme's staff members were spreading false information that it was impossible to resolve this problem, which was discouraging many people to give up. I think I've saved a few from going down that path, and I appreciate you guys letting me know.
Are these original
By localhost , July 22, 2008
Hi

Are these original solutions ? I have seen the same on a few forums, eg YOOtheme, BOJ etc, that are dated before yours, either way someones fooling someone. You however claim to have discovered the solutions.

Anyways thanks for making the webspace available for sharing this with the community.
You GOTTA get the word out about this
By Jimmy , July 17, 2008
I figured out on my own that MooTools and Jquery had a conflict with the popup method anyways, so I went out looking for help and SO MANY people told me that they just won't work together. Then here was the answer in all its glory. THANKS!!!!!
great fix
By lebaleze , June 25, 2008
Thanks a lot for your work.
It works fine whith Joomla 1.5.3 and Yootheme beyond
Perfect fix. ;D
You are the BEST
By kabbashi , June 24, 2008
Thank's!
danke!
;D
Juan...
By Seong Yup Yoo , June 17, 2008
You gotta give me more information than that. I am not sure what you are talking about when you say switch the loading points.
not working
By Juan Manuel Verges , June 11, 2008
Im still having the same problem, fireboard disables all my effects. Can you tell me how to switch the loading points?
Soundbite
By Seong Yup Yoo , June 03, 2008
I would try replacing your mootools with another version. I am using 1.1 and it works without any of those symptoms. If replacing mootools doesn't fix it, try getting the latest Joomla, and latest version of your template. I know Joomla 1.5.3 with Nu, and Mee work great. If that doesn't work, it's probably your computer or your browsers.
...
By soundbite , May 31, 2008
Thank you for your response!

It's really not a problem for front-end users. The problem is with it's effect on my life when I'm doing administrative stuff with my site all day. Anyhow, it's aggravating to have this happen and not know where the problem is coming from.

If I don't have the back end and front end open in different browsers, my browser starts chugging away like a mad man on the front end trying to process scripting...(in either IE or Firefox). Finally it asks me if I want to continue or stop processing the script. This happens regardless of what computer I use (Core Duo and Pentium Mobile). It's happened on several versions of Joomla 1.5 installed on different servers for different sites. It's even happened when I mistakenly left the demo.yootheme.com site open in a tab while I was working in the backend of a site. Eventually my browser got bogged down with scripting. Firebug gives me an error in yt_tools.js (forget exactly the message right now).

I knew that yootools uses mootools, but I wondered if maybe the Joomla back-end was using JQuery, thus causing the conflict. I guess from what you're saying, this isn't the case. Oh well!
What exactly is the problem?
By Seong Yup Yoo , May 31, 2008
Soundbite,

Joomla back-end uses mootools by default. YooTheme templates also use mootools. I use both daily inside both Firefox and IE. I sometimes have 4-5 different sites up all logged in both front and back with different users for each site.

What I am talking about here probably won't help you, but why is this a problem for you anyways? Do you expect your visitors to use both front and back?
Hmm, does this explain...?
By soundbite , May 31, 2008
Great post.

I've use the yootheme Seasons template in Joomla! 1.5.3 and consistently have problems with yootools scripting going nuts. I found that after about a half-hour of keeping open both the front-end (which uses yootools) and the back-end Administrator (which uses...what?) you start getting script problems in your browser (IE or Firefox).

However, here's what's weird--if you open the Administrator section in one browser (e.g., IE) and the front-end in another browser (e.g., Firefox), the scripts don't spaz out. The only way I've found around this is to disable Javascript in the YooTheme template settings (which is obviously pointless).

Do you think what you are talking about here has something to do with that conflict?

BTW: Your description of the yoothemes forum is spot-on.
You're my hero!!!!
By Mike , May 02, 2008
OMG - This actually works. People are literally beating themselves silly trying to get around this problem (I was one of them), and the solution is so simple.

THANK YOU!

Write comment
smaller | bigger

security code
Write the displayed characters


busy