MyBB Community Forums

Full Version: Javascript/inline moderation not working?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My inline moderation is not working..

This is my console error:

[Image: b35ba87a9f6adfe344fbe36fed8a359e.png]

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=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1800"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined')
{
	document.write(unescape("%3Cscript src='http://code.jquery.com/jquery-1.7.2.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<script type="text/javascript">
	var unreadAlerts = {$mybb->user['unreadAlerts']};
</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myalerts.js"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
    document.write(unescape("%3Cscript src='http://code.jquery.com/jquery-1.7.2.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<script type="text/javascript">
    var unreadAlerts = {$mybb->user['unreadAlerts']};
</script>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
    document.write(unescape("%3Cscript src='http://code.jquery.com/jquery-1.7.2.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<script type="text/javascript">
    var unreadAlerts = {$mybb->user['unreadAlerts']};
</script>
{$stylesheets} {$guestwarn}
<style type="text/css">
@font-face {
	font-family: 'nevisBold';
	src: url('images/novus-dusk/fonts/nevis.eot');
	src: local('nevis Bold'), local('nevis-Bold'), url('images/novus-dusk/fonts/nevis.ttf') format('truetype'), url('images/novus-dusk/fonts/nevis.svg#nevis-Bold') format('svg');
}
</style>
<!--[if IE 7]>
<style type="text/css">
.search-button {
   padding: 3px 0;
}

.toplinks {
   margin-top: -28px;
}

.loginbutton {
   padding: 3px 5px 3px;
   position: relative;
   top: -4px;
}

.register-link {
   padding: 3px 5px 3px;
}
</style>
<![endif]-->

<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>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
jQuery.noConflict();

jQuery(document).ready(function() {

jQuery('#posts td:first').removeClass('tcat2');
jQuery('#posts td:first').addClass('tcat');

jQuery('#post_ td:first').removeClass('tcat2');
jQuery('#post_ td:first').addClass('tcat');

jQuery('#posts > table:last').addClass('last-table');

jQuery('#post_').removeClass('tborder2');
jQuery('#post_').addClass('tborder4');
});
</script>
{$newpmmsg}
<script type="text/javascript" src="jscripts/shoutbox.js?ver=121"></script>


This is the list of my active plugin:

[Image: 9384bc685232e3f7d5a5e8814a103fb3.png]

How to fix?
change the template content to below and check
<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=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1800"></script>
<script type="text/javascript">

{$stylesheets} {$guestwarn}
<style type="text/css">
@font-face {
    font-family: 'nevisBold';
    src: url('images/novus-dusk/fonts/nevis.eot');
    src: local('nevis Bold'), local('nevis-Bold'), url('images/novus-dusk/fonts/nevis.ttf') format('truetype'), url('images/novus-dusk/fonts/nevis.svg#nevis-Bold') format('svg');
}
</style>
<!--[if IE 7]>
<style type="text/css">
.search-button {
  padding: 3px 0;
}

.toplinks {
  margin-top: -28px;
}

.loginbutton {
  padding: 3px 5px 3px;
  position: relative;
  top: -4px;
}

.register-link {
  padding: 3px 5px 3px;
}
</style>
<![endif]-->

<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>

<script type="text/javascript">

jQuery(document).ready(function() {

jQuery('#posts td:first').removeClass('tcat2');
jQuery('#posts td:first').addClass('tcat');

jQuery('#post_ td:first').removeClass('tcat2');
jQuery('#post_ td:first').addClass('tcat');

jQuery('#posts > table:last').addClass('last-table');

jQuery('#post_').removeClass('tborder2');
jQuery('#post_').addClass('tborder4');
});
</script>
{$newpmmsg}
None.. See now my console:

[Image: 757af77db8d7cc65cc93956ba351829f.png]
which theme you are using ? is it compatible with MyBB 1.8.x ?

you may PM me temporary access to forum admin panel to check it
(2015-06-14, 03:08 PM).m. Wrote: [ -> ]which theme you are using ? is it compatible with MyBB 1.8.x ?

you may PM me temporary access to forum admin panel to check it

Is a theme for MyBB 1.6.x ..

But now I have only this problem. Now I send all Smile
that theme needs many changes !
upgrading guidance Wrote:Visit your Admin Control Panel, then go to Templates & Style > Templates > Find Updated Templates.
This will show you a list of all the templates that have changed during the upgrade.

You can either revert these templates to their default - meaning all the changes you've made to it will be removed - or you can see a Diff Report which will show you exactly what's changed. If you have a custom theme installed, it is probably best that you look at the Diff Report and apply the changes you need.

or it would be better to install & use a theme fully compatible with MyBB 1.8.x
http://community.mybb.com/mods.php?actio...ory=themes