Guest Posted April 18, 2007 Posted April 18, 2007 How can I remove specials and contact us from the header? Here is my header file <?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 (c) 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'); } ?><style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } --> </style> <meta http-equiv="Page-Enter" content="blendTrans(Duration=0.5)"> <meta http-equiv="Page-Exit" content="blendTrans(Duration=0.5)"> <table cellpadding="0" cellspacing="0" border="0" align="center"> <tr> <td valign="top" width="712"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top" width="712" height="108"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top" width="224" height="108"><a href="<?=tep_href_link('index.php')?>"> <br /> <?=tep_image("images/topbar.jpg")?> </a></td> <td valign="top" width="498" height="108" align="right"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td height="18" colspan="2" valign="top"></td> </tr> <tr> <td valign="bottom" width="230" align="right" class="header"><div align="left"> <?=tep_image("images/logos.jpg")?> </div> <br /></td> <td valign="bottom" width="268" height="79" align="right" class="header"><?=tep_image("images/z1.gif")?> <b><a href="<?=tep_href_link('shopping_cart.php')?>"><?=BOX_HEADING_SHOPPING_CART?></a></b> <?=$cart->count_contents()?> <?=BOX_SHOPPING_CART_EMPTY?> <br> <br style="line-height:5px "> <a href="<?=tep_href_link('specials.php')?>"><?=BOX_HEADING_SPECIALS?></a> | <a href="<?=tep_href_link('advanced_search.php')?>"><?=BOX_SEARCH_ADVANCED_SEARCH?></a> | <a href="<?=tep_href_link('contact_us.php')?>"><?=BOX_INFORMATION_CONTACT?></a> | <a href="<?=tep_href_link('create_account.php')?>"><?=HEADER_TITLE_CREATE_ACCOUNT?></a> | <a href="<?=tep_href_link('login.php')?>"><?=HEADER_TITLE_LOGIN?> <br /> </a> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td valign="top" width="712" height="24"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top" width="495" height="24"><a href="<?=tep_href_link('index.php')?>"><?=tep_image("images/m1.gif")?></a><a href="<?=tep_href_link('products_new.php')?>"><?=tep_image("images/m2.gif")?></a><a href="<?=tep_href_link('account.php')?>"><?=tep_image("images/m3.gif")?></a><a href="<?=tep_href_link('shopping_cart.php')?>"><?=tep_image("images/m4.gif")?></a><a href="<?=tep_href_link('checkout_shipping.php')?>"><?=tep_image("images/m5.gif")?></a></td> <td valign="top" width="217" height="24" class="input"> <?php echo tep_draw_form('a_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get', 'onSubmit="return check_form(this);"') . tep_hide_session_id(); ?> <script language="javascript" src="includes/general.js"></script> <script language="javascript"><!-- function check_form() { var error_message = "<?php echo JS_ERROR; ?>"; var error_found = false; var error_field; var keywords = document.advanced_search.keywords.value; if ( ((keywords == '') || (keywords.length < 1)) && ((dfrom == '') || (dfrom == '<?php echo DOB_FORMAT_STRING; ?>') || (dfrom.length < 1)) && ((dto == '') || (dto == '<?php echo DOB_FORMAT_STRING; ?>') || (dto.length < 1)) && ((pfrom == '') || (pfrom.length < 1)) && ((pto == '') || (pto.length < 1)) ) { error_message = error_message + "* <?php echo ERROR_AT_LEAST_ONE_INPUT; ?>\n"; error_field = document.advanced_search.keywords; error_found = true; } if (error_found == true) { alert(error_message); error_field.focus(); return false; } } //--></script> <br style="line-height:1px"><img alt="" src="images/spacer.gif" width="9px" height="1px"><input id="input1" name="keywords" type="text"><img alt="" src="images/spacer.gif" width="4px" height="1px"><a style="position:relative;top:3px;" href="search.php" onclick="document.forms.a_search.submit();return false;"><?=tep_image_button("1_k1.gif");?></a></form></td> </tr> </table> </td> </tr> <tr> <td valign="top"> <br style="line-height:5px;"></td> </tr> <tr> <td><br style="line-height:4px;"/><?=tep_image("images/1_line.gif");?><br/><br style="line-height:5px;"/></td> </tr>
Marc_J Posted April 18, 2007 Posted April 18, 2007 Replace: - <a href="<?=tep_href_link('specials.php')?>"><?=BOX_HEADING_SPECIALS?></a> | <a href="<?=tep_href_link('advanced_search.php')?>"><?=BOX_SEARCH_ADVANCED_SEARCH?></a> | <a href="<?=tep_href_link('contact_us.php')?>"><?=BOX_INFORMATION_CONTACT?></a> | <a href="<?=tep_href_link('create_account.php')?>"><?=HEADER_TITLE_CREATE_ACCOUNT?></a> | <a href="<?=tep_href_link('login.php')?>"><?=HEADER_TITLE_LOGIN?> With: - <a href="<?=tep_href_link('advanced_search.php')?>"><?=BOX_SEARCH_ADVANCED_SEARCH?></a> | <a href="<?=tep_href_link('create_account.php')?>"><?=HEADER_TITLE_CREATE_ACCOUNT?></a> | <a href="<?=tep_href_link('login.php')?>"><?=HEADER_TITLE_LOGIN?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.