Guest Posted October 19, 2006 Posted October 19, 2006 I notice on some cool templates they have just a basic text box for search with a go button or graphic beside it. How do i accomplish this? I dont want the advanced search line and the table box around it. Here is my webpage. My Webpage
steve_s Posted October 19, 2006 Posted October 19, 2006 you will find the file to alter in catalog/includes/boxes/search.php simply look for the text and remove it
squalid Posted October 19, 2006 Posted October 19, 2006 have a look at this contribution - there are others as well http://www.oscommerce.com/community/contri...arch+box+header
Guest Posted October 19, 2006 Posted October 19, 2006 you will find the file to alter in catalog/includes/boxes/search.php simply look for the text and remove it Yes this will get rid of the text i am sure, but the header text is not located in there as i recall and how do i remove the table border and header for it? Thanks. Matt
Guest Posted October 19, 2006 Posted October 19, 2006 have a look at this contribution - there are others as well http://www.oscommerce.com/community/contri...arch+box+header Thanks, i will check this out and let you know if i have any further issues. Cheers Matt
Guest Posted October 20, 2006 Posted October 20, 2006 Use the following code: <table border="0" width="100%" cellspacing="0" cellpadding="0"><?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'); ?><tr><td align="center"><font color="#FFFFFF">Search by Keyword</font></td></tr><?php echo '<tr><td>' . tep_draw_input_field('keywords', 'osCommerce', 'size="10" maxlength="30" style="text-align: Center; width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH, 'align="absmiddle"') . '</td></tr><tr><td align="center"><a class="advsearch" href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a></td></tr></form></table>' ?>
Guest Posted October 20, 2006 Posted October 20, 2006 Use the following code: <table border="0" width="100%" cellspacing="0" cellpadding="0"><?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'); ?><tr><td align="center"><font color="#FFFFFF">Search by Keyword</font></td></tr><?php echo '<tr><td>' . tep_draw_input_field('keywords', 'osCommerce', 'size="10" maxlength="30" style="text-align: Center; width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH, 'align="absmiddle"') . '</td></tr><tr><td align="center"><a class="advsearch" href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a></td></tr></form></table>' ?> Where do i put this code? In search.php i assume. What do i replace this with? Di replace everything in search.php with this? Thanks Matt
Recommended Posts
Archived
This topic is now archived and is closed to further replies.