View Single Post
Old 07-08-2004, 10:59 AM   #1
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Corrections for Version 1.8.1

Hi. These changes are for PhpDig version 1.8.1 downloaded before the date of this post.

In config.php find:
PHP Code:
//connection to database
if (is_file("$relative_script_path/includes/connect.php")) {
    include 
"$relative_script_path/includes/connect.php";
}
else {
    die(
"Unable to find connect.php file.\n");

and replace with:
PHP Code:
//connection to database
if ((!isset($no_connect)) || ($no_connect != 1)) {
    if (
is_file("$relative_script_path/includes/connect.php")) {
        include 
"$relative_script_path/includes/connect.php";
    }
    else {
        die(
"Unable to find connect.php file.\n");
    }

In search_function.php move this block of code:
PHP Code:
$test_short $query_to_parse;
$query_to_parse2 explode(" ",$query_to_parse);
usort($query_to_parse2"by_length");
$query_to_parse implode(" ",$query_to_parse2);
unset(
$query_to_parse2); 
so that it is below this line:
PHP Code:
$query_for_phrase $query_to_parse
It should look like this afterwards:
PHP Code:
$query_for_phrase $query_to_parse;
$test_short $query_to_parse;
$query_to_parse2 explode(" ",$query_to_parse);
usort($query_to_parse2"by_length");
$query_to_parse implode(" ",$query_to_parse2);
unset(
$query_to_parse2); 
Again, these changes are for PhpDig version 1.8.1 downloaded before the date of this post.

These changes have already been applied to PhpDig version 1.8.1 downloaded after the date of this post.
__________________
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