Not Solved Console Error Messages jQuery is not defined
#11
Not Solved
(2017-05-02, 10:15 AM).m. Wrote: forum admin panel >> preferences >> Turn on / off Code Mirror --> toggle the selection & save preferences.
does the code in templates become visible now ? if so, post content of headerinclude template

I turned it off and here is my headerinclude

<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,200italic,400italic,600italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.4.0/animate.min.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" />
<meta name="robots" content="noarchive">
<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>
{$additional_images_js}
<script src="https://use.fontawesome.com/d4e09fbff1.js"></script>
<script type="text/javascript" src="images/rush/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>

<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 language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
{$stylesheets}

<!-- Site optimized with MySEO 1.0 -->
<meta name="keywords" content="{$mybb->settings['palabrasClave']}"/>
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
<meta content="{$mybb->settings['bingYahoo_ver']}" name="msvalidate.01"/>
<meta name="google-site-verification" content="{$mybb->settings['google_ver']}" />
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="{$mybb->settings['sitioTwitter']}">
<link rel="publisher" href="{$mybb->settings['pagina_Google']}"/>
<meta property="article:publisher" content="{$mybb->settings['pagina_Facebook']}" />
<meta name="alexaVerifyID" content="{$mybb->settings['alexa_ver']}"/>
<meta name="p:domain_verify" content="{$mybb->settings['perfil_pinterest']}"/>
<!-- Site optimized with MySEO 1.0 -->



<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>{$myalerts_js}
<if $mybb->user['usergroup'] == "1" then>
<script type="text/javascript">
var uid = '146547';
var wid = '308887';
</script>
<script type="text/javascript" src="//cdn.popcash.net/pop.js"></script>
</if>
Reply
#12
Not Solved
Any ideas what's wrong with the headerinclude?
Reply
#13
Not Solved
can you temporarily remove below code segment & check
<script src="https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js">
</script>
<script> new WOW().init(); </script>
Reply
#14
Not Solved
Turning Code Mirror OFF seems to have fixed every single js error I was getting previously. Thanks a lot everyone for helping esp. .m.
Quote:forum admin panel >> preferences >> Turn on / off Code Mirror --> toggle the selection & save preferences

does the code in templates become visible now ? if so, post content of headerinclude template
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)