MyBB Community Forums

Full Version: jQuery problem...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay, I'm having a very hard time with jQuery on my forum. Every time I install a plugin which requires jQuery, everything running on jQuery stops working, except for that plugin which I have installed. How can I stop this? It's really bugging everything.

Domain: Destinycraft.info
Admincp -> Templates & Style -> Templates -> Your Theme's Templates -> Ungrouped Templates -> headerinclude

You have jquery 1.3.2 and the latest jquery. I'd remove 1.3.2 unless something you're already running depends on it.

Find & Remove:
<script type="text/javascript" src="http://destinycraft.info/jscripts/jquery.js"></script>

Find:
<script src="http://code.jquery.com/jquery-latest.js"></script>

Replace with:
<script type="text/javascript">jQuery.noConflict();</script>
<script src="http://code.jquery.com/jquery-latest.js"></script>
Thank you for the reply. I've done as you requested, but it still doesn't seem to be working. Also, I searched for "jQuery", and the results were in Headerinclude and a News Fader plugin which I have downloaded from MyBBExtras. Here's my Headerinclude. Do you see any problem with it?

<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<link rel="stylesheet" href="{$mybb->settings['bburl']}/css/colorpicker.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/colorpicker.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/eye.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/utils.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/profiledesign.js"></script>
<link rel="stylesheet" type="text/css" href="{$mybb->settings['bburl']}/css/post_dec.css">{$stylesheets} <script type="text/javascript">jQuery.noConflict();
jQuery(function($) { $(".close").click(function () {
$(".avviso").fadeOut("slow");
}); });</script> <script type="text/javascript">jQuery.noConflict();</script>
<script src="http://code.jquery.com/jquery-latest.js"></script>{$avvisospiti} {$hu}
<script type="text/javascript">
<!--
var cookieDomain = "{$mybb->settings['cookiedomain']}";
var cookiePath = "{$mybb->settings['cookiepath']}";
var cookiePrefix = "{$mybb->settings['cookieprefix']}";
var deleteevent_confirm = "{$lang->deleteevent_confirm}";
var removeattach_confirm = "{$lang->removeattach_confirm}";
var loading_text = '{$lang->ajax_loading}';
var saving_changes = '{$lang->saving_changes}';
var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
var my_post_key = "{$mybb->post_code}";
var imagepath = "{$theme['imgdir']}";
// -->
</script>
{$newpmmsg}

<script type="text/javascript" src="jscripts/thx.js"></script>{$newpmmsg}
Next time enter the code like this
Code Here

[code]Code Here[/code]

Or like this
PHP Code Here

[php]PHP Code Here[/php]
(2012-10-06, 08:06 PM)JordanMussi Wrote: [ -> ]Next time enter the code like this
Code Here

[code]Code Here
[/code]

Or like this
PHP Code Here

[php]PHP Code Here[/php]

Thanks, that helped my issue very much... Sad
It makes it alot more easy to read / digest
Please remove:
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.js"></script>

And also please remove the second one of this:
<script src="http://code.jquery.com/jquery-latest.js"></script>

I also made a slight mistake in my post.

Replace this:
<script type="text/javascript">jQuery.noConflict();</script>
<script src="http://code.jquery.com/jquery-latest.js"></script>

With this:
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>

If that still isn't working, feel free to pm me a temporary admin account and I'll take a look. Smile
(2012-10-06, 08:20 PM)Vernier Wrote: [ -> ]Please remove:
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.js"></script>

And also please remove the second one of this:
<script src="http://code.jquery.com/jquery-latest.js"></script>

I also made a slight mistake in my post.

Replace this:
<script type="text/javascript">jQuery.noConflict();</script>
<script src="http://code.jquery.com/jquery-latest.js"></script>

With this:
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>

If that still isn't working, feel free to pm me a temporary admin account and I'll take a look. Smile

Thank you so much. It worked. You're a legend.
Glad to help! Smile