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.
When I click on the tickbox on a post, the inline moderation "Go (0)" button doesn't increment.

My site is:

http://www.greenpokerforum.com

I've read a few other people have had similar issues and were told to check their headerinclude file for JQuery issues. I've check mine, but I don't know enough about JQuery to know if its ok. Mine is:

<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=1804"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1804"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1804"></script>

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
<link type="text/css" rel="stylesheet" href="cache/themes/global/thanks/thx.css" />
<script type="text/javascript" src="jscripts/thx.js"></script>

<!-- Start Twitter Follow Button Code -->
<script>window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,"script","twitter-wjs"));
</script>
<!-- End Twitter Follow Button Code -->

<link type="text/css" rel="stylesheet" href="cache/themes/global/thanks/thx.css" />
<script type="text/javascript" src="jscripts/thx.js"></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='' />";
// -->
</script>

I am also getting some errors in the Chrome console window, which I've added as an attachment.

I've tried adding the following to my headinclude template:

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

but that didn't fix it.

Any help would be very much appreciated!

Thanks,


Tom


As a follow on from my original post, I have found that "use.xmlhttprequest" that the console was saying as being undefined is in settings.php. Is settings.php not being called somewhere where it should be? I have also recently changed the name of the admin directory of my site for security reasons, I notice there are some Javascript files in that directory too, could that be causing this problem? If anyone could help me I'd be very grateful. Thanks!

I'm using 1.8.4 with my own custom built theme.
(2015-03-12, 06:40 PM)DarkstarTom Wrote: [ -> ]I've tried adding the following to my headinclude template:

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

That line should be avoided/removed in 1.8.x, not added..

(2015-03-12, 06:40 PM)DarkstarTom Wrote: [ -> ]I have also recently changed the name of the admin directory of my site for security reasons, I notice there are some Javascript files in that directory too, could that be causing this problem?

I don't think so, but you should change the admin path in inc/config.php if you haven't already done that.

As for the issue - try deactivating the following plugins:
a) cookie notice/law/whatever (it uses outdated jQuery code that may cause issues)
b) imeiPageOptimize
If still nothing, PM me a temporary admin account.
I tried disabling both plugins you mentioned but still had the problem. I'll PM you temporary admin details in a moment. Thanks for your help!
You edited $lang->unknown_error in an incorrect way. Either change " to ' in it or do it for this headerinclude line:
lang.unknown_error = "{$lang->unknown_error}";
to:
lang.unknown_error = '{$lang->unknown_error}';
Thank you so much Destroy666, that fixed it and another problem I was having too! MyBB support is awesome.