MyBB Community Forums

Full Version: Unabled to edit template ... footer in specific
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Please reupload all the files in admin\jscripts\codepress
and delete browsing history and try again
Quote:Error: unterminated string literal
Source File: http://mxiia.co.cc/forum/admin/jscripts/...9357810913
Line: 30, Column: 57
Source Code:
if(engine == "msie" || engine == "gecko") document.write('<body><pre> </pre></body>

That is the error I get :/

ehab: I have tried that multiple times... I even tried with a different browser.
Looks like your host automatically adds a website analytics code which is affecting this.

Solution 1: Disable Javascript on your browser.

Solution 2: Remove this code from admin/modules/style/templates.php:

        $page->extra_header .= '
        <link type="text/css" href="./jscripts/codepress/languages/codepress-mybb.css" rel="stylesheet" id="cp-lang-style" />
        <script type="text/javascript" src="./jscripts/codepress/codepress.js"></script>
        <script type="text/javascript">
                CodePress.language = \'mybb\';
        </script>';

Ok, I downloaded NoScript, used it and it worked!

So the problem was in my host :/
Damn I wish I could get paypal and get a real host.

Thanks for your help.
Pages: 1 2