Quote Originally Posted by oregongardener View Post
In an earlier post from a couple years ago, you mentioned that line 145 of tpl_main_page.php could be modified to weed out unwanted search terms.

My line 145 shows:
$keywords = '';
Line 145 in the first version is line 149 in the second.
(The way to figure things like this out is to download the prior version and look at it.)

It's this block:

Code:
   foreach ($key_arr as $key) { 
      if (empty($key)) continue;
      $key = preg_replace($unStrictReplace, '', $key);
      $noquotekey = preg_replace($quoteReplace, '%', $key);
      if (empty($search_keywords)) { 
         $search_keywords = $noquotekey; 
         $keywords = $key; 
      } else { 
         $search_keywords = $search_keywords . '+' . $noquotekey; 
         $keywords = $keywords . ' ' . $key; 
      }   
   }
So both of you: please print out what you get in this loop and figure out what you need to filter out.

@oregongardener - to strip off oddball characters, read about preg_replace and iconv.