MyBB Community Forums

Full Version: {$stylesheets} error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I seem to see on some pages like my help page under misc, not loading and instead all that is shown is this text:

{$stylesheets}

How can this be resolved?

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


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

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

<link type="text/css" rel="stylesheet" href="{$theme['imgdir']}/theme_functions.php" />
<link href='http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

<script type="text/javascript" src="jquery.cookie.js"></script> 

<script>
jQuery(document).ready(function($) {

$.fn.append_spinner = function() { $("body").append("<div id='spinner' style='height:100px !important;position:fixed;width:220px;margin: 20% auto;top:0;right:0;left:0;bottom:0;'><img src='" + imagepath + "/spinner_big.gif' alt='' /><br /><strong>Loading<br />Please Wait</strong></div>"); },
$.fn.destroy_spinner = function() { $("#spinner").remove() };

if (parseInt($('.pm_unread').text()) > 0) {
        $('.pm_unread').addClass('pm_new');
}

$('ul.menu li')
.mouseenter(function() {
        $(this).children('ul').fadeIn(200);
})
.mouseleave(function() {
        $(this).children('ul').fadeOut(200);
});

currentPage = $(document).find(".navigation").text();

if (currentPage.indexOf('Search') != -1)
{
        $('.menu li a.search').addClass('active');
}

else if (currentPage.indexOf('Member List') != -1)
{
        $('.menu li a.memberlist').addClass('active');
}

else if (currentPage.indexOf('Awards') != -1)
{
        $('.menu li a.awards').addClass('active');
}

else if (currentPage.indexOf('Information') != -1)
{
        $('.menu li a.donate').addClass('active');
}

else if (currentPage.indexOf('Upgrade') != -1)
{
        $('.menu li a.upgrade').addClass('active');
}

else if (currentPage.indexOf('Calendar') != -1)
{
        $('.menu li a.calendar').addClass('active');
}

else if (currentPage.indexOf('NonEx') == -1)
{
        $('.menu li a.forum').addClass('active');
}

// SIDEBAR TOGGLE

$.cookie.json = true;

if ($.cookie('sidebar_cookie') == null) {
    $.cookie('sidebar_cookie', 'expanded', { expires: 7 }); 
}

else if ($.cookie('sidebar_cookie') == 'collapsed') {
    collapseSidebar(0);
}

$('.sidebar_toggle').click(function() {
    if ($.cookie('sidebar_cookie') == 'expanded') {
        collapseSidebar(200);
        $.cookie('sidebar_cookie', 'collapsed', { expires: 7 });    
    } 
    else if ($.cookie('sidebar_cookie') == 'collapsed') {
        expandSidebar();
        $.cookie('sidebar_cookie', 'expanded', { expires: 7 }); 
    } 
});

function collapseSidebar(time) {
        $('#sidebar').stop(true, true).fadeOut(time);
        $('#constraint').stop(true, true).delay(time).animate({marginRight: "0px"}, time);
}

function expandSidebar() {
        $('#constraint').stop(true, true).animate({marginRight: "320px"}, 200);
        $('#sidebar').stop(true, true).delay(200).fadeIn(200);
}


if ($.cookie('active_index_tab') == 'tab_2') {
     $('#forum_tabs').removeClass('tab_1').addClass('tab_2');    
     } else if ($.cookie('active_index_tab') == 'tab_3') {
     $('#forum_tabs').removeClass('tab_1').addClass('tab_3');
      } else if ($.cookie('active_index_tab') == 'tab_4') {
     $('#forum_tabs').removeClass('tab_1').addClass('tab_4');    
      } else if ($.cookie('active_index_tab') == 'tab_5') {
     $('#forum_tabs').removeClass('tab_1').addClass('tab_5');    
        } else if ($.cookie('active_index_tab') == 'tab_6') {
     $('#forum_tabs').removeClass('tab_1').addClass('tab_6');    
     } else if ($.cookie('active_index_tab') == 'tab_7') {
     $('#forum_tabs').removeClass('tab_1').addClass('tab_7');    
      } else if ($.cookie('active_index_tab') == 'tab_8') {
     $('#forum_tabs').removeClass('tab_1').addClass('tab_8');    
     } else if ($.cookie('active_index_tab') == 'tab_9') {
     $('#forum_tabs').removeClass('tab_1').addClass('tab_9');    
     } else if ($.cookie('active_index_tab') == 'tab_10') {
     $('#forum_tabs').removeClass('tab_1').addClass('tab_10');
     }

$('#forum_tabs > .forum_tab_links > span > a').click(function(){
       var tab_id = $(this).attr('id');
       parent_class = $('#forum_tabs').attr("class");
       $('#forum_tabs > .forum_tab_links > span > a').removeClass('active'); // remove active class from all links
       $(this).addClass('active'); // add active class to clicked tab
       if ( $("#forum_tabs").hasClass(parent_class) ) {
       $("#forum_tabs").removeClass(parent_class).addClass(tab_id);
       } else {  $('#forum_tabs').addClass(tab_id); }
      $.cookie('active_index_tab',tab_id, {expires: 365});
});



// PROFILE

$('ul.tabs li').click(function()
{
    var tab_id = $(this).attr('data_tab');
    $('.tab_content').stop(true, true).fadeOut(200);
    $('ul.tabs li').removeClass('current');
    $('.tab_content').removeClass('current');
    $(this).addClass('current');
    $("#" + tab_id).addClass('current');
    $('.tab_content.current').delay(400).stop(true, true).fadeIn(200);
});

$('.profile_rep').addClass($('.rep_anchor').children('strong').attr('class'));

$(".user_avatar img, .profile_avatar img").error(function() {
        $(this).attr('src', '{$theme['imgdir']}/default_avatar.png');
});



$("div[class*='theme_'] > *").click(function() {
    if ($(this).parent("div").hasClass("theme_styles")) {
        $(".theme_styles > *").removeClass("active");
        value = $(this).attr("id");
        $(this).addClass("active");
        $(".theme_bg_styles").attr("rel", value);
        if ($(this).attr("id") == "light_style" && $(this).hasClass("active")) {
            $(".theme_bg_styles > *[id*='bg_style_']").hide();
            $(".theme_bg_styles > *[id*='bg_light_style_']").css("display", "inline-block");
            $(".theme_bg_styles > *[id*='bg_light_style_']:not(.active)").each(function() {
                $(".theme_bg_styles > *").removeAttr("class");
                $(".theme_bg_styles > *[id*='bg_light_style_']:first").addClass("active");
            });
        } else if ($(this).attr("id") == "dark_style" && $(this).hasClass("active")) {
            $(".theme_bg_styles > *[id*='bg_style_']").css("display", "inline-block");
            $(".theme_bg_styles > *[id*='bg_light_style_']").hide();
            $(".theme_bg_styles > *[id*='bg_style_']:not(.active)").each(function() {
                $(".theme_bg_styles > *").removeAttr("class");
                $(".theme_bg_styles > *[id*='bg_style_']:first").addClass("active");
            });
        }
        $(".theme_styles").attr("rel", value);
    } else if ($(this).parent("div").hasClass("theme_bg_styles")) {
        $(".theme_bg_styles > *").removeClass("active");
        value = $(this).attr("id");
        $(this).addClass("active");
        $(".theme_bg_styles").attr("rel", value)
    } else if ($(this).parent("div").hasClass("theme_color_styles")) {
        $(".theme_color_styles > * ").removeClass("active");
        value = $(this).attr("id");
        $(this).addClass("active");
        $(".theme_color_styles").attr("rel", value);
    }
});

$("a[href*='#theme_settings_submit']").click(function(e) {
    e.preventDefault();
    var output = $(".field_value > *").map(function() {
        var input_name = $(this).attr("name");
        if ($(this).prop("type") == "text") {
            var i_value = $(this).val();
            var input_value = i_value.replace(/"/g, "'");
        } else if ($(this).is("div")) {
            var input_value = $(this).attr("rel");
        }
        if (input_value == "") {} else {
            var result = '"' + input_name + '"' + ":" + '"' + input_value + '"';
        }
        return result;
    }).get().join(",");
    var final_output = "{" + output + "}";
    $.cookie("buzzforums_theme_settings", final_output, {
        expires: 365
    });
    if ($("input[name=forum_width]").val() !== "") {
        $(".top_panel > div, .header, .container, .footer").animate({
            width: $("input[name=forum_width]").val()
        }, 800);
    } else {}
    $(this).append_spinner();
    $.get(imagepath + "/theme_functions.php", function() {
        $("link[href*='theme_functions.php']").attr("href", imagepath + "/theme_functions.php");
        $(this).destroy_spinner();
    })
location.reload(true);
});

$("a[href*='#theme_settings_delete']").click(function(e) {
    e.preventDefault();
    $(".top_panel > div, .header, .container, .footer").animate({
        width: "88%"
    }, 800);
    $.cookie("buzzforums_theme_settings", "blank", {
        expires: 365
    });
    $(this).append_spinner();
    $.get(imagepath + "/theme_functions.php", function() {
        $("link[href*='theme_functions.php']").attr("href", imagepath + "/theme_functions.php");
        $(this).destroy_spinner();
    })
location.reload(true);
});

if (typeof $.cookie("buzzforums_theme_settings") === "undefined") {} else {
    var cookie_parse = JSON.parse($.cookie("buzzforums_theme_settings"));
    $(".field_value > *").each(function() {
        var e = $(this).attr("name");
        if ($(this).prop("type") == "text") {
            $(this).val(cookie_parse[e]);
        } else if ($(this).is("div")) {
            $(this).attr("rel", cookie_parse[e]);
            $(this).children("span").removeClass("active");
            $(this).children("span[id='" + cookie_parse[e] + "']").addClass("active");
            if ($(this).children("[id*='bg_style_']").is(".active")) {
                $(".theme_bg_styles > *[id*='bg_light_style_']").hide();
            } else if ($(this).children("[id*='bg_light_style_']").is(".active")) {
                $(".theme_bg_styles > *[id*='bg_style_']").hide();
            }
        }
    })
}


});
</script>{$myalerts_js}


I also have a problem with Emails being sent.. It seems to be stuck on 1% or 2% and I have to manually move it in task manager for it to even move

Can anyone help?