New Zenner
- Join Date:
- Apr 2007
- Posts:
- 41
- Plugin Contributions:
- 0
Error with tpl_header.php file. FILE ATTACHED PLEASE SOMEONE SPOT ERROR
Hi,
Ive been trying to edit my tpl_header.php file from my template section and it all seems to have gone wrong now. This was working perfect prior to me adding a line of text which has somehow stopped the customised header isplaying on front end of website. I have attached the source code of the file, can anyone see any errors within it.
I opened up the file tpl_header.php and inserted some text on the page, anyway to cut a long story hort i made a minor change to the file whch has now resulted in it not displaying on the front end of my website. I started to panic and decided to download a version of zen and resort the tpl_header.php back to a standard file. As you can see from the homepage www.canvas101.co.uk
I have attached the code of the tpl_header.php that I want displaying. It did work perfectly untill i started messing with it. Please could someone have a look for me as I have not a lot of experiene with php.
Any help would be greatly appreciated
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<?php***
***/*****
**** Common Template - tpl_header.php***
*******
**** this file can be copied to /templates/your_template_dir/pagename<br /><html><head>***
***<meta http-equiv="Content-Type" content="text/html; charset=unicode">***
***<meta content="MSHTML 6.00.6000.16643" name="GENERATOR"></head>***
***<body>***
**** 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\[/COLOR\]\*\*\*](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 { } ?> <?php echo HEADER_TITLE_CHECKOUT; ?><?php }?>
<div id="headerWrapper">
<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div><?php if ($_SESSION['customer_id']) { ?><?php echo HEADER_TITLE_LOGOFF; ?><?php***
***} else {***
***if (STORE_STATUS == '0') {***
***?><?php echo HEADER_TITLE_LOGIN; ?><?php } } ?><?php echo HEADER_TITLE_CART_CONTENTS; ?>
<br><?php echo HEADER_TITLE_CHECKOUT; ?>
<div class="forward search_header"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<div class="spacer_1"></div><!-- <div id="topdiv">***
***<div id="bannerdiv"><img id="BannerImg" alt="Canvas Prints & Canvas Printing by Canvas101" src="<?php echo DIR_WS_TEMPLATES . $template_dir; ?>/images/design/banner6.jpg" /></div>***
***</div>***
***-->
<div id="topdiv">
<div id="bannerdiv"><img
src="***[COLOR=#0000ff]http://www.canvas101.co.uk/includes/templates/jsweb/images/design/banner1.jpg******" ***
name=PictureBox></div></div>
<ul>
<li><a title="Canvas101 Home" href="<?php echo zen_href_link(FILENAME_DEFAULT, ***
***'', 'NONSSL'); ? >">home</a>
<li><a title="Information about Canvas101 and Canvas Printing"
href="./index.php?main_page=page&id=1&chapter=0">about us</a>
<li><a title="Gallery of Canvas Printing images" href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL, '', 'NONSSL'); ? ***
***>" >gallery</a>
<li><a title="Canvas Printing Services"
href="./index.php?main_page=page&id=2&chapter=0">services</a>
<li><a title="Canvas Print Sizes and Prices"
href="./index.php?main_page=page&id=3&chapter=0">sizes/prices</a>
<li><a title="Materials available for Canvas Prints"
href="./index.php?main_page=page&id=4&chapter=0">material</a>
<li><a title="Frequently asked questions about canvas printing"
href="./index.php?main_page=page&id=5&chapter=0">faq</a>
<li><a title="Feedback Form"
href="./index.php?main_page=page&id=6&chapter=0">feedback</a>
<li><a title="Contacting Canvas101" href="<?php echo zen_href_link(FILENAME_CONTACT_US, ***
***'', 'NONSSL'); ? >">contacts</a>
</li></ul>
<p>
<br class="clearBoth" ><!--eof-branding display--><!--eof-header logo and navigation display--><!--bof-optional categories tabs navigation display--><?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, ***
***$current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?> <!--eof-optional categories tabs navigation display--><!--bof-header ezpage links--><?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?><?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, ***
***$current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?> <?php } ?><!--eof-header ezpage links--></p>
</div><?php } ?></body></html>