kmazumdar Posted November 12, 2003 Share Posted November 12, 2003 (edited) Contribution : http://www.oscommerce.com/community/contributions,1266 Problem : We are using MS2.2 and in catalog/advanced_search_result.php file I do not find the following FIND: $breadcrumb->add(NAVBAR_TITLE1, tep_href_link(FILENAME_ADVANCED_SEARCH)); $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, tep_get_all_get_params(), 'NONSSL', true, false));?> ABOVE ADD: // Search enhancement mod start $search_enhancements_keywords = $_GET['keywords']; $search_enhancements_keywords = strip_tags($search_enhancements_keywords); $search_enhancements_keywords = addslashes($search_enhancements_keywords); if ($search_enhancements_keywords != $last_search_insert) { tep_db_query("insert into search_queries (search_text) values ('" . $search_enhancements_keywords . "')"); tep_session_register('last_search_insert'); $last_search_insert = $search_enhancements_keywords; } // Search enhancement mod end Any help on this will be highly appreciatef. Thanks Kmazumdar Edited November 12, 2003 by kmazumdar Quote Link to comment Share on other sites More sharing options...
Guest Posted November 12, 2003 Share Posted November 12, 2003 well the block of text you need to add for that contrib looks different on mine.... double check..... but i added my block under this line near the top: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVANCED_SEARCH_RESULT); Quote Link to comment Share on other sites More sharing options...
jpf Posted November 12, 2003 Share Posted November 12, 2003 Look around line 127 for that line - Add the code on line 126 Quote Link to comment Share on other sites More sharing options...
Guest Posted November 12, 2003 Share Posted November 12, 2003 it doesn't matter a great deal where you put it, just make sure it's in the first PHP block on the page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.