PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Feedback & News (http://www.phpdig.net/forum/forumdisplay.php?f=25)
-   -   PhpDig Version 1.8.3 Released (http://www.phpdig.net/forum/showthread.php?t=1082)

Charter 07-14-2004 08:29 PM

PhpDig Version 1.8.3 Released
 
Hi. PhpDig version 1.8.3 has been released as a 'minor' release. The changes can be found in the Changelog 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:
PHP Code:

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


and replace with:
PHP Code:

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


In config.php find:
PHP Code:

// 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:
PHP Code:

// 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:
PHP Code:

//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... ;)
PHP Code:

//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

1 Attachment(s)
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:
    PHP Code:

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

    and replace with:
    PHP Code:

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


  • In search_function.php find:
    PHP Code:

    $leven_query trim($leven_final); 

    and right afterwards add:
    PHP Code:

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

Also check this 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 thread has also been included
  • the language packs now include certain text as discussed in this thread
If you downloaded PhpDig version 1.8.3 after the date of this post, then the changes have already been made.


All times are GMT -8. The time now is 03:31 AM.

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