هذا محتواه :
كود:
<?xml version="1.0" encoding="ISO-8859-1"?>
<plugins>
<plugin active="1" product="vbulletin">
<title>Title_Replace</title>
<hookname>postbit_display_complete</hookname>
<phpcode><![CDATA[global $vbulletin;
$ttt = preg_replace('/\./', "\.", preg_replace('/\//', "\/", $vbulletin->options['bburl']));
$mepattern = "/<a href=\"". $ttt ."\/showthread\.php\?t=(.*)\" target=\"_blank\">(.*)<\/a>/i";
if(preg_match($mepattern, $this->post['message'],$matches))
{
$vbulletin->orig = $vbulletin->db->query_first("SELECT title FROM " . TABLE_PREFIX . "thread WHERE threadid = '" . intval($matches[1]) . "'");
$this->post['message'] = preg_replace($mepattern, "<a href=\"". $vbulletin->options['bburl'] ."/showthread.php?t=$matches[1]\" target=\"_blank\">". $vbulletin->orig['title'] . "</a>", $this->post['message']);
}
$mepattern = "/<a href=\"". $ttt ."\/showthread\.php\?goto=newpost&\;t=(.*)\" target=\"_blank\">(.*)<\/a>/i";
if(preg_match($mepattern, $this->post['message'],$matches))
{
$vbulletin->orig = $vbulletin->db->query_first("SELECT title FROM " . TABLE_PREFIX . "thread WHERE threadid = '" . intval($matches[1]) . "'");
$this->post['message'] = preg_replace($mepattern, "<a href=\"". $vbulletin->options['bburl'] ."/showthread.php?goto=newpost&t=$matches[1]\" target=\"_blank\">". $vbulletin->orig['title'] . "</a>", $this->post['message']);
}
$mepattern = "/<a href=\"". $ttt ."\/showthread\.php\?goto=lastpost&\;t=(.*)\" target=\"_blank\">(.*)<\/a>/i";
if(preg_match($mepattern, $this->post['message'],$matches))
{
$vbulletin->orig = $vbulletin->db->query_first("SELECT title FROM " . TABLE_PREFIX . "thread WHERE threadid = '" . intval($matches[1]) . "'");
$this->post['message'] = preg_replace($mepattern, "<a href=\"". $vbulletin->options['bburl'] ."/showthread.php?goto=lastpost&t=$matches[1]\" target=\"_blank\">". $vbulletin->orig['title'] . "</a>", $this->post['message']);
}]]></phpcode>
</plugin>
</plugins>
تحياتي .
مواقع النشر (المفضلة)