MyBB Community Forums

Full Version: fix moderation checkbox (Showing 0 selected)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello! I think I messed up the code that allow moderator/admin to select each individual threads.

The selection work perfectly

[Image: 72809aef09666892b105812316f1de70.png]

but next the the "Inline Thread Moderation:", it showed "(0)" selected even though I have 2 threads selected.

Any idea what could've caused this?
multiple loading of jQuery script should be avoided (eg. default jquery.js & jquery-latest.min.js)

if minified jQuery script is a must for your requirement then default jquery.js may be removed
or you have to take care of multiple loading of jQuery (eg. by using noconflict statements)
(2016-08-16, 05:21 AM).m. Wrote: [ -> ]multiple loading of jQuery script should be avoided (eg. default jquery.js & jquery-latest.min.js)

if minified jQuery script is a must for your requirement then default jquery.js may be removed
or you have to take care of multiple loading of jQuery (eg. by using noconflict statements)

Hm, I didn't know that an important feature like that could be disrupt by jQuery. :Sad

Any idea what could be causing 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" />
<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=1807"></script>

{$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 = 9999;
// -->
</script>

<script type="text/javascript" src="jscripts/sidebar.js"></script>
<script type="text/javascript" src="jscripts/header.js"></script>
<script type="text/javascript" src="jscripts/tabcontent.js"></script>

<!-- prefix free to deal with vendor prefixes -->
<script src="http://thecodeplayer.com/uploads/js/prefixfree-1.0.7.js" type="text/javascript" type="text/javascript"></script>

<!-- jQuery -->
<script src="http://code.jquery.com/jquery-latest.min.js"></script>{$myalerts_js}

<script type="text/javascript">
var jQuery_1_3_2 = $.noConflict(true);
</script>

(Added the script at the bottom)

You don't think I removed anything that was needed? I need to double check using the normal MyBB theme.