• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Template Modification Compiler Error

Allan

Well-known member
#3
I found, in this code the problem, but where ?

Code:
$(document).ready(function(){

if ( ($.cookie('sidebar') != null))    {
   
    $(".forum_list .sidebar").hide();
    $(".forum_list .mainContainer, .forum_list .mainContent").addClass("no_sidebar");
    $(".sidebar_mini").addClass("sidebar_expand");
   
};

$(".sidebar_mini a").live('click', function(){

    if ( ($.cookie('sidebar') == null))    {
       
            $(".sidebar_mini").addClass("sidebar_expand");
            $(".forum_list .sidebar").fadeOut(500, function(){
                $(".forum_list .mainContent").animate({ marginRight: "0"}, 500, function(){$(".forum_list .mainContainer, .forum_list .mainContent").addClass("no_sidebar");});
            });
            $.cookie('sidebar',"hidden",{ expires: 365, path: '/'});
            return false;
           
    }else{
       
            $(".sidebar_mini").removeClass("sidebar_expand");
            $(".forum_list .mainContent").animate({ marginRight: "260"}, 500, function(){
                    $(".forum_list .mainContainer, .forum_list .mainContent").removeClass("no_sidebar");
                    $(".forum_list .sidebar").fadeIn(500);
            });
       
            $.cookie('sidebar',null,{ expires: -5, path: '/'});
            return false;
    };

});

});
 

Lawrence

Well-known member
#4
There seems to be one TM interfering with another. Looking at the template code won't help, you need to look at each TM and see what are modifying. The easiest way is to turn off each TM for that template, save your new mod (to see if it works), and then turn on the others one at a time until the compiler error returns. when it does, look at the modification code to see what it is doing to the template.

One bad template mod will cause all mods for that template to fail.