MyBB Community Forums

Full Version: Prototype and JQuery
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im planning on making a mybb theme using twitter's bootstrap.mhowever, bootstrap uses JQuery, and mybb uses Prototype.

Will there be a problem? I am expecting there to be Toungue
Here's a simpler solution: develop the theme for 1.8.
How would I do that without 1.8 Wink
You wait for it. I'm just saying, there will be a few changes to the templates in 1.8, so if you do this now you'll have to go through updating it. I'm not sure if it would take long or not though.

Either way, Prototype and jQuery can coexist. Just make sure you call the noConflict() function.
I'll probably just make a mock up template, then convert it to an actual template when 1.8 comes out Smile
Or just use jQuery.noConflict() like people have been doing throughout 1.6.

jQuery.noConflict();

jQuery(document).ready(function($) {
// normal jQuery stuff goes here...
});
So will everything in mybb still work fine?
Yes.
So long as you keep all the jQuery where I added the comment, yes.
Ok Smile well, by the time ive got the layout figured out and made 1.8 will be released XD

Considering I'm also learning the MVC/Laravel stuff, Objective C and some more JavaScript Toungue