View Single Post
Old 01-11-2004, 01:19 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. In robot_functions.php is the function phpdigCleanHtml.

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

with the following:
PHP Code:
if ( eregi("<title *>([^<>]*)</title *>",$text,$regs) ) {
    
$title $regs[1];
    if (
strlen($title) > X) { // replace X with max length before truncating
        
$title substr($title,0,Y) . "..."// replace Y with desired length
    
}
}
else {
    
$title "";

__________________
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