rustyclockwork Posted November 14, 2016 Share Posted November 14, 2016 Hi all, My prestashop 1.6 site is in maintenance mode... but here is an html file on my server to display the example I'm trying to accomplish in my security and privacy policy for my presashop site. http://www.oldfoundry.com/test.html What I have done so far... I have enabled the tinymce editor to full mode, and have updated the validate.php file just as Vekia has instructed. I think I have to do something to cms.tpl to allow particular cms pages to access javascript, such as my security and privacy page which has the cms id of 2. found this code online... I think this goes in cms.tpl {if $cms->id==3} {literal} <script type="text/javascript" src="mycustom.js"></script> {/literal} {/if} I'm not sure what to do with all of this... and I don't know what would go in the custom javascript file Can anyone help? I've been doing really good :-) been a long time since I had to post a question! Jason Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 14, 2016 Author Share Posted November 14, 2016 (edited) I have this in my cms.tpl {if $cms->id==2} {literal} <script type="text/javascript"> //<![CDATA[ var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.comodo.com/" : "http://www.trustlogo.com/"); document.write(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E")); //]]> </script> {/literal} {/if} Am I allowed to put code like this directly in the tpl file? Or should it link to a js file? I then have this code left over from the Comodo site... which I've been trying to put in the source code box using tinymce for my cms page <script language="JavaScript" type="text/javascript"> TrustLogo("https://oldfoundry.com/img/cms/comodo_secure_seal.png", "CL1", "none"); </script> <a href="https://ssl.comodo.com" id="comodoTL">Comodo SSL</a> Can't get it to work... Thanks again for any help, Jason Edited November 14, 2016 by rustyclockwork (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now