Hi I would like some advice on this matter I have some issues with my header. I want to embed a swf file instead of an image I have done all the appropriate steps in order to have it but it seems that it doesn't work... please have a look. Here is my header file tpl_header.php on my zen cart\includes\templates\my_theme\common folder
<?php
/**
* Common Template - tpl_header.php
*
* this file can be copied to /templates/your_template_dir/pagename<br />
* example: to override the privacy page<br />
* make a directory /templates/my_template/privacy<br />
* copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
* to override the global settings and turn off the footer un-comment the following line:<br />
* <br />
* $flag_disable_header = true;<br />
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $
*/
?>
<?php
// Display all header alerts via messageStack:
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
echo htmlspecialchars(urldecode($_GET['error_message']));
}
if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
echo htmlspecialchars($_GET['info_message']);
} else {
}
?>
<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>
<?php
if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerOne"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<div class="border-top">
<div class="border-bottom">
<div class="border-right">
<div class="border-left">
<div class="border-bottom-right">
<div class="border-bottom-left">
<div class="border-top-right">
<div class="border-top-left">
<div class="border-padding">
<div class="navigation">
<div class="links">
<?php #HEADER LINKS START ?>
<a href="<?php echo HTTP_SERVER . DIR_WS_CATALOG ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>
<?php if ($_SESSION['customer_id']) { ?>
<a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>
<a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>
<?php } } ?>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>
<a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a>
<?php } ?>
<?php #HEADER LINKS END ?>
</div>
<div class="cart">
<strong><?php echo BOX_HEADING_SHOPPING_CART;?></strong><br />
<div class="spacer"><?php echo zen_draw_separator($image = 'pixel_trans.gif', '1', '4');?></div>
<?php
if ($_SESSION['cart']->count_contents() == 1) {
$items = $_SESSION['cart']->count_contents() . ' item';
} else {
$items = $_SESSION['cart']->count_contents() . ' items';
}
?>
now in your cart <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL');?>"><?php echo $items;?></a>
</div><div class="clear"></div>
</div>
<div class="logo">
<div class="spacer"><a href="<?php echo zen_href_link(FILENAME_DEFAULT);?>">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="890" height="232" id="FlashID" title="header">
<param name="movie" value="../images/header.swf">
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="9.0.45.0">
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf">
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="../images/header.swf" width="890" height="232">
<!--<![endif]-->
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="9.0.45.0">
<param name="expressinstall" value="Scripts/expressInstall.swf">
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</a>
</div>
As you can see inside <div> logo I have added the swf file correctly but in my web page the swf wont work as it says that i have to do an upgrade of my flash player which I already did that. Please help I'am trying to do that over a week without a result.
here is my CSS div in my stylesheet_tm.css on my zen cart\includes\templates\my_theme\css folder
.logo{
float: left;
height: 232px;
width: 890px;
border: 2px solid gray;
margin-bottom: 1px;
}


27CDB6E-AE6D-11cf-96B8-444553540000" width="890" height="232" id="FlashID" title="header">
Reply With Quote
