MyBB Community Forums

Full Version: Moderation won't work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
http://www.diigo.com/item/image/17xt4/vg7x
It doesn't show any selected.
We've already had this problem: http://community.mybb.com/thread-95762.html

You've still got a whole load of javascript errors on your forum, which is what I asked about last time.

The problem is that you've included jQuery in your pages, and it's conflicting with the MyBB javascript. In fact it's being included four times, and you've got a whole load of other javascript files included multiple times too, it's no wonder you're having problems. Did you add the code to include all this javascript yourself??
JQuery problem. or CSS, I think.
(2011-07-09, 11:53 AM)MattRogowski Wrote: [ -> ]We've already had this problem: http://community.mybb.com/thread-95762.html

You've still got a whole load of javascript errors on your forum, which is what I asked about last time.

The problem is that you've included jQuery in your pages, and it's conflicting with the MyBB javascript. In fact it's being included four times, and you've got a whole load of other javascript files included multiple times too, it's no wonder you're having problems. Did you add the code to include all this javascript yourself??
So what can I do?
Well, remove all the javascript you've added. If you use jQuery you jave to call jQuery.noConflict() and change all occurrences of $ to jQuery in any jQuery code you've added, and you'll also need to make sure javascript files are only being included once, not multiple. You've currently got jQuery 1.4.4 included once, jQuery 1.6.2 included once, and jQuery 1.3.2 included twice. Why you've got all this here is beyond me. You've also got jquery.translate-1.4.7.js included twice.
How do I edit it?
^
admin panel --> templates --> template set for active theme --> ungrouped templates --> headerinclude

The contents of that part are:
<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" /><script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/newyear.js"></script>
<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/rainbow_glow.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> 
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script src="http://www.google.com/jsapi" type="text/javascript"></script><script type="text/javascript">google.load('jquery', '1.3.2');</script><script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.translate-1.4.7.js"></script><script src="http://www.google.com/jsapi" type="text/javascript"></script><script type="text/javascript">google.load('jquery', '1.3.2');</script><script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.translate-1.4.7.js"></script><script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/master_favourite_post.js?ver=1400"></script>
<script type="text/javascript">var quickremove_confirm = "Are you sure you want to remove post from favourite list?"</script>
{$stylesheets}
<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 language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/custom_status.js"></script>


{$highslide_script}


Which bits need to be removed?
Wow, you have a very messy headerinclude. You're loading jQuery like 5 times, along with a few other scripts. Replace all with:

<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" /><script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/newyear.js"></script>
<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/rainbow_glow.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.translate-1.4.7.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/master_favourite_post.js?ver=1400"></script>
<script type="text/javascript">var quickremove_confirm = "Are you sure you want to remove post from favourite list?"</script>
{$stylesheets}
<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 language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/custom_status.js"></script>


{$highslide_script}
It works now thanks a load!
Pages: 1 2 3