Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

My flash banner doesn't work !


alhakeem2001

Recommended Posts

I bought a template for my store, after installing the template everything went fine except the flash logo at the header didn't work with me, I uploded the swf file to the store/images folder with no success !! hereby I attach my header code hope that someone could help me on that ...

 

 

<?php

/*

$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// check if the 'install' directory exists, and warn of its existence

if (WARN_INSTALL_EXISTENCE == 'true') {

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');

}

}

 

// check if the configure.php file is writeable

if (WARN_CONFIG_WRITEABLE == 'true') {

if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');

}

}

 

// check if the session folder is writeable

if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

if (STORE_SESSIONS == '') {

if (!is_dir(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');

} elseif (!is_writeable(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');

}

}

}

 

// check session.auto_start is disabled

if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

if (ini_get('session.auto_start') == '1') {

$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');

}

}

 

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

if (!is_dir(DIR_FS_DOWNLOAD)) {

$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');

}

}

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

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

 

<center>

<table border="0" width="765" height="259" cellspacing="0" cellpadding="0" style="margin-bottom:1px; ">

<tr>

<td width="339">

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">

<tr>

<td height="72"><img src="images/logo.jpg" width="339" height="72" border="0" alt="logo" /></td>

</tr>

<tr>

<td width="340" height="187" style="background:url(images/search_bg.jpg) no-repeat">

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">

<tr>

<td width="50%" align="left" valign="top" style="padding-top:15px; padding-left:10px; "><?php require(DIR_WS_BOXES . 'menu.php'); ?></td>

<td width="50%" align="left" valign="top" style="padding-top:25px; ">

<ul class="topmenu">

<li><a href="<?php echo tep_href_link(FILENAME_ABOUT_US) ?>" class="atopmenu">About Us</a></li>

<li><a href="<?php echo tep_href_link(FILENAME_SPECIALS) ?>" class="atopmenu">Specials</a></li>

<li><a href="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH) ?>" class="atopmenu">Advanced Search</a></li>

<li><a href="<?php echo tep_href_link(FILENAME_CREATE_ACCOUNT) ?>" class="atopmenu">Create an account</a></li>

<li><a href="<?php echo tep_href_link(FILENAME_LOGIN) ?>" class="atopmenu">Customer login</a></li>

</ul>

 

</td>

</tr>

<tr>

<td width="50%" height="65" valign="top" align="left" style="padding-left:10px; "><?php require(DIR_WS_BOXES . 'manufacturers.php'); ?></td>

<td width="50%" height="65" valign="top" align="left" ><?php require(DIR_WS_BOXES . 'search.php'); ?></td>

</tr>

</table>

</td>

</tr>

</table>

</td>

<td width="426">

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">

<tr>

<td height="60" valign="bottom">

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="46" style="margin-bottom:14px; ">

<tr>

<td width="33%" align="left"><?php if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'currencies.php');

} ?></td>

<td width="33%" valign="bottom" style="padding-bottom:4px; "><?php if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');} ?></td>

<td width="33%" valign="bottom" align="left"><?php require(DIR_WS_BOXES . 'shopping_cart.php'); ?></td>

</tr>

</table>

</td>

</tr>

<tr>

<td width="426" height="199"><script type="text/javascript">

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0','width','426','height','199','src','../images/header','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','../images/header' ); //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=6,0,29,0" width="426" height="199">

<param name="movie" value="../images/header.swf">

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

<embed src="../images/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="426" height="199"></embed>

</object></noscript></td>

</tr>

</table>

</td>

</tr>

</table>

<?php

if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerError">

<td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>

</tr>

</table>

<?php

}

 

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerInfo">

<td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>

</tr>

</table>

<?php

}

?>

Link to comment
Share on other sites

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0','width','426','height','199',

'src','../images/header','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','../images/header' ); //end AC code

 

This looks wrong. You might want to use an absolute path here, as in http://www.y.z/catalog/images/header.swf

 

At the very least make this and the next line that is highlighted THE SAME. This line is missing the .swf extension

 

 

<param name="movie" value="../images/header.swf">

 

This looks wrong. You might want to use an absolute path here, as in http://www.y.z/catalog/includes/header.swf

 

<embed src="../images/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="426" height="199"></embed>

 

This looks wrong. You might want to use an absolute path here, as in http://www.y.z/catalog/includes/header.swf

 

Also have a look at:

 

http://www.adobe.com/devnet/activecontent/.../devletter.html

 

or

 

http://twelvestone.com/forum_thread/view/37553

 

Good Luck!

 

Graham Leach, Co-Proprietor

Authentic Closet

Link to comment
Share on other sites

OK I chnaged everything you said and still it doesn't work !!! I need more help as I am really lost @!#%

 

 

 

http://www.arab-broker.com/carparts

 

 

 

 

<?php

/*

$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// check if the 'install' directory exists, and warn of its existence

if (WARN_INSTALL_EXISTENCE == 'true') {

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');

}

}

 

// check if the configure.php file is writeable

if (WARN_CONFIG_WRITEABLE == 'true') {

if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');

}

}

 

// check if the session folder is writeable

if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

if (STORE_SESSIONS == '') {

if (!is_dir(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');

} elseif (!is_writeable(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');

}

}

}

 

// check session.auto_start is disabled

if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

if (ini_get('session.auto_start') == '1') {

$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');

}

}

 

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

if (!is_dir(DIR_FS_DOWNLOAD)) {

$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');

}

}

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

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

 

<center>

<table border="0" width="765" height="259" cellspacing="0" cellpadding="0" style="margin-bottom:1px; ">

<tr>

<td width="339">

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">

<tr>

<td height="72"><img src="images/logo.jpg" width="339" height="72" border="0" alt="logo" /></td>

</tr>

<tr>

<td width="340" height="187" style="background:url(images/search_bg.jpg) no-repeat">

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">

<tr>

<td width="50%" align="left" valign="top" style="padding-top:15px; padding-left:10px; "><?php require(DIR_WS_BOXES . 'menu.php'); ?></td>

<td width="50%" align="left" valign="top" style="padding-top:25px; ">

<ul class="topmenu">

<li><a href="<?php echo tep_href_link(FILENAME_ABOUT_US) ?>" class="atopmenu">About Us</a></li>

<li><a href="<?php echo tep_href_link(FILENAME_SPECIALS) ?>" class="atopmenu">Specials</a></li>

<li><a href="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH) ?>" class="atopmenu">Advanced Search</a></li>

<li><a href="<?php echo tep_href_link(FILENAME_CREATE_ACCOUNT) ?>" class="atopmenu">Create an account</a></li>

<li><a href="<?php echo tep_href_link(FILENAME_LOGIN) ?>" class="atopmenu">Customer login</a></li>

</ul>

 

</td>

</tr>

<tr>

<td width="50%" height="65" valign="top" align="left" style="padding-left:10px; "><?php require(DIR_WS_BOXES . 'manufacturers.php'); ?></td>

<td width="50%" height="65" valign="top" align="left" ><?php require(DIR_WS_BOXES . 'search.php'); ?></td>

</tr>

</table>

</td>

</tr>

</table>

</td>

<td width="426">

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">

<tr>

<td height="60" valign="bottom">

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="46" style="margin-bottom:14px; ">

<tr>

<td width="33%" align="left"><?php if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'currencies.php');

} ?></td>

<td width="33%" valign="bottom" style="padding-bottom:4px; "><?php if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');} ?></td>

<td width="33%" valign="bottom" align="left"><?php require(DIR_WS_BOXES . 'shopping_cart.php'); ?></td>

</tr>

</table>

</td>

</tr>

<tr>

<td width="426" height="199"><script type="text/javascript">

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0','width','426','height','199','src','http://www.arab-broker.com/carparts/carparts/images/header.swf','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','http://www.arab-broker.com/carparts/carparts/images/header.swf' ); //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=6,0,29,0" width="426" height="199">

<param name="movie" value="http://www.arab-broker.com/carparts/carparts/images/header.swf">'>http://www.arab-broker.com/carparts/carparts/images/header.swf">

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

<embed src="http://www.arab-broker.com/carparts/carparts/images/header.swf" quality="high" pluginspage="http://www.arab-broker.com/carparts/carparts/images/header.swf" width="426" height="199"></embed>

</object></noscript></td>

</tr>

</table>

</td>

</tr>

</table>

<?php

if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerError">

<td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>

</tr>

</table>

<?php

}

 

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerInfo">

<td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>

</tr>

</table>

<?php

}

?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...