Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Modifying Search Box Text


varnco

Recommended Posts

I am trying to remove the text under the standard search box. I found the location of the text in a php module, but when I remove it, some other "default" text is entered instead. I am trying to get the search box much smaller, so it's just a header, text input box and the search graphic.

 

I tried commenting out the whole line, but then I get an error.

 

I've searched this forum, and I can't find anything on this subject. I get a bunch of search results that aren't relevant.

 

Thanks in advance for the help. :cry:

Link to comment
Share on other sites

Do it like this - english.php (or whatever language you use):

 

define('BOX_SEARCH_TEXT', ' ');

 

You must leave the empty quotes or you will get an error... if you comment the line entirely you will have 'BOX_SEARCH_TEXT' displayed...

Link to comment
Share on other sites

Thanks for the help, but my goal was to get rid of the text and the space it was taking up, so the search box as a whole became much smaller, down about 2 lines versus the current 5.

 

I'll keep trying.

 

Thanks again.

Link to comment
Share on other sites

catalog/includes/boxes/search.php:

 

<?php

/*

 $Id: search.php,v 1.22 2003/02/10 22:31:05 hpdl Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/

?>

<!-- search //-->

         <tr>

           <td>

<?php

 $info_box_contents = array();

 $info_box_contents[] = array('text' => BOX_HEADING_SEARCH);



 new infoBoxHeading($info_box_contents, false, false);



 $info_box_contents = array();

 $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),

                              'align' => 'center',

                              'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>');



 new infoBox($info_box_contents);

?>

           </td>

         </tr>

<!-- search_eof //-->

 

 

But you have lost the advanced search link.... :shock:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...