I wanted to integrate Kontera code into my SMF (Simple Machine Forum), but got "Template Parse Error!" message:
var dc_AdLinkColor = "blue" ;
One solution is to change single quotes (') to double quotes, for example, you changeTemplate Parse Error!There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.You may want to try to refresh this page or use the default theme.syntax error, unexpected T_STRING, expecting ',' or ';'
var dc_AdLinkColor = 'blue' ;
to:
var dc_AdLinkColor = "blue" ;
Another solution is to escaped with a slash (\) as sugested in the error message, put a slash (\) before every single quote (').
Comments