Hi recon! Im not so skilled in PHP. So try this at your own risk.
open /includes/functions_codeparse.php
find
代码:
$text = preg_replace( "/(^|(?<=[^_a-z0-9-=\]\"'\/@]|(?<=" . $taglist . ")\]))((https?|ftp|gopher|news|telnet|rtsp|mms):\/\/|www\.)(?!\[\/url|\[\/img)([a-z0-9\/\-_+=.~!%@?#%&;:$\\()|]+)/ie" , "\$this->parse_build_url(array('html' => '\\2\\4', 'show' => '\\2\\4'))", $text );
$text = preg_replace( "/(^|(?<=[^_a-z0-9-=\]\"'\/@]|(?<=" . $taglist . ")\]))((exeem):\/\/|www\.)(?!\[\/url|\[\/img)((\|(\w+)\|(\S+))|([^<> ]*))/ie" , "\$this->parse_build_url(array('html' => '\\2\\4', 'show' => '\\2\\4'))", $text );
replace with
代码:
// $text = preg_replace( "/(^|(?<=[^_a-z0-9-=\]\"'\/@]|(?<=" . $taglist . ")\]))((https?|ftp|gopher|news|telnet|rtsp|mms):\/\/|www\.)(?!\[\/url|\[\/img)([a-z0-9\/\-_+=.~!%@?#%&;:$\\()|]+)/ie" , "\$this->parse_build_url(array('html' => '\\2\\4', 'show' => '\\2\\4'))", $text );
// $text = preg_replace( "/(^|(?<=[^_a-z0-9-=\]\"'\/@]|(?<=" . $taglist . ")\]))((exeem):\/\/|www\.)(?!\[\/url|\[\/img)((\|(\w+)\|(\S+))|([^<> ]*))/ie" , "\$this->parse_build_url(array('html' => '\\2\\4', 'show' => '\\2\\4'))", $text );
find
代码:
if ( $_INPUT['parseurl'] ) {
replace with (this will parse regardless of whether Auto parse URLs? checkbox is checked or not)
代码:
// if ( $_INPUT['parseurl'] ) {
find
代码:
$text = preg_replace('#(^|\[/(' . $skiptaglist . ')\])(.+(?=\[(' . $skiptaglist . ')|$))#siUe', "\$this->convert_url_callback('\\3', '\\1')", $text);
}
replace with (this will parse regardless of whether Auto parse URLs? checkbox is checked or not)
代码:
$text = preg_replace('#(^|\[/(' . $skiptaglist . ')\])(.+(?=\[(' . $skiptaglist . ')|$))#siUe', "\$this->convert_url_callback('\\3', '\\1')", $text);
// }
find below (in function parse_build_url)
代码:
return $url['pp'] . "<a href=\"".$url['html']."\" target=\"_blank\">".$show."</a>" . $url['end'];
replace with
代码:
global $bboptions;
if (ereg($bboptions['homeurl'],$url['html'])) {
return $url['pp'] . "<a href=\"".$url['html']."\" target=\"_blank\">".$show."</a>" . $url['end'];
} else {
return $url['pp'] . "<a href=\"http://anonym.to/?".str_replace("#","#",$url['html'])."\" target=\"_blank\">".$show."</a>" . $url['end'];
}
done!