MyBB Community Forums

Full Version: Inline Moderation Not Working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!
My inline-moderation is not functioning. When I click the checkbox on each post, the number of threads selected does NOT go up, and I get this error message:

[Image: e208fea7becda6087a08609ea469ae92.png]

I've read that the solution to this is to remove any duplicate JQuery scripts, and add the noConflict at the end. The issue I'm having is that I don't know what the duplicate is. If anyone can point out which two lines of my headerInclude are the duplicate files responsible, It would be greatly appreciated. As it stands, this is my headerInclude:

<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" />
<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->asset_url}/jscripts/jquery.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1806"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<link href='https://fonts.googleapis.com/css?family=Alegreya+SC:400,700,700italic,400italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Oxygen:400,700,300' rel='stylesheet' type='text/css'>

{$stylesheets}
<script type="text/javascript">
	lang.unknown_error = "{$lang->unknown_error}";

	lang.select2_match = "{$lang->select2_match}";
	lang.select2_matches = "{$lang->select2_matches}";
	lang.select2_nomatches = "{$lang->select2_nomatches}";
	lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
	lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
	lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
	lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
	lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
	lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
	lang.select2_loadmore = "{$lang->select2_loadmore}";
	lang.select2_searching = "{$lang->select2_searching}";

	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 rootpath = "{$mybb->settings['bburl']}";
	var imagepath = "{$theme['imgdir']}";
  	var yes_confirm = "{$lang->yes}";
	var no_confirm = "{$lang->no}";
	var MyBBEditor = null;
	var spinner_image = "{$theme['imgdir']}/spinner.gif";
	var spinner = "<img src='" + spinner_image +"' alt='' />";
	var modal_zindex = 9995;
</script>

<script type="text/javascript">
<!--// JQuery Tabs UI //-->
$.noConflict();
jQuery( document ).ready(function( $ ) {
	$("#tabs").tabs({
		show: {
			effect: "slide",
            duration: 1000
        },
		hide: {
        effect: "slide",
        duration: 1000
		},
		collapsible: true,
	});
});
</script>
I apologize for not providing a link - everything is local at this time, as I don't have the means or the time to pursue hosting at this very moment.
which theme you are using ? if it is a premium theme then please post (or PM me) its purchasing proof
It is not a premium theme. Just the basic theme with a lot of tweaks on my part.
duplicate code is like this
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>

jQuery.js / jQuery.min.js is already loaded with MyBB 1.8.x - code similar to above should not be added again

and in general, jquery no conflict code is not required in MyBB 1.8.x
That can't be right...

When I delete those 'duplicate' links, all of my JQuery stops working. I have a tabs menu, and an accordian style menu in my footer. Both lose their functionality when I remove those links, and I get errors saying (...).tabs and (...).accordian is not a function, despite being very key functions in JQuery.

So.... I guess those links aren't duplicates of anything, and I've added them back in.
(2016-02-11, 01:52 AM)WitherBones Wrote: [ -> ]That can't be right...

When I delete those 'duplicate' links, all of my JQuery stops working. I have a tabs menu, and an accordian style menu in my footer. Both lose their functionality when I remove those links, and I get errors saying (...).tabs and (...).accordian is not a function, despite being very key functions in JQuery.

So.... I guess those links aren't duplicates of anything, and I've added them back in.

You also have to remove the..

$.noConflict();
Do you mean the one next to my duplicate links, or the one in the JQuery between the <script> tags specifically?

Okay, so I've removed the two duplicate links, and remove the noConflict from my tabs script. Now, inline-moderation still doesn't work, and neither do my tabs. It's also worth mentioning that the "restore" button used for restoring soft-deleted posts doesn't work either.

EDIT: Okay, for anyone who reads this later, the suggestions did fix the issue. I had to remove the following from my headerinclude:

..near the top..
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>

..under my links..
<script type="text/javascript">jQuery.noConflict();</script>

..and in my JQuery codes themselves..
$.noConflict();

However, some things that I kept that did NOT conflict with anything, were these:
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>


Thank you to .m. and delay for the quick response and helpful answer!