PDA

View Full Version : PhpDig Version 1.8.3 Released


Charter
07-14-2004, 08:29 PM
Hi. PhpDig version 1.8.3 has been released as a 'minor' release. The changes can be found in the Changelog (http://www.phpdig.net/info/changelog.txt) file. No database tables, or changes thereto, were made. To upgrade, copy over the old files with the new files and reconfigure the new connect.php and config.php files.

Charter
07-15-2004, 11:03 PM
Hi. Two small tweaks for those who downloaded PhpDig 1.8.3 before the date of this post:

In robot_functions.php find:

//extracts title
if ( eregi("<title *>([^<>]*)</title *>",$text,$regs) ) {
$title = $regs[1];
}
else {
$title = "";
}

and replace with:

//extracts title
if ( eregi("<title *>([^<>]*)</title *>",$text,$regs) ) {
$title = trim($regs[1]);
}
else {
$title = "";
}

In config.php find:

// turn off magic_quotes_runtime for escaping purposes
@ini_set("magic_quotes_runtime","0");
// turn off magic_quotes_sybase for escaping purposes
@ini_set("magic_quotes_sybase","0");

and replace with:

// turn off magic_quotes_runtime for escaping purposes
@ini_set("magic_quotes_runtime",false);
// turn off magic_quotes_sybase for escaping purposes
@ini_set("magic_quotes_sybase",false);

vinyl-junkie
07-16-2004, 04:31 AM
I believe your first replacement code should be this://extracts title
if ( eregi("<title *>([^<>]*)</title *>",$text,$regs) ) {
$title = trim($regs[1]);
}
else {
$title = "Untitled";
}
if (!($title)) { $title = "Untitled"; } // account for regex match

Charter
07-16-2004, 06:48 AM
Hi. Actually... ;)

//extracts title
if ( eregi("<title *>([^<>]*)</title *>",$text,$regs) ) {
$title = trim($regs[1]);
}
else {
$title = "";
}

The one you posted is meant to never display the filename as the title in search results, a tiny change for another member who wanted "Untitled" instead of the filename for non-titled pages.

Charter
07-16-2004, 11:30 AM
Hi. The attached ZIP file is for those who downloaded PhpDig 1.8.3 before the date of this post.

The ZIP contains the following changes for version 1.8.3:

includes/config.php (changes previously posted in this thread)
admin/cleanup_dashes.php (changes not previously posted)
admin/robot_functions.php (changes previously posted in this thread and changes not previously posted)

If you downloaded PhpDig 1.8.3 after the date of this post, then you do not need the attached file.

Charter
07-22-2004, 12:14 PM
Hi. The two tweaks below are not included in PhpDig version 1.8.3 as of the date of this post.

In search_function.php find:

$leven_final .= $leven_keyword[$leven_count-1] . " ";

and replace with:

if ($leven_count > 0) {
$leven_final .= $leven_keyword[$leven_count-1] . " ";
}

In search_function.php find:

$leven_query = trim($leven_final);

and right afterwards add:

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


Also check this (http://www.phpdig.net/demo/search.php?query_string=apache+server) out (it is a separate work and will not be free). :D

Charter
08-01-2004, 02:04 PM
Hi, just an update to what tweaks are now included in PhpDig 1.8.3 as of the date of this post:

everything in the thread you are currently reading has been included, except the ads program
the correction for cookies listed in this (http://www.phpdig.net/showthread.php?threadid=1069) thread has also been included
the language packs now include certain text as discussed in this (http://www.phpdig.net/showthread.php?threadid=1141) thread

If you downloaded PhpDig version 1.8.3 after the date of this post, then the changes have already been made.