Showing corner logo on https pages

I am using virtuemart with SSL certificate from comodo

site is http://www.miracleovenglove.co.uk

I have an issue showing the corner logo on https pages.

If I install exactly as per instructions then I get a message with IE7…re secure and unsecure items.

I can part overcome this by using the following code in my template

<?php if ( @$_SERVER['HTTPS'] == 'on' ) { ?>  
	<a href="https://www.instantssl.com" id="comodoTL">SSL</a>  
	<script language="JavaScript" type="text/javascript">  
		COT("https://www.miracleovenglove.co.uk/images/cot.gif", "SC2", "none"); 
	</script>  <?php } else { ?>  
	<a href="http://www.instantssl.com" id="comodoTL">SSL</a>  
	<script language="JavaScript" type="text/javascript">  
		COT("http://www.miracleovenglove.co.uk/images/cot.gif", "SC2", "none"); 
	</script>  <?php } ?>

This gives the result that when the page is https then the image is drawn from https directory.

But I’m still getting the error and have tracked it down to the other part of the code which goes pre /head

If I surround this with an if re https==on in the same way then all is ok but the logo doesn’t show.

There seem to be two offending lines of this part of the code - highlighted in bold below

<script language="JavaScript" src="[b]http://www.trustlogo.com/trustlogo/javascript/trustlogo.js[/b]" type="text/javascript">
</script>
<script language="javascript" type="text/javascript">
//<![CDATA[
var cot_loc0=(window.location.protocol == "https:")? "https://secure.comodo.net/trustlogo/javascript/cot.js" :
"[b]http://www.trustlogo.com/trustlogo/javascript/cot.js[/b]";
document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');
//]]>
</script>

but if I make them https refs then I get a more general security error.

Help…

S

Hello,

The problem lies within the function call. Make the image HTTPS instead of HTTP like so and this will correct your issue. Please do make sure you do not alter anything else with our code.

COT("https://www.miracleovenglove.co.uk/images/cot.gif", "SC2", "none");