bzfvggigaietjghnkzdfaewrkv Posted July 21, 2017 Share Posted July 21, 2017 I want to install a Zotabox popup chat on CC6, but the script breaks my site. I'm adding the code in skins/kurouto/templates/main.php Should I add it somewhere else? Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 21, 2017 Share Posted July 21, 2017 (edited) The file main.php is a Smarty template. As such there are rules to adding any other code that may look like Smarty code. So, where you want to add this new code to the template, start with a new line having {literal} and end with a new line having {/literal}. Javascript and CSS both use braces, which are Smarty command code delimiters. The literal command informs Smarty that what is between is to be taken 'literally' and to not try to interpret it. Edited July 21, 2017 by bsmither Quote Link to comment Share on other sites More sharing options...
bzfvggigaietjghnkzdfaewrkv Posted July 21, 2017 Author Share Posted July 21, 2017 Great, that's fixed it. Thanks for the info. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.