Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32
  1. #1
    Join Date
    Jan 2008
    Posts
    89
    Plugin Contributions
    0

    Default Search Button image

    Hello,

    My search button image isn't showing, instead it is just a grey button.

    I followed the instruction to change the button image from other forum threads.. but no success.

    can anyone tell me what i am doing wrong PLEASE!!!


    my site is www.thepurseworld.com

    Thanks!

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

    Default Re: Search Button image

    I see a "Go" button you must have sorted this

  3. #3
    Join Date
    Jan 2008
    Posts
    89
    Plugin Contributions
    0

    Default Re: Search Button image

    no.. it is not the image i want.. this is just changing the text from "search" to "go"

    the button i want is a brown button that says go.

    I appreciate any help on this matter

    thanks

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

    Default Re: Search Button image

    find the current image in your template/buttons/english
    Reame your image to this same name and replace

  5. #5
    Join Date
    Jan 2008
    Posts
    89
    Plugin Contributions
    0

    Default Re: Search Button image

    I have done that, but it still shows the same button..

    please any advise?

  6. #6
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    78
    Plugin Contributions
    0

    Default Re: Search Button image

    mthem2003 will try to help you out here as i am/was trying to do something similar.

    What instructions did you follow, these?

  7. #7
    Join Date
    Mar 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Search Button image

    I'm using iC_AthemeV1.3 template. in this file....
    includes/templates/iC_AthemeV1.3/sideboxes/tpl_search_header.php
    i changed input type ="image"......

    ......<input type="image" src="http://yoursite.com/images/search_button.gif"
    value="" height="26" type="image" width="35">.......

    well, i don't know if this is the right way to do it or not, but it works for me.

  8. #8
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    78
    Plugin Contributions
    0

    help question Re: Search Button image

    vinnie,

    if you could supply the entire code for that page i'd be mucho grateful.

  9. #9
    Join Date
    Mar 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Search Button image

    I changed from input type = "submit" to input type= "image" .The part of codes between space. i also put the text box and the button into a table. So it can look in a straight line. is this the right way to do it ? not sure , but it works !


    Code:
     */
      $content = " ";
      $content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
      $content .= zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
      $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();
      
      if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
        $content .= '<div id="navMainSearch">' . zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 150px" 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) . '</div>';
     
    } else {
        // $content .= '<div id="navMainSearch" id="GO">' . zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 150px" 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;&nbsp;'.zen_draw_pull_down_menu('categories_id', zen_get_categories(array(array('id' => '', 'text' => All)), '0','', '1' ), $sData['categories_id']). '&nbsp;<input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 45px" /></div>';
        $content .= '<div id="navMainSearch">'.
      '<table style="text-align: left; width: 410px;" border="0" cellpadding="0" cellspacing="0">
        <tbody>
           <tr>
          '.'<td>'. zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 150px" 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;&nbsp;'.zen_draw_pull_down_menu('categories_id', zen_get_categories(array(array('id' => '', 'text' => All)), '0','', '1' ), $sData['categories_id']).'</td>'.'<td>'. 
    
    
    
    
    
    
    
    
    '&nbsp;   <input type="image" src="http://yoursite.com/images/icons/search_button.gif" value="" height="26" type="image" width="35">'
    
    
    
    
    
    
    
    
    .'</td>'.'</tr></tbody></table>'.'</div>';
        
       }
       
     // $content .= zen_draw_pull_down_menu('categories_id', zen_get_categories(array(array('id' => '', 'text' => All)), '0','', '1' ), $sData['categories_id']);
     
    
      $content .= "</form>";
      
    ?>

  10. #10
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: Search Button image

    Yes just change
    input type = "submit"
    to
    input type= "image" src="http://www.klmoda.com.au/search_button.jpg"

    and
    value="' . HEADER_SEARCH_BUTTON . '"
    to
    value=""

    \includes\templates\template_default\sideboxes\tpl_search_header.php
    v.1.3.8 standard code
    comes out like http://www.klmoda.com.au/index.php



    PHP Code:
    <?php
    /**
     * Side Box Template
     *
     * @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_search_header.php 4142 2006-08-15 04:32:54Z drbyte $
     */
      
    $content "";
      
    $content .= zen_draw_form('quick_find_header'zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT'''NONSSL'false), 'get');
      
    $content .= zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
      
    $content .= zen_draw_hidden_field('search_in_description''1') . zen_hide_session_id();
      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="image" src="http://www.klmoda.com.au/search_button.jpg" value="" />';
      }
      
      
    $content .= "</form>";
    ?>

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. v151 Changing the Search button image
    By ray-the-otter in forum General Questions
    Replies: 1
    Last Post: 6 Nov 2012, 07:38 PM
  2. custom search button image
    By keneso in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 21 Jan 2011, 02:28 AM
  3. Search button to an image
    By trudesign in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 2 Sep 2008, 07:20 AM
  4. Changing Search Button to an image
    By MCanes in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Oct 2007, 04:44 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