MyBB Community Forums

Full Version: Jscript problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Today I realized that the js file, found here, I was using for my dropdown menu is conflicting with MyBB's general.js file. If I have both of those in the header template the dropdown menu works but I can't collapse things like categories. If only the general.js is there the collapse works fine but the menu doesn't work.

I'm not very good with js so if someone who is experienced with it could help I would appreciate it. Smile
MyBB uses the Prototype library so see if there are any tutorials for making drop-down menus with it. Or, you could implement jQuery across the whole forum instead of using both jQuery and Prototype. But I wouldn't recommend that.
Load jQuery after all MyBB's javascript. Then, in your script, remember to declare noConflict.

See here: http://docs.jquery.com/Using_jQuery_with..._Libraries
Thank you Tomm. That worked perfectly. Smile