เริ่มเลยน่ะครับ
เปิดไฟล์ Sources/Subs.php
มองหาโค๊ด
// If it wasn't changed, no copying or other boring stuff has to happen!
if ($data != substr($message, $last_pos, $pos - $last_pos + 1))
{
$message = substr($message, 0, $last_pos) . $data . substr($message, $pos + 1);
// Since we changed it, look again incase we added or removed a tag. But we don't want to skip any.
$old_pos = strlen($data) + $last_pos - 1;
$pos = strpos($message, '[', $last_pos);
$pos = $pos === false ? $old_pos : min($pos, $old_pos);
}
}
จากนั้นเติมโค๊ดของผมในบรรทัดถัดมาว่า....
/*
*****************************************************
Linkpr got idea from thaiseoboard.com
By SvZ - 2008
*****************************************************
$_SERVER['svz']['go'] = 'your redirect script here!';
*****************************************************
MoreMeng MOD
*/
$_SERVER['svz']['go'] = 'http://www.dekitclub.com/go/?';
$message = @preg_replace(array('~\[direct\](.*?)\[/direct\]~','~\[direct\=(.*?)](.*?)\[/direct\]~'),array('[iurl=$1]$1[/iurl]','[iurl=$1]$2[/iurl]'),@preg_replace_callback('~\[url=https://www.dekitclub.com/go/(.*?)\](.*?)\[/url\]~',create_function('$m','global $_SERVER;$go=$_SERVER[\'svz\'][\'go\'];$v=parse_url($m[1]);return (!preg_match(\'~^\'.$go.\'~\',$m[1])&&$_SERVER[\'HTTP_HOST\']!=$v[\'host\']&&$v[\'host\']!=\'[url=http://www.youtube.com]www.youtube.com[/url]
\')?\'[url=https://www.dekitclub.com/go/\'.$go.$m[1].\']\'.$m[2].\'[/url]
\':\'[url=https://www.dekitclub.com/go/\'.$m[1].\']\'.$m[2].\'[/url]
\';'),@preg_replace('~\[url\](.*?)\[/url\]~','[url=https://www.dekitclub.com/go/$1]$1[/url]
',$message)));
$message = @str_replace (array('
', ''), array(' <img src="http://www.dekitclub.com/images/link-pr.gif" alt="link" align="middle" />', ''), $message);
ขอบคุณ ไทยเสียวบอร์ด
http://www.thaiseoboard.com/index.php/topic,42183.0.html