Jump to content

Trying to do something really simple, display SSL certification w Javascript in CMS


rustyclockwork

Recommended Posts

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

 

 

  1. {if $cms->id==3}
  2. {literal}
  3. <script type="text/javascript" src="mycustom.js"></script>
  4. {/literal}
  5. {/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

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">
</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 by rustyclockwork (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...