MyBB Community Forums

Full Version: conflict with other js
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I try to use a html page with my mybb site.. but I upload thr js and the css files to my root folder. But the image slider won't work? I earse the protal html and put the custome html to repalce. I click on a picture nothing happns. Could it be the theme? I'm using
If it's a jquery image slider it probably won't work because of the prototype script that MyBB core uses... Try to find alternatives that play nice with prototype until they finally update MyBB to use jQuery
If you're using another js library that use '$' then its likely to conflict with mybb's js because mybb uses prototype which also uses the '$'.
If the library you use is jQuery then you can use the jQuery no-conflict mode
jQuery.noConflict();

Not every library provides a noConflict mode though.
How to I activate that