PhpDig.net

Go Back   PhpDig.net > General Forums > Feedback & News

Reply
 
Thread Tools
Old 07-08-2004, 11: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
Old 07-08-2004, 03:20 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. One more oops...

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.
__________________
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
Old 07-09-2004, 07:16 AM   #3
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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.
__________________
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
Old 07-12-2004, 05:37 PM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Foo... See the Bug Tracker forum for further "oops" in version 1.8.1 or download PhpDig version 1.8.2.
__________________
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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL version? jmitchell Coding & Tutorials 1 02-01-2005 12:09 PM
What abou the new version!? BulForce The Mole Hole 1 01-19-2005 08:02 PM
RSS version? AllKnightAccess Troubleshooting 2 09-27-2004 01:06 AM
Version 1.8.1 Alpha Charter Feedback & News 30 07-05-2004 09:30 PM
Next version? tazmandev Mod Requests 1 03-09-2004 12:59 PM


All times are GMT -8. The time now is 10:18 AM.


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