PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Feedback & News (http://www.phpdig.net/forum/forumdisplay.php?f=25)
-   -   Corrections for Version 1.8.1 (http://www.phpdig.net/forum/showthread.php?t=1047)

Charter 07-08-2004 10:59 AM

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.

Charter 07-08-2004 02:20 PM

Hi. One more oops... :o

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

In auth.php right after:
PHP Code:

$relative_script_path ".."

place the following:
PHP Code:

if (isset($_POST['no_connect'])) {
    
$no_connect $_POST['no_connect'];


It should look like this afterwards:
PHP Code:

$relative_script_path "..";

if (isset(
$_POST['no_connect'])) {
    
$no_connect $_POST['no_connect'];


Also in auth.php find:
PHP Code:

header("Location: $relative_script_path/admin/"); 

and replace with:
PHP Code:

header("Location: $relative_script_path/admin/$redir_file"); 

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.

Charter 07-09-2004 06:16 AM

Hi. Some other tweaks...

These changes are for PhpDig version 1.8.1 downloaded before the date of this post.
  1. added to config.php file right before the $templates_array variable:
    PHP Code:

    if (isset($_GET['template_demo'])) { $template_demo $_GET['template_demo']; } 

  2. added to all $result['form_head'] variables in function_phpdig_form.php file:
    PHP Code:

    <input type='hidden' name='template_demo' value='".$_GET['template_demo']."'/> 

  3. changed the phpdigMsg('alt_try') link in search_function.php file:
    PHP Code:

    ".SEARCH_PAGE."?template_demo=".$_GET['template_demo']."&query_string=".urlencode($leven_query)." 

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.

Charter 07-12-2004 04:37 PM

Foo... See the Bug Tracker forum for further "oops" in version 1.8.1 or download PhpDig version 1.8.2.


All times are GMT -8. The time now is 09:36 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.