MyBB Community Forums

Full Version: Inline Moderation Broken - Tied to the issue of not being able to save templates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I have been looking around for some time trying to find the cause of this issue. 90% of the time people have this is because of errors within their headerinclude template and the duplication of Jquery. After much research, I have come to the conclusion this is not my case.
Not only does mine not contain the lines of code one would normally have to delete, but it seems to also be up to date.
An additional problem is present with this and that I am unable to edit my header include (as well as few other templates), as I am presented with an error message of "Could not save" or another similar variant. 

Anyone have any ideas?

Posted errors and code below.

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.4.0/animate.min.css"> 
<link href='https://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'/>
<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css' />

<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 src="https://use.fontawesome.com/d4e09fbff1.js"></script>
<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>
<script type="text/javascript" src="images/revolution/bootstrap.min.js"></script>
<script type="text/javascript" src="images/revolution/jquery.tipsy.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js"></script>
<script> new WOW().init(); </script>

{$stylesheets}

<script type="text/javascript">
$(function(){
    // ADD SLIDEDOWN ANIMATION TO DROPDOWN //
    $('.dropdown').on('show.bs.dropdown', function(e){
        $(this).find('.dropdown-menu').first().stop(true, true).slideDown();
    });

    // ADD SLIDEUP ANIMATION TO DROPDOWN //
    $('.dropdown').on('hide.bs.dropdown', function(e){
        e.preventDefault();
        $(this).find('.dropdown-menu').first().stop(true, true).slideUp(400, function(){
            //On Complete, we reset all active dropdown classes and attributes
            //This fixes the visual bug associated with the open class being removed too fast
            $('.dropdown').removeClass('open');
            $('.dropdown').find('.dropdown-toggle').attr('aria-expanded','false');
        });
    });
});
</script>

<script type="text/javascript">
$(function() {
$("a").tipsy({gravity: $.fn.tipsy.autoNS, fade: true});
$("title").tipsy({gravity: $.fn.tipsy.autoNS, fade: true});
$("img").tipsy({gravity: $.fn.tipsy.autoNS, fade: true});
$("i").tipsy({gravity: $.fn.tipsy.autoNS, fade: true});
$("span").tipsy({gravity: $.fn.tipsy.autoNS, fade: true});
$("div").tipsy({gravity: $.fn.tipsy.autoNS, fade: true});
});
</script>

<script type="text/javascript">
jQuery(document).ready(function() {
    var offset = 100;
    var duration = 250;
    jQuery(window).scroll(function() {
        if (jQuery(this).scrollTop() > offset) {
            jQuery(".topforum").fadeIn(duration);
        } else {
            jQuery(".topforum").fadeOut(duration);
        	}
    });
    
    jQuery('.topforum').click(function(event) {
        event.preventDefault();
        jQuery('html, body').animate({scrollTop: 0}, 600);
        	return false;
    	})
});
</script>

<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>
 
[Image: 3akFVV9.png]

[Image: RDNOaWV.png]
What's your URL? I can't find 'Could not save' anywhere in the MyBB download, so not sure it's even coming from MyBB.
That is a caused by a template editor I have. However, it's the exact same error but worded differently.

Not Acceptable

An appropriate representation of the requested resource /forum/admin/index.php could not be found on this server.

Additionally, a 406 Not Acceptable error was encountered while trying to use an ErrorDocument to handle the request.

URL: Sent to PM
^ looks like referred issues are related to mod-security
Thing is, I have already rename the file from .txt to .htaccess
^ .htaccess method might not work. it would be better to get it disabled by requesting your web host.
For fixing the inline moderation please see:
* https://community.mybb.com/thread-206896.html
* https://community.mybb.com/thread-207403.html

On the subject of templates not saving, that's very odd. As stated above it's likely mod-security, try disabling with a .htaccess file OR contact your web host for assistance. I'll also give you the usual rant with forum owners on shared hosting in that pay literally $4 to OVH or someone for a VPS so you don't have to deal with your host causing problems.
Yeah, the inline moderation issue is the same as what's described in the thread, you're missing the change to the headerinclude template to add the javascript variable in.