| 取代為
---------------------------------------------------------------------------------------
// ###################### Start process_highlight_postbit #######################
function process_highlight_postbit($text, $words, $prepend)
{
$text = str_replace('\"', '"', $text);
foreach ($words AS $replaceword)
{
$text = str_replace($replaceword, '<span class="highlight">'. $replaceword .'</span>', $text);
}
return "$prepend$text";
}
3.重建/清除索引檔
若您資料庫中已經有文章,請到管理面板->引入 & 維護->更新計數器->重建搜索索引:
首先請點擊「點這裡清空」清空索引,然後點擊「重建搜索索引」按鈕重建搜索索引。
原版本升級說明
如果您曾經安裝過中文搜索支持 2.x 版本,那麼請在原英文版這幾個文件的基礎上重新修改文件,替換 2.x 版本修改過的 search.php 和 functions_databuild.php。並修改functions.php和functions_showthread.php。然後清空索引。
|