Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

column_right.php issues with layout


tim_ver

Recommended Posts

I am trying to add in a flash file on column_right under best sellers. I have pasted the code below for both column_right.php and also the swf.php file, which I put in the boxes folder. Right now the only thing that comes up is best sellers. I think I have the code correct but not 100% sure as it is not coming up. Also I do have the main.swf file in Flash folder which is at root level with admin folder,etc.

 

How do I fix this?

 

 

column_right.php:

 

<?php

/*

$Id: column_right.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

$column_location = 'Right';

?>

 

 

<?php

if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES_AZ . 'order_history.php');

?>

 

<?php require(DIR_WS_BOXES_AZ . 'best_sellers.php'); ?>

<?php require(DIR_WS_BOXES_AZ . 'swf.php'); ?>

<?php require(DIR_WS_BOXES_AZ . 'specials.php'); ?>

<tr><td></td></tr>

 

<?php

$column_location = '';

?>

 

 

swf.php

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

</head>

 

<body>

<script type="text/javascript">

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','132','height','116','title','swf','src','../../Flash','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../../Flash' ); //end AC code

</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="132" height="116" title="test1">

<param name="movie" value="../../Flash/12.swf" />

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

<embed src="../../Flash/12.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="132" height="116"></embed>

</object></noscript>

</body>

</html>

Link to comment
Share on other sites

Tim,

 

A place to start, you have swf.php set up as an individual webpage, it is inserting second <html>,<heading> and <body> tags this is confusing the browser. Drop the <html>,<heading> & <body> tags (also the </html>,</heading> & </body> tags). Place you flash file code between <td> and </td> tags only. You can also place it inside a <table> within these but it's not neccesary if you have the flash video file sized to properly fit in the column_right.

 

Hope this helps you out,

Frank

Link to comment
Share on other sites

Ok, how does this look:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<td>

<script type="text/javascript">

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','132','height','116','title','swf','src','../../Flash','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../../Flash' ); //end AC code

</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="132" height="116" title="test1">

<param name="movie" value="../../Flash/12.swf" />

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

<embed src="../../Flash/12.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="132" height="116"></embed>

</object></noscript>

</td>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...