Forums / General Questions / I deleted this file : tpl_header.php ,where can i get another one?

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

Locked

Views: 2,506

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
22 Sep 2008, 9:31 PM
#1
taag avatar

taag

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

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.:no:

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...:wacko:

Thank alot
Nic

22 Sep 2008, 9:34 PM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

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

FOR ZENCART 1.3.8.a.

<?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 [URL]http://www.zen-cart.com/license/2_0.txt[/URL] 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 } ?>

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

22 Sep 2008, 9:37 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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/index.php?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.

22 Sep 2008, 9:52 PM
#4
taag avatar

taag

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

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

22 Sep 2008, 9:56 PM
#5
taag avatar

taag

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

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 :

https://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

22 Sep 2008, 9:57 PM
#6
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

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

taag:

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

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

22 Sep 2008, 9:57 PM
#7
taag avatar

taag

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

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

Sorry i made a TYPO ,its actually :

https://www.THEancientartgallery.com

Thanks,
Nic

22 Sep 2008, 10:02 PM
#8
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

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

taag:

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?
:blink:

22 Sep 2008, 10:04 PM
#9
taag avatar

taag

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

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

22 Sep 2008, 10:07 PM
#10
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

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

taag:

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
:wink:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

22 Sep 2008, 10:31 PM
#11
taag avatar

taag

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

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

Thanks for the advise,i actually had a copy of that file so i reinstated it.

If ever you know how i can remove the logo and text please let mw know or redirect me to the appropriate forum.

Best,
Nic

22 Sep 2008, 10:42 PM
#13
taag avatar

taag

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

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

Ok,i managed to remove the log now,all i need is to get that Sales message off.....

I deleted header.php ,i think i need that file back so i can remove the ales message...i assumed that deleting the file would get rid of the message but to no avail...

P.S.: MISTY,when someone buys one of your templates ,is it easy to install...i mean does it keep your configuration settings and products or do you have to start over ?

Regards,
Nic

23 Sep 2008, 4:27 AM
#14
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

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

P.S.: MISTY,when someone buys one of your templates ,is it easy to install...i mean does it keep your configuration settings and products or do you have to start over ?
Response in answer to your PM

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others