Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

    Default Header Search Issue.

    I'd like to achieve the following search bar layout. You'll notice it's centered in the logo banner area.

    [SCR]http://img819.imageshack.us/img819/1624/samplebanner.jpg[/SCR]


    and this is what I currently have
    www.qnecomputing.com.au

    I've been stuck on this for days. Someone please help
    Last edited by Kim; 2 Sep 2010 at 05:12 PM.

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

    Default Re: Header Search Issue.

    Following link - looks like you got it centered
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

    Default Re: Header Search Issue.

    When I maximise the page, the left hand side of the frame behind the search bar goes over the logo.

    [SCR]http://img844.imageshack.us/img844/9123/11111r.jpg[/SCR]

    I didn't create a new class for the search bar, it's the one that's ment to be located in the top right hand corner of the page. Would it be better to create a new class to put the search bar in? If so, how can I achieve this. If not, how can I just fix the positioning problem with the search bar.

    Also, where can I change the size properties of the search bar?
    Last edited by Kim; 2 Sep 2010 at 05:12 PM.

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

    Default Re: Header Search Issue.

    There is a div ID for it that you can add positioning to as css in the stylesheet(add the tag if it does ot exist)

    id=headerSearch which is #headerSearch
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

    Default Re: Header Search Issue.

    This is what I currently have in #headerSearch


    #headerSearch {

    background-color: #B7CEE8;
    text-align: right;
    width: 33%;
    padding-right: 20px;
    position:absolute;
    top: 6em;
    left:30em;
    border:1px solid; #c0c0c0

    }

    When I increase the width, the light blue frame behind the search box increases but not the search box itself...

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

    Default Re: Header Search Issue.

    where can I change the size properties of the search bar?
    In a copy of template_default/sideboxes/tpl_search.php for your template structure overrides
    Find and I am fairly certian that the highlighted values are what you can adjust
    Code:
      if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
        $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px"') . '<br />' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
        $content .= '<br /><a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a>';
      } else {
        $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '<br /><input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 50px" />';
        $content .= '<br /><a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a>';
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

    Default Re: Header Search Issue.

    I tried changing the values in tpl_search.php and nothing happened.

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

    Default Re: Header Search Issue.

    I tried changing the values in tpl_search.php and nothing happened.
    Sorry, wrong file - - discard changes to tpl_search.php and instead get a copy of the file tpl_search_header.php

    Chenge where the value is 100 & highlighted in 2 places


    Code:
      if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
        $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '&nbsp;' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
      } else {
        $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '&nbsp;<input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 45px" />';
      }
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

    Default Re: Header Search Issue.

    Thanks!!

    however I still have a problem with the positioning. I'm trying to make it so as I change the size of the webpage, it'll always stay in the middle of the logo.

    #headerSearch {
    background-color: #050598;
    text-align: center;
    width: 470px;
    padding-right: 1px;
    position: absolute;
    top: 6em;
    left:25%;
    }

    Also, Is it possible to change the height of the search bar? I tried a few things but neither worked

    style="width: 100px" "height: x"
    style="width: 100px, height: x"

    where x = any real integer (px)

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

    Default Re: Header Search Issue.

    Was it you that placed this in a table versus the default div?

    Standard code has this as a div - - #navMainSearch
    Zen-Venom Get Bitten

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v150 padlock on login broken, because of header search and sidebox search. Any fix?
    By zenartman in forum Customization from the Admin
    Replies: 6
    Last Post: 11 Apr 2015, 06:30 AM
  2. 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
  3. search header issue
    By lina0962 in forum Basic Configuration
    Replies: 1
    Last Post: 2 Oct 2010, 10:31 PM
  4. Search Header with Alternative Header v2-0
    By hcd888 in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 25 May 2009, 02:47 PM
  5. Question about search sidebox and search header
    By jenzi in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Sep 2008, 06:47 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