Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2006
    Posts
    47
    Plugin Contributions
    0

    Default search box position FF/IE

    I have moved the position of the login/myaccount/etc and the search box into a black bar under my logo.

    Code:
    <tr>
        <td align="right" valign="bottom"><a href="index.php"><img src="../images/home.jpg" width="142" height="44" alt="home" /></a><a href="http://skribblzart.com/shoponline/index.php?main_page=page&id=5"><img src="../images/gallery.jpg" width="142" height="44" alt="gallery" /></a><a href="http://skribblzart.##########################/" target="_blank"><img src="../images/blog.jpg" width="142" height="44" alt="blog" /></a></td>
      </tr>
      <tr>
        <td bgcolor="#000000" class="blackbar"></td>
        <td bgcolor="#000000" class="blackbar" align="right"><p>
        
        <?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a>&nbsp;&nbsp;
    <?php if ($_SESSION['customer_id']) { ?>
        <a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>&nbsp;&nbsp;
        <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>&nbsp;&nbsp;
    <?php
          } else {
            if (STORE_STATUS == '0') {
    ?>
        <a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <?php } } ?>&nbsp;&nbsp;
    
    <?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; ?></a>
    <?php }?>&nbsp;&nbsp;<?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
        </p>
             </td>
      </tr>
    In IE, the search is in the position I want, to the right of the Login. But in Firefox, it is bumped underneath. Any ideas as to why?

    Also - possibly related, possibly not. When I turn on my search_header sidebox I also get a search box in the left sidebox (under the categories). When I turn off the search_header sidebox the left one goes away too. The other search sidebox is turned off.

    store link:
    http://skribblzart.com/shoponline/

    thanks in advance.

  2. #2
    Join Date
    Dec 2006
    Posts
    47
    Plugin Contributions
    0

    Default Re: search box position FF/IE

    that code block is in my tpl_header.php file.

  3. #3
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: search box position FF/IE

    Try removing the P tags from your code that I highlighted...


    <td bgcolor="#000000" class="blackbar" align="right"><p>

    <?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a>&nbsp;&nbsp;
    <?php if ($_SESSION['customer_id']) { ?>
    <a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>&nbsp;&nbsp;
    <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>&nbsp;&nbsp;
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <?php } } ?>&nbsp;&nbsp;

    <?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; ?></a>
    <?php }?>&nbsp;&nbsp;<?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
    </p>
    ~Steve~

  4. #4
    Join Date
    Dec 2006
    Posts
    47
    Plugin Contributions
    0

    Default Re: search box position FF/IE

    ah! it worked! (but I am curious why??)

    Now any clue on the appearance of the sidebar search box?? I actually dont mind it there...other than I know its not supposed to be there!

  5. #5
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: search box position FF/IE

    Firefox is inserting its own closing /P tag when it sees the Form tag..
    ~Steve~

  6. #6
    Join Date
    Dec 2006
    Posts
    47
    Plugin Contributions
    0

    Default Re: search box position FF/IE

    Quote Originally Posted by s_t_e_v_e View Post
    Firefox is inserting its own closing /P tag when it sees the Form tag..
    oh, ok. Thanks!

  7. #7
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: search box position FF/IE

    In the code above, you have the line;
    <?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>

    that is for the seach form that you see...
    ~Steve~

  8. #8
    Join Date
    Dec 2006
    Posts
    47
    Plugin Contributions
    0

    Default Re: search box position FF/IE

    Quote Originally Posted by s_t_e_v_e View Post
    In the code above, you have the line;
    <?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>

    that is for the seach form that you see...
    For the one in the header, right? Thats fine. But why does it also show up in the sidebar?

  9. #9
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: search box position FF/IE

    oops.. Yeah, that line was for the header... I would first check the templates for the categories sidebox and the blank sidebox, to see if either of those are inserting the search form...
    ~Steve~

 

 

Similar Threads

  1. dunno what i did here. search box position needs to move.
    By ICwater in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 4 Dec 2012, 06:45 PM
  2. Change the position of the search box
    By sandesh35 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Oct 2010, 10:34 PM
  3. Trying to change the position of search box
    By sobeman in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Feb 2010, 06:40 PM
  4. center position of review box and bestseller box.
    By littlehawk in forum Basic Configuration
    Replies: 4
    Last Post: 26 Feb 2009, 02:07 AM
  5. Position of the Search Header
    By cfe in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Aug 2006, 06:45 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR