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

Template Modification Compiler Error

Discussion in 'XenForo Development Discussions' started by Allan, Aug 27, 2014.

  1. Allan

    Allan Well-Known Member

    What does this mean?

    Screenshot_13.png
     
  2. Allan

    Allan Well-Known Member

  3. Allan

    Allan Well-Known Member

    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;
        };
    
    });
    
    });
     
  4. Lawrence

    Lawrence Well-Known Member

    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.
     

Share This Page