Barcelona Posted December 8, 2007 Posted December 8, 2007 What do I need to add to this code so that the next page will be in the https so we don't get that pop up window https://www.myjaibags.com/shop/product_info.../products_id/28 <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main"><div align="center"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></div></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td>
germ Posted December 8, 2007 Posted December 8, 2007 In the HTML source for that page, I'm seeing this: <span id="slidePanel"><a href="java script:popupWindow('http://www.myjaibags.com/shop/popup_image.php/pID/28')"><img src="http://www.myjaibags.com/shop/img_cache/58e5caac12ff993f2c8010df6fff213a.jpg" border="0" alt="Calla Lilies" title=" Calla Lilies " width="200" height="139" hspace="5" vspace="5"></a></span> If you made the link to the image https instead, it would probably fix your problem. The image is what doesn't show up if you decline the "Do you want to display the nonsecure items?". If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Barcelona Posted December 8, 2007 Author Posted December 8, 2007 :'( That would mean I have to code pages for all the products right??? <?php /* $Id: product_info.php,v 1.97 2003/07/01 14:34:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_check = tep_db_fetch_array($product_check_query); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <title>JAI Bags</title> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="https://www.myjaibags.com/shop/stylesheet.css"> <link href="stylesheet2.css" rel="stylesheet" type="text/css"> <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=400,height=400,screenX=150,screenY=150,top=150,le ft=150') } //--></script> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css"> <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css"> <script language="javascript" type="text/javascript"> //<![CDATA[ var cot_loc0=(window.location.protocol == "https:")? "https://secure.comodo.net/trustlogo/javascript/cot.js" : "http://www.trustlogo.com/trustlogo/javascript/cot.js"; document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>'); //]]> </script> </head> <body> <div align="center"> <table width="800" border="1" cellspacing="2" bordercolor="#FFFFFF" bgcolor="#5C2D01"> <tr> <td width="820" height="702" valign="top" bgcolor="#381806"><table width="100%" height="698" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="90" bgcolor="#5C2D01"><div align="center"><img border="0" src="https://www.myjaibags.com/handbags.jpg" width="800" height="90" /></div></td> </tr> <tr> <td height="24" bgcolor="#B7AD64"><div align="center" class="style1"> </div> <table width="100%" border="0" cellpadding="0"> <tr> <td width="10" height="34"> </td> <td><ul id="MenuBar1" class="MenuBarHorizontal"> <li><a href="https://www.myjaibags.com" class="style7">Home</a> </li> <li><a href="https://www.myjaibags.com/about.html" class="style7">About Us</a></li> <li><a href="https://www.myjaibags.com/buy2.html" class="MenuBarItemSubmenu style7">Collection</a> <ul> <li><a href="https://www.myjaibags.com/shop/product_info.php/products_id/28">Lilies</a></li> <li><a href="https://www.myjaibags.com/shop/product_info.php/products_id/31">Couple</a></li> <li><a href="https://www.myjaibags.com/shop/product_info.php/products_id/29">Donkey Piñata</a></li> </ul> </li> <li><a href="https://www.myjaibags.com/shop/whatsnew.php" class="style7">What's New</a> </li> <li><a href="https://www.myjaibags.com/shop/shopping_cart.php" class="style7">Shopping Cart</a></li> <li><a href="https://www.myjaibags.com/shop/contact.php" class="style7">Contact Us</a></li> </ul></td> </tr> </table> <div align="center"></div></td> </tr> <tr> <td height="5" bgcolor="#BB7A41"></td> </tr> <tr> <td height="550" valign="top" bgcolor="#FFFFFF"><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#381806"> <tr> <td width="200" rowspan="2" bgcolor="492205"><img src="Images/side.jpg" width="200" height="500" /></td> <td height="502" valign="top"><table width="100%" border="0" cellpadding="5" cellspacing="5"> <tr> <td><table width="100%" border="0" cellspacing="10" cellpadding="10"> <tr> <td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <?php if ($product_check['total'] < 1) { ?> <tr> <td><?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php } else { // fancy product images slide show hack START $product_info_query = tep_db_query("select p.products_slide_images, p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); // fancy product images slide show hack END $product_info = tep_db_fetch_array($product_info_query); tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } // if (tep_not_null($product_info['products_model'])) { // $products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>'; // } else { $products_name = $product_info['products_name']; // } ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading" valign="top"><?php echo $products_name; ?></td> <td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><?php if (tep_not_null($product_info['products_image'])) { ?> <table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <td align="center" class="smallText"><!-- fancy product images slide show hack START --> <?php $slideFiles = explode(';',$product_info['products_slide_images']); $slideFilesCount = count($slideFiles); $sOut = ''; $cleaned = array(); for($sCount=0;$sCount<$slideFilesCount;$sCount++){ if(trim($slideFiles[$sCount] != '')){ $cleaned[] = $slideFiles[$sCount]; // cleaning if there is a name missing } } $cleanedCount = count($cleaned); $sOut .= 'var slideList = new Array('.$cleanedCount.');'."\n"; $sOut .= 'var slideListOriginal = new Array('.$cleanedCount.');'."\n"; flushOldCachedImages(); for($sCount=0;$sCount<$cleanedCount;$sCount++){ $fileToResize = DIR_FS_CATALOG . DIR_WS_IMAGES . $cleaned[$sCount]; $resizedImageResult = resizeImage($fileToResize,SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); $resizedImage = $resizedImageResult[0]; $resizedImageWidth = $resizedImageResult[1]; $resizedImageHeight = $resizedImageResult[2]; $sOut .= 'slideList['.$sCount.'] = "'.$resizedImage.'";'."\n"; $sOut .= 'slideListOriginal['.$sCount.'] = "'.DIR_WS_IMAGES . $cleaned[$sCount].'";'."\n"; } echo '<script>'.$sOut.'</script>'; $fileToResize = DIR_FS_CATALOG . DIR_WS_IMAGES . $product_info['products_image']; $resizedImageResult = resizeImage($fileToResize,SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); $resizedImage = $resizedImageResult[0]; $resizedImageWidth = $resizedImageResult[1]; $resizedImageHeight = $resizedImageResult[2]; ?> <?php echo '<span id="slidePanel"><a href="java script:popupWindow(\''. tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\')">' . tep_image($resizedImage, addslashes($product_info['products_name']), $resizedImageWidth, $resizedImageHeight, 'hspace="5" vspace="5"') . '</a></span><br />' //echo '<a href="java script:popupWindow(\''. tep_href_link(FILENAME_POPUP_IMAGE, '<span id=3></span>''\')"><span id="slidePanel">' . tep_image($resizedImage, addslashes($product_info['products_name']), $resizedImageWidth, $resizedImageHeight, 'hspace="5" vspace="5"') . '</span></a><br />' ?> <script type="text/javascript"> <!-- var slideStation = 0; var headImage = "<?=$resizedImage?>"; var fadeSpeed = 1000; var slideImage = headImage; var slideImageOriginal = "<?=DIR_WS_IMAGES . $product_info['products_image']?>"; setInterval(runSlideShow,4000); function slideFader(){ if(slideStation == slideList.length){ slideStation = -1; slideImage = headImage; slideImageOriginal = "<?=DIR_WS_IMAGES . $product_info['products_image']?>"; }else{ slideImage = slideList[slideStation]; slideImageOriginal = slideListOriginal[slideStation]; } sPanel = document.getElementById("slidePanel"); // sPanel2 = document.getElementById("3"); //sPanel2.innerHTML = "<img src='"+slideImage+"' hspace='5' vspace='5'/>"; // sLPanel = document.getElementById("slidePanel"); // sPanel.innerHTML = "<img src='"+slideImage+"' hspace='5' vspace='5'/>"; //alert(slideImageOriginal); //sLPanel.innerHTML = "<a href=\"java script:popupWindow(\'https://www.myjaibags.com/shop/" + slideImageOriginal +"\')\"><img src=\'"+slideImage+"\' width=\"200\" height=\"150\" hspace=\'5\' vspace=\'5\'/></a>"; sPanel.innerHTML = "<a href=\"java script:popupWindow(\'https://www.myjaibags.com/shop/"+slideImageOriginal+"\');\"><img src=\'"+slideImage+"\' width=\"200\" height=\"150\" hspace=\'5\' vspace=\'5\'/></a>"; slideStation++; } function runSlideShow(){ setTimeout(slideFader,1000); } function getActiveSlideImage(){ return slideImageOriginal; } --> </script> <?=TEXT_CLICK_TO_ENLARGE;?> <!-- fancy product images slide show hack END --> </noscript> </td> </tr> </table> <?php } ?> <p><?php echo stripslashes($product_info['products_description']); ?></p> <?php $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { ?> <table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" colspan="2"><?php echo TEXT_PRODUCT_OPTIONS; ?></td> </tr> <?php $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name"); while ($products_options_name = tep_db_fetch_array($products_options_name_query)) { $products_options_array = array(); $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'"); while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) { $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']]; } else { $selected_attribute = false; } ?> <tr> <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td> </tr> <?php } ?> </table> <?php } ?> </td> </tr> <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $reviews = tep_db_fetch_array($reviews_query); if ($reviews['count'] > 0) { ?> <?php } if (tep_not_null($product_info['products_url'])) { ?> <?php } if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <?php } else { ?> <?php } ?> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main"><div align="center"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></div></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td height="18"><?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?> </td> </tr> </table> </form></td> <!-- body_text_eof //--> </table></td> </tr> </table> </tr> </table> <div align="center"> <p class="style2">Copyright 2007 by J.A.I. bags<br> </p> </div> <!-- body_eof //--> <!-- footer //--></td> <!-- body_text_eof //--> </table> </tr> </table> <!-- body_eof //--> <!-- footer //--><!-- footer_eof //--> <br> <tr> <td colspan="2" bgcolor="#FFFFFF"> </td> </tr> </table></td> </tr> </table> </div> <script type="text/javascript"> <!-- var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> <a href="http://www.instantssl.com" id="comodoTL">SSL</a> <script language="JavaScript" type="text/javascript"> COT("https://www.myjaibags.com/secure_site.gif", "SC2", "none"); </script> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
Barcelona Posted December 8, 2007 Author Posted December 8, 2007 http://myjaibags.com/problem.jpg (problem #1) http://myjaibags.com/problem2.jpg (problem #2)
germ Posted December 8, 2007 Posted December 8, 2007 You have a flaw in your slideshow image code: <script>var slideList = new Array(6); var slideListOriginal = new Array(6); slideList[0] = "http://www.myjaibags.com/shop/img_cache/3fb582839cd5574c6af0c82779e39218.jpg"; slideListOriginal[0] = "images/Calla_detail.jpg"; slideList[1] = "http://www.myjaibags.com/shop/img_cache/31f2ebc171cd055d5aa989a8404bc5da.jpg"; slideListOriginal[1] = "images/Back_of_bag.jpg"; slideList[2] = "http://www.myjaibags.com/shop/img_cache/ef2b564a915a716b49f5c6e686a5a995.jpg"; slideListOriginal[2] = "images/detail_of_strap.jpg"; slideList[3] = "http://www.myjaibags.com/shop/img_cache/25fd05bf743c382698a7a7ed44a6c786.jpg"; slideListOriginal[3] = "images/interior_detail.jpg"; slideList[4] = "http://www.myjaibags.com/shop/img_cache/64619310715bc662592ef66595b9f309.jpg"; slideListOriginal[4] = "images/holding_bag.jpg"; slideList[5] = "http://www.myjaibags.com/shop/img_cache/66d4545cd3adaf137dc51c5487b0f261.jpg"; slideListOriginal[5] = "images/Lily_mode.jpg"; </script><span id="slidePanel"><a href="java script:popupWindow('http://www.myjaibags.com/shop/popup_image.php/pID/28')"><img src="http://www.myjaibags.com/shop/img_cache/58e5caac12ff993f2c8010df6fff213a.jpg" border="0" alt="Calla Lilies" title=" Calla Lilies " width="200" height="139" hspace="5" vspace="5"></a></span><br /> <script type="text/javascript"> <!-- var slideStation = 0; var headImage = "http://www.myjaibags.com/shop/img_cache/58e5caac12ff993f2c8010df6fff213a.jpg"; var fadeSpeed = 1000; var slideImage = headImage; var slideImageOriginal = "images/Flores-5207.jpg"; setInterval(runSlideShow,4000); function slideFader(){ if(slideStation == slideList.length){ slideStation = -1; slideImage = headImage; slideImageOriginal = "images/Flores-5207.jpg"; }else{ slideImage = slideList[slideStation]; slideImageOriginal = slideListOriginal[slideStation]; } sPanel = document.getElementById("slidePanel"); // sPanel2 = document.getElementById("3"); //sPanel2.innerHTML = "<img src='"+slideImage+"' hspace='5' vspace='5'/>"; // sLPanel = document.getElementById("slidePanel"); // sPanel.innerHTML = "<img src='"+slideImage+"' hspace='5' vspace='5'/>"; //alert(slideImageOriginal); //sLPanel.innerHTML = "<a href=\"java script:popupWindow(\'https://www.myjaibags.com/shop/" + slideImageOriginal +"\')\"><img src=\'"+slideImage+"\' width=\"200\" height=\"150\" hspace=\'5\' vspace=\'5\'/></a>"; sPanel.innerHTML = "<a href=\"java script:popupWindow(\'https://www.myjaibags.com/shop/"+slideImageOriginal+"\');\"><img src=\'"+slideImage+"\' width=\"200\" height=\"150\" hspace=\'5\' vspace=\'5\'/></a>"; slideStation++; } function runSlideShow(){ setTimeout(slideFader,1000); } function getActiveSlideImage(){ return slideImageOriginal; } --> </script> When you're in SSL mode, all the links in there should be https. But, as you can see, they are not all https If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Barcelona Posted December 8, 2007 Author Posted December 8, 2007 you are looking at the source code in the html... the main file is php https://myjaibags.com/store/product_info.php
germ Posted December 8, 2007 Posted December 8, 2007 you are looking at the source code in the html... the main file is php Doh! :huh: If the HTML isn't "right", it aint gonna work... :blush: It's still a flaw in the basic design of the code. Who ever wrote it didn't take "SSL/NONSSL" into account when they wrote it. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted December 8, 2007 Posted December 8, 2007 I could take a look at modifying it for you, but not until morning. It's midnight here, and I've been up almost 20 hours. :blink: If I worked on it tonight, I'd just screw it up, most likely. :lol: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted December 8, 2007 Posted December 8, 2007 MAKE A BACKUP OF THIS FILE BEFORE MAKING ANY EDITS!!! Change this code: echo '<script>'.$sOut.'</script>'; To: // ******** added code here ******** if ( $request_type == 'SSL' ) { $sOut = str_replace('http', 'https', $sOut); } // ******** end of added code ******** echo '<script>'.$sOut.'</script>'; Change this code: echo '<span id="slidePanel"><a href="java script:popupWindow(\''. tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\')">' . tep_image($resizedImage, addslashes($product_info['products_name']), $resizedImageWidth, $resizedImageHeight, 'hspace="5" vspace="5"') . '</a></span><br />' To: // ******** changed code here ******** $my_html_str = echo '<span id="slidePanel"><a href="java script:popupWindow(\''. tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\')">' . tep_image($resizedImage, addslashes($product_info['products_name']), $resizedImageWidth, $resizedImageHeight, 'hspace="5" vspace="5"') . '</a></span><br />'; if ( $request_type == 'SSL' ) { $my_html_str = str_replace('http', 'https', $my_html_str); } echo $my_html_str; // ******** end of changed code ******** Change this code: ?> <script type="text/javascript"> <!-- var slideStation = 0; var headImage = "<?=$resizedImage?>"; var fadeSpeed = 1000; var slideImage = headImage; var slideImageOriginal = "<?=DIR_WS_IMAGES . $product_info['products_image']?>"; To: // ******** added code here ******** if ( $request_type == 'SSL' ) { $resizedImage = str_replace('http', 'https', $resizedImage); } // ******** end of added code ******** ?> <script type="text/javascript"> <!-- var slideStation = 0; var headImage = "<?=$resizedImage?>"; var fadeSpeed = 1000; var slideImage = headImage; var slideImageOriginal = "<?=DIR_WS_IMAGES . $product_info['products_image']?>"; If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.