Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ssl (https) Pop-up Window For Sites With Flash Files


tauneutrino

Recommended Posts

I wanted to take a moment to post information related to how I successfully integrated two flash files into the header of my online store and also addressed a potentially problematic issue of customers receiving the status quo pop-up message, "This page contains both secure and nonsecure items. Do you want to display the nonsecure items?"

 

First: How to create a session management environment for those who have two flash files they wish to display in their header file:

 

<?php if(!tep_not_null($show_intro)){

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="450" height="104">

<param name="movie" value="<?=URL.DIR_WS_HTTP_CATALOG.DIR_WS_IMAGES?>flash/flash_header1.swf">

<param name="quality" value="high">

<embed src="<?=URL.DIR_WS_HTTP_CATALOG.DIR_WS_IMAGES?>flash/flash_header1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="104"></embed></object>

<?

$show_intro = '1';

tep_session_register('show_intro');

}else{

?>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="450" height="104">

<param name="movie" value="<?=URL.DIR_WS_HTTP_CATALOG.DIR_WS_IMAGES?>flash/flash_header2.swf" />

<param name="quality" value="high" />

<embed src="<?=URL.DIR_WS_HTTP_CATALOG.DIR_WS_IMAGES?>flash/flash_header2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="104"></embed>

</object>

<? } ?>

 

Second: How to solve the issue with the pop-up message mentioned in the first paragraph of my post. Simply change the codebase="http://download." to "https://download" Credit for this solution should be given to Chemo (solution source: http://www.oscommerce.com/forums/index.php?showtopic=118744).

 

Finally, be sure your config.php file in /includes/ is configured properly so your SSL is envoked when you move from a HTTP to HTTPS-specific page.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...