Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Login Header issue

    Hi,

    I have added the Login to the header link

    and it isnt where I want it to be. I would like it to sit neatly under the logo wrapper and have a grey strip (like the top) running all the way along. Its currently pushing the categories down and under other text.

    How would I do this??

    Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Login Header issue

    What file have you inserted the code into??

    Move it to a copy of your template's tpl_header.php file and give it a div within the headerWrapper div

    Your code in some file but appearing after the navOne div
    Code:
    <div id="navColumnOneWrapper" style="width: 150px"><form name="account_box" action="http://www.ampmgraphics.com/demo/index.php?main_page=login&amp;action=process&amp;zenid=9qvf07voeefnqt6rj8nkf3e8v4" method="post"><div align="right">
    <table border="0" cellspacing="0" cellpadding="0">
    <tr> 
    <td align="right" valign="middle" class="boxText">Email:</td>
    <td align="right" valign="middle" class="boxText"><input type="text" name="email_address" size="10" /></td>
    <td align="right" valign="middle" class="boxText">Password:</td>
    
    <td align="right" valign="middle" class="boxText"><input type="password" name="password" size="10" /></td>
    <td align="right" valign="center" class="boxText">&nbsp;<input type="submit" value="Log In" style="width:40px" /></td>
    <td> <a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=password_forgotten&amp;zenid=9qvf07voeefnqt6rj8nkf3e8v4">Forgotten Password</a>&nbsp; &nbsp;<a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=login&amp;zenid=9qvf07voeefnqt6rj8nkf3e8v4">Create Account</a><input type="hidden" name="securityToken" value="c1e83ac527f2606bbf80ac3151e6a077" /></td></tr>
    </table></form>

  3. #3
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Login Header issue

    Hi,

    sorry I'm a bit lost

    This is the code in my tpl_header file.

    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 3392 2006-04-08 15:17:37Z birdbrain $
     */
    ?>
    
    <?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 }?>
    
    	<li> <a href="http://www.ampmgraphics.com/affordable-graphic-design.html">About us   <span style="color: #666666">|</span> </a></li>
    		<li> <a href="http://www.ampmgraphics.com/portfolio.html">Portfolio   <span style="color: #666666">|</span> </a></li>
    			<li> <a href="http://www.ampmgraphics.com/testimonials.html">Testimonials   <span style="color: #666666">|</span> </a></li>
    				<li> <a href="http://www.ampmgraphics.com/contact-us.html">Contact us   </a></li>
    
    </ul>
    </div>
    <div class="navMainSearch forward"><?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>
        <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>
    </div>
    
    <!--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 } ?>
    This is the code from the file for the login box (tpl_header 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 3192 2006-03-15 22:37:24Z wilt $
     */
    // Display all header alerts via messageStack:
    if ($messageStack->size('header') > 0) {
      echo $messageStack->output('header');
    }
    ?>
        <table class="centershop" border="0" cellspacing="0" cellpadding="0">
    <?php
    if (!isset($flag_disable_header) || $flag_disable_header == false) {
    ?>
          <tr><td>
            <table border="0" width="100%" cellspacing="0" cellpadding="0" class="header">
              <tr><!-- All HEADER_ definitions in the columns below are defined in includes/languages/english.php //-->
                <td valign="middle" height="<?php echo HEADER_LOGO_HEIGHT; ?>" width="<?php echo HEADER_LOGO_WIDTH; ?>">
    <?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?>
                </td>
                
    <td align="center" valign="top"><br />
    <?php
                  if (HEADER_SALES_TEXT != '') {
                    echo HEADER_SALES_TEXT;
                  }
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                    if ($banner->RecordCount() > 0) {
                      echo zen_display_banner('static', $banner);
                    }
                  }
    ?>
                </td>
              </tr>
            </table>
    		
    		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="headerNavigation">
              <tr>
                <td align="left" valign="top" class="headerNavigation">
                  <a href="<?php echo zen_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>&nbsp;|&nbsp;
    <?php if (isset($_SESSION['customer_id'])) { ?>
    <?php
          } else {
            if (STORE_STATUS == '0') {
    ?>
                  <a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"></a>
    <?php } } ?>            </td>
                <td align="left" class="headerNavigation"><?php require(DIR_WS_MODULES . 'sideboxes/' . 'login_header.php'); ?></td>
                <td align="right" valign="top" class="headerNavigation">
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
                  <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>&nbsp;|&nbsp;<a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?>&raquo;</a>
    <?php }?>            </td>
              </tr>
            </table>
    		
    		
    <?php
      if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    ?>
            <table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr class="headerError">
                <td class="headerError"><?php echo htmlspecialchars(urldecode($_GET['error_message'])); ?></td>
              </tr>
            </table>
    		
    <?php
      }
      if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    ?>
            <table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr class="headerInfo">
                <td class="headerInfo"><?php echo htmlspecialchars($_GET['info_message']); ?></td>
              </tr>
            </table>
    		
    <?php
      }
    ?>
    <?php
    } else {
    ?>
        <tr><td>
    <?php
    }
    ?>
    <!--bof-optional categories tabs navigation display-->
    <?php
    if (CATEGORIES_TABS_STATUS == '1') {
      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-->
    I can't see which bit I need to add where

    Tried a few things but it messed it up more..so I've put it back to how it was which is still not right...

    Can anyone let me know which bit of code I need to add into the uploaded header?

    Thanks

  4. #4
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Login Header issue

    hmm have I missed off an important bit of info to help work this out??

    Still not sorted this issue

    Any ideas?

 

 

Similar Threads

  1. Want the Login link in header to take customer to Secure Login page
    By mom2da3ks in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Feb 2011, 04:50 PM
  2. Login Issue
    By characterdriven in forum General Questions
    Replies: 4
    Last Post: 16 Jul 2007, 03:43 AM
  3. Login Issue
    By Syn in forum General Questions
    Replies: 7
    Last Post: 8 Jun 2007, 11:39 PM
  4. Login Issue
    By wittusen in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Nov 2006, 08:17 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