Thread: iso-8859-7
View Single Post
Old 12-30-2003, 05:48 AM   #32
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Are you sure your MySQL charset is latin1? As for number one, do you have define('DISPLAY_SNIPPETS',true); in the config file?

If so then try increasing define('SNIPPET_DISPLAY_LENGTH',150); and/or define('DISPLAY_SNIPPETS_NUM',4); in the config file.

Also, in search_function.php find the following:
PHP Code:
while($num_extracts DISPLAY_SNIPPETS_NUM && $extract_content fgets($f_handler,1024)) {
      if(
eregi($reg_strings,$extract_content)) {
         
$match_this_spot str_replace('<','&lt;',str_replace('>','&gt;',trim($match_this_spot))); 
There is a typo (not related to number one):
PHP Code:
$match_this_spot str_replace('<','&lt;',str_replace('>','&gt;',trim($match_this_spot))); 
should be:
PHP Code:
$match_this_spot str_replace('<','&lt;',str_replace('>','&gt;',trim($extract_content))); 
Now for number one, decrease 1024 in fgets($f_handler,1024) in the above code to something like 200.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote