12-10-2004, 01:23 PM
|
#2
|
Head Mole
Join Date: May 2003
Posts: 2,539
|
- The difference between DISPLAY_SUMMARY and DISPLAY_SNIPPETS:
PHP Code:
// code in search_function.php
if (DISPLAY_SUMMARY) {
$table_results[$n]['text'] = phpdigHighlight($reg_strings,ereg_replace('(@@@.*)','',wordwrap($text, SUMMARY_DISPLAY_LENGTH, '@@@')));
}
if (DISPLAY_SUMMARY && DISPLAY_SNIPPETS) {
$table_results[$n]['text'] .= "\n<br/><br/>\n";
}
if (DISPLAY_SNIPPETS) {
if ($extract) {
$table_results[$n]['text'] .= $extract;
}
else if (!$table_results[$n]['text']){
$table_results[$n]['text'] = phpdigHighlight($reg_strings,ereg_replace('(@@@.*)','',wordwrap($text, SUMMARY_DISPLAY_LENGTH, '@@@')));
}
}
- How phpdigExclude and phpdigInclude work:
http://www.phpdig.net/forum/showthread.php?t=1430
- How to reindex:
http://www.phpdig.net/forum/showthread.php?t=1579
__________________
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.
|
|
|