MyBB Community Forums

Full Version: jQuery running twice.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm pretty sure that jQuery is running twice on my forum. It's been really pissing me off an causing many interruptions, such as the Shoutbox, etc... How do I fix this? Thanks.
What's your website's URL??
(2012-08-29, 10:43 PM)Yaldaram Wrote: [ -> ]What's your website's URL??

http://destinycraft.info/index.php
Please put Justin's theme copyright back.
(2012-08-30, 06:18 PM)Paul H. Wrote: [ -> ]Please put Justin's theme copyright back.

Oh that's at the bottom. "Powered By MyBB, © 2002-2012 MyBB Group."

Also do you guys think that the problem is from my Headerinclude?
(2012-08-30, 06:49 PM)Jonath198 Wrote: [ -> ]
(2012-08-30, 06:18 PM)Paul H. Wrote: [ -> ]Please put Justin's theme copyright back.

Oh that's at the bottom. "Powered By MyBB, © 2002-2012 MyBB Group."

Also do you guys think that the problem is from my Headerinclude?

Paul meant Justin's theme copyright, which looks like this:

Theme created by Justin S.

To do this, Admincp -> Templates & Style -> Templates -> Your Theme's Templates -> Footer Templates -> Footer

Add this:
<span id="theme">
				<!-- Apart is a series of twelve simple, beautiful themes released completely free of charge.
					You love Apart - that's why you're using it - so why prevent others from finding Apart
					by removing this short, simple created by statement? If you make changes to this theme,
					feel free to modify the created by statement, as long as the originial credit remains
					intact. Furthermore, if you remove or unjustly modify this simple statement, you will
					be refused support for the theme.
	
					Thanks for your consideration, and best of luck with your forum.
					- Justin S., bellomandesign.com
				-->
				Theme created by <a href="http://bellomandesign.com/" target="_blank">Justin S.</a>
				<!-- End theme created by statement -->
			</span>
Oh thanks. I just added it. Not sure how it was removed in the first place.
The issue seems to be that some of your plugins may be loading jQuery plus (probably) you loading it from the templates.

Try searching for all instances of "jquery." using the Search & Replace feature for templates and some file editor like Notepad++ for your plugin files.

If I am right, you are loading jQuery three times:
http://destinycraft.info/js/news_fader/jquery.js (v1.2.3)
http://ajax.googleapis.com/ajax/libs/jqu...ery.min.js (v1.6.1)
http://code.jquery.com/jquery-latest.js (v1.8.0)
(2012-08-31, 10:51 PM)Omar G. Wrote: [ -> ]The issue seems to be that some of your plugins may be loading jQuery plus (probably) you loading it from the templates.

Try searching for all instances of "jquery." using the Search & Replace feature for templates and some file editor like Notepad++ for your plugin files.

If I am right, you are loading jQuery three times:
http://destinycraft.info/js/news_fader/jquery.js (v1.2.3)
http://ajax.googleapis.com/ajax/libs/jqu...ery.min.js (v1.6.1)
http://code.jquery.com/jquery-latest.js (v1.8.0)

Oh, I see. I used the Search tool, and find these in Global Templates:

[Image: R7EAh.png]

I believe that all of these do require jQuery. But does this mean that I cannot have these plugins at all? Or should I simply remove the jQuery from them because it is being loaded by other ones.
Try removing all the jQuery calls from those templates, if those features stop working then load jQuery from the headerinclude template.
Pages: 1 2