Guest Posted March 15, 2004 Share Posted March 15, 2004 I am sorry because I am sure this is already in the forum somewhere, but I have looked with no luck. I have SSL installed and working @ ccmilitarysurplus.com with a few bugs. I get the error messages about secure and non-secure items. I know it is my trust logo, but I do not how to point to HTTPS when it needs to be. Am I missing something obvious? Is it something that shoud be automatic or do I need an IF statement? I tried writting an IF statement mixing PHP and JavaScript but it did not work. Also, I am trying to get the Trust Logo to be at the bottom of the left column and even though it is the last in the list it is still the first item. <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } require(DIR_WS_BOXES . 'shopping_cart.php'); require(DIR_WS_BOXES . 'information.php'); require(DIR_WS_BOXES . 'trustlogo.php'); ?> Thanks, Raider Link to comment Share on other sites More sharing options...
Guest Posted March 15, 2004 Share Posted March 15, 2004 Raider Its been a while, but I believe you have to make sure that you have two different java calls for the image, if it is SSL or not. I'll have to check when I am at work in the morning, but from what I remember, you have one java statement if it is SSL and one if it isn't. Are you pulling the trust logo off their site? if so then I believe that is a different URL too. Where are you putting your java for the trustlogo? Is it in column_left.php? I think you need to have that in application_top.php. If I'm wrong, then I am sorry :( I'll try and check when I'm at the office. Link to comment Share on other sites More sharing options...
tictric Posted March 15, 2004 Share Posted March 15, 2004 This might help you. http://www.oscommerce.com/community/contributions,1630 Link to comment Share on other sites More sharing options...
Guest Posted March 15, 2004 Share Posted March 15, 2004 I like that someone made a contrib for it. Raider. in my header.php I have: // begin comodo trust logo if ( $HTTPS !='on' ) {?> <script language="JavaScript" src='http://www.trustlogo.com/trustlogo/javascript/trustlogo.js'> </script> <?php //' http://www.trustlogo.com/trustlogo/javascript/trustlogo.js'> 'http://secure.comodo.net/trustlogo/javascript/trustlogo.js'> } else {?> <script language="JavaScript" src='https://secure.comodo.net/trustlogo/javascript/trustlogo.js'> </script> <?php } ? //end comodo trust logo and in the box folder I created a box called trustlogo.php: ? ? ? ? ?<tr> ? ? ? ? ? ?<td> <?php if ( $HTTPS !='on' ) { ?$info_box_contents = array(); ?$info_box_contents[] = array('text' => BOX_HEADING_TRUST); ?new infoBoxHeading($info_box_contents, false, false); ? $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<script type="text/javascript">TrustLogo("http://mydomain/images/secure_site.gif", "SC", "none");</script>'); new infoBox($info_box_contents); } else{ ?$info_box_contents = array(); ?$info_box_contents[] = array('text' => BOX_HEADING_TRUST); ?new infoBoxHeading($info_box_contents, false, false); ? ? $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<script type="text/javascript">TrustLogo("https://mydomain/images/secure_site.gif", "SC", "none");</script>'); new infoBox($info_box_contents); } ?> ? ? ? ? ? ?</td> ? ? ? ? ?</tr> I'm including this if you wanted to go ahead and do it yourself. You'll still have to do all the normal box stuff like making the header in your language files. Link to comment Share on other sites More sharing options...
Guest Posted March 19, 2004 Share Posted March 19, 2004 Sirkyle, Tictric, Thank you that has helped tremendously. Now can anyone help me with my 14 year old daughter? Thanks again, Raider Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.