--- search.php 2006-10-09 14:38:02.000000000 -0400 +++ search.php.orig 2006-10-09 14:45:14.000000000 -0400 @@ -120,6 +120,10 @@ } } +// SPHINX +$vbulletin->options['fulltextsearch'] = true; +// END SPHINX + if ($vbulletin->options['fulltextsearch']) { if ($permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cansearchft_bool']) @@ -212,6 +216,13 @@ } } + // SPHINX + if ($vbulletin->GPC['query'] != '') + { + $sphinx = true; + } + // END SPHINX + if (empty($errors)) { // ############################################################################# @@ -1284,7 +1295,9 @@ $post_query_logic[] = "post$pcswitch.dateline > $datecut"; } } - unset($datecut); + // SPHINX + #unset($datecut); + // END SPHINX } // ############################################################################# @@ -1338,6 +1351,14 @@ // ############################################################################# $querylogic = array_merge($post_query_logic, $thread_query_logic); + // SPHINX + if ($sphinx) + { + include('includes/sphinx.php'); + } + else { + // END SPHINX + if (!$vbulletin->GPC['showposts']) { // create new threadscores array to store scores for threads @@ -1624,6 +1645,10 @@ } } + // SPHINX + } + // END SPHINX + // ############################################################################# // end sort the results into order // #############################################################################