MyBB Community Forums

Full Version: jquery conflit ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everybody,

I need to change history a template to just 3 lines for a small script lightbox.

So I was beginning to change my template headerinclude, the script works just good , except that I lose the option of the edit:
- More choice between edit and complete the quick edit
- And most of the Quick Menu mycodes edition.

I try putting lines on other templates and sh*t => same concerns

The script included a jquery.js, and the conflict would come from it.

If you have any ideas, I'm interested
It's conflicting with prototype, the library that comes with MyBB.
Prototype will use the $ command, which jQuery also uses. Luckily, you can change jQuery to use something else, such as $jQ, or you can use the jQuery(...) itself.

See http://docs.jquery.com/Using_jQuery_with..._Libraries
Hi,
Thank you for your responses.
But I is not well understood how I serve as a "no conflict": /
Can you help me the above?
The lines of code to my script are:

<script type="text/javascript" src="jscripts/1/jquery.js"></script>
<script type="text/javascript" src="jscripts/1/zoombox.js"></script>
<link href="jscripts/1/zoombox.css" rel="stylesheet" type="text/css" media="screen" />

Thank you in advance
Well, they aren't the lines of your script, they are the lines of including script, so I can't help there. If you can tell me your board URL, I can take a look at the Zoombox, which is the one that will need changed.
Ok thx you , i mp you Wink