Showing corner logo on https pages

I am using virtuemart with SSL certificate from comodo

site is

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="" id="comodoTL">SSL</a>  
	<script language="JavaScript" type="text/javascript">  
		COT("", "SC2", "none"); 
	</script>  <?php } else { ?>  
	<a href="" id="comodoTL">SSL</a>  
	<script language="JavaScript" type="text/javascript">  
		COT("", "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][/b]" type="text/javascript">
<script language="javascript" type="text/javascript">
var cot_loc0=(window.location.protocol == "https:")? "" :
document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');

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




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("", "SC2", "none");