Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Aug 2006
    Posts
    100
    Plugin Contributions
    0

    Default Remove "Home & "Log In"? Screenshot attached...

    Hi,

    I wish to have the "home" and "log in" on the header to be remove and how do i go and do this? I have peek into the tpl_header.php and have no clue.

    If need, Here the tpl_heder.php code.

    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) {
    ?>
    
    	<?php
          if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
            if ($banner->RecordCount() > 0) {
        ?>
        
       		<div id="bannerOne"><?php echo zen_display_banner('static', $banner); ?></div>
        <?php
            }
          }
        ?>
        
        
        
        <div class="header-cart">
            <strong><?php echo BOX_HEADING_SHOPPING_CART;?></strong><br />
            <div class="spacer"><?php echo zen_draw_separator($image = 'pixel_trans.gif', '1', '1');?></div>
            <?php 
                if ($_SESSION['cart']->count_contents() == 1) {
                    $items = $_SESSION['cart']->count_contents() . ' item';
                } else {
                    $items = $_SESSION['cart']->count_contents() . ' items';
                }
            
            ?>
    
            now in your cart <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL');?>"><?php echo $items;?></a>
        </div>
        
        <div class="header-languages">
        	<?php # LANGUAGE START ?>
                <?php 
                if (!isset($lng) || (isset($lng) && !is_object($lng))) {
                    $lng = new language;
                  }
                
                  reset($lng->catalog_languages);
                
                  while (list($key, $value) = each($lng->catalog_languages)) {
                    echo '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . zen_image(DIR_WS_LANGUAGES.$value['directory'].'/images/'.$value['image'], $value['name'], '', '', ' style="vertical-align:middle;"') . '</a>';
                }
                ?>
            <?php # LANGUAGE END ?>
        </div>
        
        <div class="clear"></div>
        
        <div class="logo">
            <div class="spacer"><a href="<?php echo zen_href_link(FILENAME_DEFAULT);?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logo.jpg'); ?></a></div>
        </div>
        
        <div class="links">
        	<ul>
    		<?php #HEADER LINKS START ?>
                    
                    <li><a href="<?php echo 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 } ?>
                        
            <?php #HEADER LINKS END ?>
            </ul>
        </div>
    
    	<div class="clear"></div>
        
            
        <div class="spacer"><?php echo zen_draw_separator($image = 'pixel_trans.gif', '1', '27');?></div> 
        
    
        <div class="menu">
    		<?php #HEADER START ?>
                <?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 } ?>
                <?php #HEADER END ?>
            <div class="clear"></div>
        </div>
    	
        
        <div class="currencies">
    		<?php #HEADER CURRENCIES START ?>							
                <?php echo zen_draw_form('currencies', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get')?>
                
                <?php echo BOX_HEADING_CURRENCIES;?>: &nbsp;
                
                <?
                    if (isset($currencies) && is_object($currencies)) {
                
                      reset($currencies->currencies);
                      $currencies_array = array();
                      while (list($key, $value) = each($currencies->currencies)) {
                        $currencies_array[] = array('id' => $key, 'text' => $value['title']);
                      }
                
                      $hidden_get_variables = '';
                      reset($_GET);
                      while (list($key, $value) = each($_GET)) {
                        if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
                          $hidden_get_variables .= zen_draw_hidden_field($key, $value);
                        }
                      }
                    }
                ?>
                <?php echo zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'class="select" onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id()?></form>
            <?php #HEADER CURRENCIES END ?>
        </div>
        
        
        <div class="search">
    		<?php
              	echo zen_draw_form('quick_find', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
            
              	echo zen_draw_input_field('keyword', '', 'size="18" maxlength="100" class="input"') . '' . zen_image_submit ('search.gif',HEADER_SEARCH_BUTTON);
            
              	$content .= "</form>";
            ?>
    	</div>
        
        <div class="clear"></div>
        
    
    	
        
         
        <div class="spacer"><?php echo zen_draw_separator($image = 'pixel_trans.gif', '1', '2');?></div> 
            
            
            
                            
    	<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    
    
    		<?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 }}?>
    
    
    	<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
           
           
           
    
        
    	
    	<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    
           
           
                    
        
    <?php } ?>
    Any help would be much appreciated!

    Thanks!
    Attached Images Attached Images  

 

 

Similar Threads

  1. v139h Cannot "add to cart", "sign up", or "log in". Returns to home.
    By Damn Kitten in forum General Questions
    Replies: 3
    Last Post: 12 Aug 2013, 03:11 AM
  2. How to remove ellipses ("...") after "All Products" and "New Products" on home page?
    By jthurman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 May 2010, 03:30 PM
  3. Remove "Log in" and "Checkout"? Screenshot attached...
    By nicecarvings in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 2 Dec 2008, 09:41 PM
  4. Lost my "Home" and "Log In" on the navbar
    By teamfaith in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 27 Apr 2007, 11:34 PM
  5. removing the top "home" & "log in" links
    By tarynhipp in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 20 Jan 2007, 05:49 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