Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2010
    Posts
    9
    Plugin Contributions
    0

    Default Please Help - Cannot find code

    Hi, i have been trying to find the code to change the damn search box input length for ages now and cannot.

    The pic below shows the code, its just the 160px length needs to be changed to 140px but i cannot find where the code is, even with firebug.
    As you can see the search box overlaps the side box and looks a mess

    Its not in the CSS as far as i can see.

    I am using a free Mistik template by the way, thanks

    PS please be gentle, im no expert



  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Please Help - Cannot find code

    Unless your template designer has done something wacky, that width is calculated in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_search.php. Find this:

    if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
    $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-100) . '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-100) . '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" />';

    That width is calculated by subtracting 100px from the sidebox column width. If you make the '100' larger, the box should be smaller.

  3. #3
    Join Date
    Sep 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: Please Help - Cannot find code

    Quote Originally Posted by stevesh View Post
    Unless your template designer has done something wacky, that width is calculated in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_search.php. Find this:

    if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
    $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-100) . '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-100) . '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" />';

    That width is calculated by subtracting 100px from the sidebox column width. If you make the '100' larger, the box should be smaller.

    Wow that's why I couldn't find it, didn't realise it was a subtracted figure, the setting was on 30 so I've changed it to 60 and its worked a treat, thank you very much

 

 

Similar Threads

  1. Replies: 8
    Last Post: 17 Oct 2015, 01:13 AM
  2. v151 need help to find a little bit of code.
    By Nixe in forum General Questions
    Replies: 2
    Last Post: 19 Mar 2013, 01:58 PM
  3. Cannot find the Currencies drop down php code.
    By discoduck in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 8 Jan 2008, 12:32 PM
  4. HELP !! Tow issues I cannot find answers for !!
    By mccosha in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Nov 2007, 10:45 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