View Single Post
  #2 (permalink)  
Old 01-25-2008, 10:17 PM
manya1011 manya1011 is offline
Constant Pligger
 
Join Date: Jan 2008
Posts: 164
Thanks: 8
Thanked 24 Times in 16 Posts
Quote:
Originally Posted by Geoserv View Post
A lot of submissions, especially blogs, when submitted show a title similar to:



The only pertinent information there is the page title, so to clean this up do the following:

open libs/link.php and find:

Code:
if(preg_match("'<title>([^<]*?)</title>'", $this->html, $matches)) {
			$this->url_title=trim($matches[1]);
		}
change to:

Code:
if(preg_match("'<title>([^<]*?)</title>'", $this->html, $matches)) {
            $url_title=trim($matches[1]);
            $url_title = explode(":",$url_title);
            $this->url_title = $url_title[1]; 

}
Thats it.

Geoserv

I tried this but, now nothing shows in the title
__________________
iGameit

helpthewriters.com
Reply With Quote