Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Sep 2008
    Posts
    21
    Plugin Contributions
    0

    red flag I deleted this file : tpl_header.php ,where can i get another one?

    After working 6 hours straight on my site for the first time i got sloppy Instead of added script to disable the header i decided to delete the file and noticed that my website was nothing but a gray page now.

    I need to get another tpl_header.php file.

    Can someone please tell me where i can find one ? I dont want to start over...

    Thank alot
    Nic

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: I deleted this file : tpl_header.php ,where can i get another one?

    FOR ZENCART 1.3.8.a.
    Code:
    <?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) {
    ?>
    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?php
          } else {
            if (STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <?php } } ?>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    </ul>
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->
    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
        <div id="taglineWrapper">
    <?php
                  if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
                  }
    ?>
    <?php
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                    if ($banner->RecordCount() > 0) {
    ?>
          <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
                    }
                  }
    ?>
        </div>
    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    <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-->
    </div>
    <?php } ?>

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: I deleted this file : tpl_header.php ,where can i get another one?

    You can download the original Zen Cart files here: https://www.zen-cart.com/tutorials/i...hp?article=323

    You should also get in the habit of doing backups of all your files and database, esp whenever you are making changes.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Sep 2008
    Posts
    21
    Plugin Contributions
    0

    Default Re: I deleted this file : tpl_header.php ,where can i get another one?

    Thanks alot for your quick reply ;-)

    Hopefuly this will resolve my problems..i also removed html_header.php do you think that file was needed for the operation of my site ?

    Thanks,
    Nic

  5. #5
    Join Date
    Sep 2008
    Posts
    21
    Plugin Contributions
    0

    Default Re: I deleted this file : tpl_header.php ,where can i get another one?

    Oh great my website is back up ! Thanks alot guys ,you quicker than my hosting company and almost as fast as Mcdonalds drive thru ;-)

    If anyone can have a look at my site :

    www.ancientartgallery.com

    I am confused now because it works but the Zencart logo is still there in the top left corner?? i managed to upload my header image why would the logo overlap ?

    And that darn sales message i thought i removed is still there ( i know that the sales message si spart of the top 10 questions ,no need to answer the question if you believe i can find it in the FAQS ) :-)

    Best Regards,
    Nic

  6. #6
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: I deleted this file : tpl_header.php ,where can i get another one?

    Quote Originally Posted by taag View Post
    Thanks alot for your quick reply ;-)

    Hopefuly this will resolve my problems..i also removed html_header.php do you think that file was needed for the operation of my site ?

    Thanks,
    Nic
    Yes, take DrByte's advice and download zencart again

  7. #7
    Join Date
    Sep 2008
    Posts
    21
    Plugin Contributions
    0

    Default Re: I deleted this file : tpl_header.php ,where can i get another one?

    Sorry i made a TYPO ,its actually :

    www.THEancientartgallery.com

    Thanks,
    Nic

  8. #8
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default Re: I deleted this file : tpl_header.php ,where can i get another one?

    Quote Originally Posted by taag View Post
    Thanks alot for your quick reply ;-)

    Hopefuly this will resolve my problems..i also removed html_header.php do you think that file was needed for the operation of my site ?

    Thanks,
    Nic
    errmm ... does it work without it?

  9. #9
    Join Date
    Sep 2008
    Posts
    21
    Plugin Contributions
    0

    Default Re: I deleted this file : tpl_header.php ,where can i get another one?

    My site actually seems to work without any problesm however i still have the Zencart logo in the top left corner and the sales message.

    BTW- i deleted this file

    includes/languages/ENGLISH/header.php

    and the sales message si still showing,how could that be ?

    Nic

  10. #10
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: I deleted this file : tpl_header.php ,where can i get another one?

    Quote Originally Posted by taag View Post
    My site actually seems to work without any problesm however i still have the Zencart logo in the top left corner and the sales message.

    BTW- i deleted this file

    includes/languages/ENGLISH/header.php

    and the sales message si still showing,how could that be ?

    Nic
    Suggest you do not delete zencart files..your site is in its early
    stages..what works now after file deletion may not further
    down the zencart road

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. now in your cart in another language (tpl_header.php)
    By cinziapdl in forum Addon Language Packs
    Replies: 12
    Last Post: 10 Feb 2012, 12:31 AM
  2. I cant get the php include statement to work in the tpl_header file.
    By buxton1 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Oct 2009, 12:16 AM
  3. tpl_header.php Really messed this one up
    By Shavelieva in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Nov 2007, 01:12 PM
  4. From one host to another..I can't get it!
    By Theresa in forum Basic Configuration
    Replies: 0
    Last Post: 13 Apr 2007, 02:44 AM
  5. Where can I get a 1.3.5 .zip file?
    By Edgar in forum General Questions
    Replies: 1
    Last Post: 24 Dec 2006, 08:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg