Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

after a year online MSIE finally messes my site up


Graveyard666

Recommended Posts

Posted

Firefox (my personal choice) and Netscape 7.2 show my site perfectly, but MSIE 6.0 makes my site look like a retard did it..

 

gyie.jpg

 

any ideas on why its like this? MSIE looked perfect as of Jan 5th. I figured its from a new update in MSIE or Win XP but I have no idea how to fix it in OSC..

 

any info would be greatly appreciated..

 

especially since this is a *LIVE* store - www.graveyardrecords.com/index.php

 

 

jeff

Posted

Jeff;

 

You have made alot of modifications to osCommerce. I especially like the way the login box displays on your main page.

 

My best guess is that, in making your modifications you omitted a closing tag for a table cell or row. IE6 is especially unforgiving about that.

 

I have seen the opposite happen a while back; a developer had failed to include the final closing tag for his outermost table and Netscape woudn't display the table. The page was blank except for the header.

 

Best!

 

Randall

Posted

You declare two tables, one right after the other, without any intervening code:

 

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

 

 

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

 

Your site also gives a javascript error in IE6

 

Vger

Posted

Here is the code of my header, I don't know where these tables are I'm assuming its here..

 

how do I fix it?

 

 

<?php
/*
 $Id: header.php,v 1.36 2002/08/15 17:29:47 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2001 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')) {
     tep_output_string(WARNING_INSTALL_DIRECTORY_EXISTS);
   }
 }

// 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')) ) {
     tep_output_string(WARNING_CONFIG_FILE_WRITEABLE);
   }
 }

// check if the session folder is writeable
 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
   if (STORE_SESSIONS == '') {
     if (!is_dir(tep_session_save_path())) {
       tep_output_string(WARNING_SESSION_DIRECTORY_NON_EXISTENT);
     } elseif (!is_writeable(tep_session_save_path())) {
       tep_output_string(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE);
     }
   }
 }

// check session.auto_start is disabled
 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
   if (ini_get('session.auto_start') == '1') {
     tep_output_string(WARNING_SESSION_AUTO_START);
   }
 }

 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
   if (!is_dir(DIR_FS_DOWNLOAD)) {
     tep_output_string(WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT);
   }
 }
?>
<?php
// BOF: WebMakers.com Added: Center Shop
// This goes before any other table of the shop
 if ( CENTER_SHOP_ON=='1' ) {
// Is a bgroundcolor set for around the shop
   if ( CENTER_SHOP_BACKGROUND_ON=='1' ) {
?>
   <table width="100%" cellpadding="<?php echo CENTER_SHOP_PADDING; ?>" cellspacing="0" border="0" bgcolor="<?php echo CENTER_SHOP_BACKGROUND_COLOR_OUT; ?>">
     <tr><td>
<?php
    }
// Center the shop to what size and what bgcolor
?>
   <table CELLSPACING="4" CELLPADDING="6" BORDER="0" width="<?php echo CENTER_SHOP_WIDTH; ?>" align="center" BGCOLOR="<?php echo CENTER_SHOP_BACKGROUND_COLOR; ?>">
     <tr><td BGColor="000000">
<?php
  }
// The rest of the <td> at the end of the footer
// EOF: WebMakers.com Added: Center Shop
?>


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


<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">


   <td height="125" colspan="2" valign="top"><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="760" height="125">

     <param name="movie" value="images/head61.swf">
     <param name="quality" value="high">
     <embed src="images/head61.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="760" height="125"></embed>
   </object><br>

<table align="left" width="500" border="0" cellspacing="0" cellpadding="0">
<tr align="left"><td height="35" colspan="2" valign="top">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="500" height="35" id="menuBar" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<?php if ((isset($HTTP_GET_VARS['osCsid']) & ($HTTP_GET_VARS['osCsid'] != '')) || (tep_session_is_registered('osCsid'))) { ?>
<param name="movie" value="menuBar.swf?osCsid=<?php echo $_GET['osCsid']; ?>" />
<?php } else { ?>
<param name="movie" value="menuBar.swf" />
<?php } ?>
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<?php if ((isset($HTTP_GET_VARS['osCsid']) && ($HTTP_GET_VARS['osCsid'] != '')) || (tep_session_is_registered('osCsid'))) { ?>
<embed src="menuBar.swf?osCsid=<?php echo $_GET['osCsid']; ?>" quality="high" bgcolor="#000000" width="500" height="35" name="menuBar" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
<?php } else { ?>
<embed src="menuBar.swf" quality="high" bgcolor="#000000" width="500" height="35" name="menuBar" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
<?php } ?>
</object>
<td></tr>
 
<tr align="left" valign="bottom"><td>
<?php
/*
IMPORTANT NOTE:
 This is not part of the official osC distribution
 but an add-on contributed to the osC community. Please
 read the README document that are provided
 with this file for further information and installation notes.

 This puts a login request in a box with a login button.
 If already logged in, will not show anything.

 Modified to utilize SSL to bypass Security Alert
 
 LoginboxV5.4_header http://avzwebdesign.nl/oscommerce/
*/

if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) 
and 
(!strstr($_SERVER['PHP_SELF'],'create_account.php')) 
and 
!tep_session_is_registered('customer_id') 
)   {
?>
<!-- loginbox //-->
<?php 
   if (!tep_session_is_registered('customer_id')) {
?>
<table width="310"><tr> <td>
<?php
 
$loginboxcontent = tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL'))
         . '<table width="310" border="0" cellspacing="0" cellpadding="0"><tr><td colspan="3" class="smallText">'
        .'<tr><td class="smallText">'
        . tep_draw_separator('pixel_trans.gif', '2', '1') 
        . BOX_LOGINBOXH_EMAIL
        . '</td><td  class="smallText" colspan="3">'
         . tep_draw_input_field('email_address', '', 'size="10" maxlength="100" style="width: ' . (BOX_WIDTH-30) . 'px"') 
        .'</td></tr><tr><td class="smallText">'
        . tep_draw_separator('pixel_trans.gif', '2', '1') 
        . BOX_LOGINBOXH_PASSWORD
        . '</td><td class="smallText">'
        . tep_draw_password_field('password', '', 'size="10" maxlength="40" style="width: ' . (BOX_WIDTH-30) . 'px"')
        . '</td><td class="smallText">'
        . '<a href="'
        . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL')
        . '">'
        . BOX_LOGINBOXH_FORGOT_PASSWORD 
        . '</a></td></tr><tr><td class="smallText" colspan="3">'
        . tep_draw_separator('pixel_trans.gif', '5', '25')
        . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN)
          . '</form>'
        . tep_draw_separator('pixel_trans.gif', '15', '1')
        .  BOX_LOGINBOXH_TEXT_NEW
        . '<a href="'
        . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')
        . '">'
        . BOX_LOGINBOXH_NEW
        . '</a></td></tr></table>'
                ;	
     
          
$info_box_contents = array();
   $info_box_contents[] = array('align' => '',
                                'text'  => $loginboxcontent);
   new infoBox($info_box_contents);
?>
           </td>
         </tr></table>
<?php
 } else {
 // If you want to display anything when the user IS logged in, put it
 // in here...  Possibly a "You are logged in as :" box or something.
 }
?>
<!-- loginbox_eof //-->
<?php
// WebMakers.com Added: My Account Info Box
} else {
 if (tep_session_is_registered('customer_id')) {
?>

<!-- my_account_info //-->
 <table width="310"><tr>
           <td>
<?php
 

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
                              'text'  => '<table width="310" border="0" cellspacing="0" cellpadding="0"><tr><td class="smallText" colspan="2">'
         . tep_draw_separator('pixel_trans.gif', '2', '1')
         . '<b><center>' 
         . tep_customer_greeting() 
         .'</b></center></td></tr><tr><td class="smallText">'
         . '<tr><td class="smallText" colspan="2" align="center">'
         . tep_draw_separator('pixel_trans.gif', '2', '20')
         . '<b>' 
         . BOX_HEADING_LOGIN_BOX_MY_ACCOUNT
         .'</b></td></tr><tr><td class="smallText" align="center">'
         . tep_draw_separator('pixel_trans.gif', '2', '15') .
 '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') .'">' . LOGIN_BOX_MY_ACCOUNT . '</a><td class="smallText" align="center">' .
                                         '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') .'">' . LOGIN_BOX_ACCOUNT_EDIT . '</a></td></tr><tr><td class="smallText" align="center">' . tep_draw_separator('pixel_trans.gif', '2', '1') .
                                         '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') .'">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><td class="smallText" align="center">' . 
                                         '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') .'">' . LOGIN_BOX_ADDRESS_BOOK . '</a></td></tr><tr><td class="smallText" align="center">' . tep_draw_separator('pixel_trans.gif', '2', '1') .
'<a href="' . tep_href_link(FILENAME_WISHLIST, '', 'SSL') .'">' . LOGIN_BOX_WISHLIST . '</a><td class="smallText" align="center">' . 
                                         '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, '', 'SSL') .'">' . LOGIN_BOX_NEW_PROD . '</a></td></tr></table><tr><td class="smallText" align="center">'  . tep_draw_separator('pixel_trans.gif', '', '1') .
                                         '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') .'">' . LOGIN_BOX_LOGOFF2 . '</a></td></tr>');
 new infoBox($info_box_contents);
?>
           </td>
         </tr></table>
<!-- my_account_info_eof //-->

<?php 
 } // END-IF SESSION REGISTERED
 
} // END-IF

?>
<p>
<img src="http://www.graveyardrecords.com/images/msie_error.jpg">
</td>
<!-- search //-->
<table align="right"><tr><td>
<tr class="header"><td  class="headerCart_contents"><center>Search:
<?php
$hide = tep_hide_session_id();
echo '<form name="quick_find" method="get" action="' . tep_href_link (FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false) . '">';
echo $hide . '<input type="text" name="keywords" size="15" maxlength="30" value="' . htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"])) . '">   ' . tep_image_submit('goblack666.gif', BOX_HEADING_SEARCH) . '<br>' . '<br>'; 
echo '</form>';
?>
</td></td></tr></table>
<!-- search_end //-->

<!-- Header Cart --!>
<table align="right"><tr><td>
<table align="right" class="headerCart_table" width="220" border="0" cellspacing="1" cellpadding="1">
<tr align="center">
 <td class="headerCart_title"><b>Cart Contents</b></td>
</tr>
<tr align="center">
 <td><table><tr>
 <td class="headerCart_contents" align="center">
	 <?php if ($cart->count_contents() == '1') { echo $cart->count_contents() . ' Product'; } else { echo $cart->count_contents() . ' Products'; } ?>  
 </td>
 <td class="headerCart_contents" align="center">
	 <?php echo 'SubTotal: ' . $currencies->format($cart->show_total()); ?>
 </td>
 </tr></table></td>
</tr></table></td></tr>

<!-- Header Cart End --!>

   
</tr>
</td>
 </tr>
</table>
</td></tr></table>
<table border="0" width="770" cellspacing="0" cellpadding="1">
 <tr class="headerNavigation">
   <td class="headerNavigation">  <?php echo strftime(DATE_FORMAT_LONG); ?></td>
   <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a></td>
 </tr>



</table>

<?php
 if ($HTTP_GET_VARS['error_message'] != '') {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerError">
   <td class="headerError"><?php echo urldecode($HTTP_GET_VARS['error_message']); ?></td>
 </tr>
</table>
<?php
 }

 if ($HTTP_GET_VARS['info_message'] != '') {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerInfo">
   <td class="headerInfo"><?php echo $HTTP_GET_VARS['info_message']; ?></td>
 </tr>
</table>

<?php
 }
?>

 

Javascript?? I'm not running any java on my site, not that I know of anyhow

 

 

 

 

 

You declare two tables, one right after the other, without any intervening code:

 

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

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

 

Your site also gives a javascript error in IE6

 

Vger

Posted

Change your comment tags form

<!-- Header Cart --!>

 

to the correct markup

<!-- Header Cart //-->

 

and

<!-- Header Cart End --!>

 

to the correct markup

<!-- Header Cart End //-->

 

That should help with the disappearing cart in IE

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Archived

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

×
×
  • Create New...