Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Posts
    26
    Plugin Contributions
    0

    Default Moving search header

    How does one go about placing the header search inside a predesigned header?

    Thanks!

    Fogie

  2. #2
    Join Date
    Mar 2005
    Posts
    561
    Plugin Contributions
    4

    Default Re: Moving search header

    You cut and paste the code in the right place.
    Sorry about the vague answer but the question is a bit vague too, maybe you can paste your header file to make it easier.

  3. #3
    Join Date
    May 2006
    Posts
    26
    Plugin Contributions
    0

    Default Re: Moving search header

    Sorry... I was a bit tired when I posted the question...

    What I want to do is put the search box with my own graphic into a header that I had already made. At http://bikerbatteries.com/catalog/ I want the search header to appear in the blue space at the lower right corner of the header.

    I'm sure that I am overlooking the obvious but I have tried cutting and pasting in so many different ways that my cyber scissors have grown dull.

    Thanks!

    Fogie

  4. #4
    Join Date
    Mar 2005
    Posts
    561
    Plugin Contributions
    4

    Default Re: Moving search header

    Fogie, you need to cut and paste the header in this forum or attach it because no one can see what your php code is like from looking at the site alone.

  5. #5
    Join Date
    May 2006
    Posts
    26
    Plugin Contributions
    0

    Default Re: Moving search header

    Actually, I guess that is the question itself... what php code do I use for the search? There is none in there right now. My entire header.php file is:

    PHP Code:
    <?php

    /**

     * @package languageDefines

     * @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: header.php 2940 2006-02-02 04:29:05Z drbyte $

     */



    // header text in includes/header.php

      
    define('HEADER_TITLE_CREATE_ACCOUNT''Create Account');

      
    define('HEADER_TITLE_MY_ACCOUNT''My Account');

      
    define('HEADER_TITLE_CART_CONTENTS''Shopping Cart');

      
    define('HEADER_TITLE_CHECKOUT''Checkout');

      
    define('HEADER_TITLE_TOP''Top');

      
    define('HEADER_TITLE_CATALOG''Home');

      
    define('HEADER_TITLE_LOGOFF''Log Out');

      
    define('HEADER_TITLE_LOGIN''Log In');



    // added defines for header alt and text

      
    define('HEADER_ALT_TEXT''');

      
    define('HEADER_SALES_TEXT''<TABLE WIDTH=776 BORDER=0 CELLPADDING=0 CELLSPACING=0>
      <TR> 
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=67 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=54 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=72 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=72 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=72 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=72 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=3 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=68 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=31 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=41 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=29 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=43 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=72 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=28 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=23 HEIGHT=1 ALT=""></TD>
        <TD> <IMG SRC="/nf_header_images/spacer.gif" WIDTH=29 HEIGHT=1 ALT=""></TD>
      </TR>
      <TR> 
        <TD COLSPAN=7> <IMG SRC="/nf_header_images/t1.jpg" WIDTH=412 HEIGHT=50 ALT=""></TD>
        <TD> <A HREF="/faq.htm"> <IMG SRC="/nf_header_images/r1.gif" WIDTH=68 HEIGHT=50 BORDER=0 ALT=""></A></TD>
        <TD COLSPAN=2> <A HREF="/privacy.htm"> <IMG SRC="/nf_header_images/r2.gif" WIDTH=72 HEIGHT=50 BORDER=0 ALT=""></A></TD>
        <TD COLSPAN=2> <A HREF="/contact.htm"> <IMG SRC="/nf_header_images/r3.gif" WIDTH=72 HEIGHT=50 BORDER=0 ALT=""></A></TD>
        <TD> <A HREF="#"> <IMG SRC="/nf_header_images/r4.gif" WIDTH=72 HEIGHT=50 BORDER=0 ALT=""></A></TD>
        <TD COLSPAN=2> <A HREF="/help.htm"> <IMG SRC="/nf_header_images/r5.gif" WIDTH=51 HEIGHT=50 BORDER=0 ALT=""></A></TD>
        <TD> <IMG SRC="/nf_header_images/t2.jpg" WIDTH=29 HEIGHT=50 ALT=""></TD>
      </TR>
      <TR> 
        <TD COLSPAN=16> <IMG SRC="/nf_header_images/big_t.jpg" WIDTH=776 HEIGHT=164 ALT=""></TD>
      </TR>
      <TR> 
        <TD ROWSPAN=2> <IMG SRC="/nf_header_images/t3.gif" WIDTH=67 HEIGHT=46 ALT=""></TD>
        <TD ROWSPAN=2> <A HREF="/index.html"> <IMG SRC="/nf_header_images/m1.gif" WIDTH=54 HEIGHT=46 BORDER=0 ALT=""></A></TD>
        <TD ROWSPAN=2> <A HREF="/about.htm"> <IMG SRC="/nf_header_images/m2.gif" WIDTH=72 HEIGHT=46 BORDER=0 ALT=""></A></TD>
        <TD ROWSPAN=2> <A HREF="/products.htm"> <IMG SRC="/nf_header_images/m3.gif" WIDTH=72 HEIGHT=46 BORDER=0 ALT=""></A></TD>
        <TD ROWSPAN=2> <A HREF="/shipping.htm"> <IMG SRC="/nf_header_images/m4.gif" WIDTH=72 HEIGHT=46 BORDER=0 ALT=""></A></TD>
        <TD ROWSPAN=2> <A HREF="/returns.htm"> <IMG SRC="/nf_header_images/m5.gif" WIDTH=72 HEIGHT=46 BORDER=0 ALT=""></A></TD>
        <TD COLSPAN=3 ROWSPAN=2> <a href="/catalog/index.php"><IMG SRC="/nf_header_images/m6.gif" WIDTH=102 HEIGHT=46 BORDER=0 ALT=""></a></TD>
        <TD COLSPAN=2> <IMG SRC="/nf_header_images/serch.gif" WIDTH=70 HEIGHT=35 ALT=""></TD>
        [B][COLOR="Red"]<TD COLSPAN=3 background="/nf_header_images/input.gif" WIDTH=143 HEIGHT=35>&nbsp;</TD>[/COLOR][/B]
        [COLOR="Green"][B]<TD COLSPAN=2 background="/nf_header_images/input.gif">&nbsp;</TD>[/B][/COLOR]
      </TR>
      <TR> 
        <TD COLSPAN=7> <IMG SRC="/nf_header_images/t4.gif" WIDTH=265 HEIGHT=11 ALT=""></TD>
      </TR>
    </TABLE>'
    );

      
    define('HEADER_LOGO_WIDTH''0');

      
    define('HEADER_LOGO_HEIGHT''0');

      
    define('HEADER_LOGO_IMAGE''pixel_trans.gif');



    // header Search Button/Box Search Button

      
    define('HEADER_SEARCH_BUTTON','Search');

      
    define('HEADER_SEARCH_DEFAULT_TEXT''Enter search keywords here');



    ?>
    I am wanting to put the search box in the cell marked in red and the button in the cell marked in green.

    Thanks again for helping!

    Fogie

  6. #6
    Join Date
    May 2006
    Posts
    26
    Plugin Contributions
    0

    Default Re: Moving search header

    Oops... wasn't thinking that my "earmarking" colors would not stand out amongst the code... near the bottom of the table are the two cells where I want to put the search... they are marked by the "color" and "bold" tags that the forum interface inserted.

    Fogie

  7. #7
    Join Date
    May 2006
    Posts
    26
    Plugin Contributions
    0

    Default Re: Moving search header

    Essentially, I am trying to get my ZC header to match the site header on the main page at http://bikerbatteries.com but without the flash.

    Which also begs another question that I have had great difficulty understanding despite reading a plethera of forum topics -- can anyone explain IN DETAIL how to put a sidebox on a page outside of ZC? I want to put the search and login functions on the main page mentioned above.

    Thanks again!

    Fogie
    Last edited by Fogie; 27 Jun 2006 at 11:30 AM. Reason: omitted link

 

 

Similar Threads

  1. v139h Moving search button in header search?
    By RescoCCC in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Feb 2013, 11:52 PM
  2. Search box moving outside of header
    By noruga in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 5 May 2009, 09:56 PM
  3. Moving the search box in header
    By audiografix in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Apr 2008, 05:37 PM
  4. Moving Search Box to header
    By cariclaire in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Apr 2007, 01:54 AM

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