يوجد أيضاً مع الملف النصي الذى أرفقه الأخ تسعاوي
إنشاء عدد 2 بلجنز محتواهم كالتالي:
كود PHP:
Product: vbulletin
Hook Location: postdata_presave
Title: Replace Word postdata
Execution Order: 5
Plugin PHP Code:
$search = array(
'http://vbulletin.com',
'http://vbulletin.org',
);
$replace = array(
'http://www.vbulletin.com',
'http://www.vbulletin.org',
);
$this->post['pagetext'] = str_replace($search, $replace, $this->post['pagetext']);
كود PHP:
Product: vbulletin
Hook Location: threaddata_presave
Title: Replace Word Threaddata
Execution Order: 5
Plugin PHP Code:
$search = array(
'http://vbulletin.com',
'http://vbulletin.org',
);
$replace = array(
'http://www.vbulletin.com',
'http://www.vbulletin.org',
);
$this->post['pagetext'] = str_replace($search, $replace, $this->post['pagetext']);