Hi. In the search_function.php file, change:
PHP Code:
if(eregi($reg_strings,$extract_content)) {
$match_this_spot = str_replace('<','<',str_replace('>','>',trim($match_this_spot)));
$match_this_spot = eregi_replace($reg_strings,"\\1<\\2>\\3",$extract_content);
$first_bold_spot = strpos($match_this_spot,"<");
$first_bold_spot = max($first_bold_spot - round((SNIPPET_DISPLAY_LENGTH / 2),0), 0);
$extract_content = substr($extract_content,$first_bold_spot,max(SNIPPET_DISPLAY_LENGTH, 2 * strlen($query_string)));
$extract .= ' ...'.phpdigHighlight($reg_strings,str_replace('<','<',str_replace('>','>',trim($extract_content)))).'... ';
$num_extracts++;
}
to the following:
PHP Code:
if(eregi($reg_strings,$extract_content)) {
$extract_content = str_replace('<','<',str_replace('>','>',trim($extract_content)));
$match_this_spot = eregi_replace($reg_strings,"\\1<\\2>\\3",$extract_content);
$first_bold_spot = strpos($match_this_spot,"<");
$first_bold_spot = max($first_bold_spot - round((SNIPPET_DISPLAY_LENGTH / 2),0), 0);
$extract_content = substr($extract_content,$first_bold_spot,max(SNIPPET_DISPLAY_LENGTH, 2 * strlen($query_string)));
$extract .= ' ...'.phpdigHighlight($reg_strings,$extract_content).'... ';
$num_extracts++;
}
Remember to remove any "word" wrapping in the above code.