Paul W Posted March 4, 2003 Share Posted March 4, 2003 Hi I've had a search but cant find anything. I want to remove the advnaced search from my site as it is not required. Anyone able to help me with this? Many thanks Paul Link to comment Share on other sites More sharing options...
Guest Posted March 4, 2003 Share Posted March 4, 2003 In catalogincludesboxessearch.php remove this - no more, no less (please backup your file): <a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a> Link to comment Share on other sites More sharing options...
Paul W Posted March 4, 2003 Author Share Posted March 4, 2003 Thanks mate. Works a treat. Link to comment Share on other sites More sharing options...
popstar Posted March 5, 2003 Share Posted March 5, 2003 I've added the following code to my header.php, as to replace the search box formerly found on my site <td height="80" align="right" valign="bottom"><font face=Verdana, Geneva, Arial, Helvetica, sans-serif size=1>Search <form name="quick_find" method="get" action="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false);?>"> <input type="text" name="keywords" size="15" maxlength="20" value="<?php echo htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"]));?>"> <?php echo tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH);?></form> </td> So my question is this. Based on the code above, how can I eliminate the advanced search, making the search result act like an advance search with the 'look in the desciption' turned perminently "ON". I have the look in description turned on in the admin, yet a typical search will not yield these results unless an advance search with the box checked is performed. Again, I just want my regular search box to act like this was always the case. Thanks for any help. Ken Good things happen to good people! Link to comment Share on other sites More sharing options...
Guest Posted March 6, 2003 Share Posted March 6, 2003 look in ....I think the tips and tricks forum.... Mattice coded this recently.. its easy to put in the header Link to comment Share on other sites More sharing options...
mattice Posted March 6, 2003 Share Posted March 6, 2003 It's actually in the Contributions section... http://www.oscommerce.com/community/contributions,635 Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
Paul W Posted March 7, 2003 Author Share Posted March 7, 2003 Now i've removed the link for the advnaced search as i wanted, you can still access it though, when you do a quick search and hit the back button on the results page. Basically im just going to remove the back button. Anyone know where the code is for this, and what needs changing? Thanks Link to comment Share on other sites More sharing options...
Guest Posted March 14, 2003 Share Posted March 14, 2003 I've added the following code to my header.php, as to replace the search box formerly found on my site <td height="80" align="right" valign="bottom"><font face=Verdana, Geneva, Arial, Helvetica, sans-serif size=1>Search <form name="quick_find" method="get" action="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false);?>"> <input type="text" name="keywords" size="15" maxlength="20" value="<?php echo htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"]));?>"> <?php echo tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH);?></form> </td> try this: <tr> <td height="80" align="right" valign="bottom"> <font face=Verdana, Geneva, Arial, Helvetica, sans-serif size=1>Suche <form name="search_in_description" method="get" action="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false);?>"> <input type="hidden" name="search_in_description" value="1"><input type="text" name="keywords" size="15" maxlength="20" value="<?php echo htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"]));?>"> <?php echo tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH);?></form> </td> </tr> So my question is this. Based on the code above, how can I eliminate the advanced search, making the search result act like an advance search with the 'look in the desciption' turned perminently "ON". I have the look in description turned on in the admin, yet a typical search will not yield these results unless an advance search with the box checked is performed. Again, I just want my regular search box to act like this was always the case. Thanks for any help. Ken Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.