View Single Post
Old 07-15-2004, 08:43 PM   #12
bforsyth
Green Mole
 
Join Date: Jun 2004
Posts: 22
Hey Charter - thanks. I will have a go at upgrading to the 1.8.3 version and test .

Incidentally, I was looking at the code change that you posted to deal with untitled documents (3 posts up ^). The way that it seems to work now is that if there is no title, then the URL is displayed in place of the title in the search results. :

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

If I were to change this to:

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

would this display "untitled" as the title in the search results? (only asking because I am away from my computer and can't test it!

Thanks again for all of your support.

Last edited by bforsyth; 07-15-2004 at 08:45 PM.
bforsyth is offline   Reply With Quote