Back to vBulletin 3.5 Add-ons

Word Replacement
Mod Version: 1.00, by applehat

This modification is in the archives.
vB Version: 3.5.0 RC2 Rating: (2 votes - 3.50 average) Installs: 36
Released: 06 Aug 2005 Last Update: Never Downloads: 193
Not Supported  

This is just a simple plug-in that will let you replace words in posts. This could be used for "AdWords" or Replacing curse words insted of just censoring.

Just thought I would share :-P

*cough* *cough*

I am a dumb novice, so this has no admin panel options or anything of that sort. If anyone ever wants to take this and make it all fancy, go ahead and just post.

Note: This should work on any 3.5 version that has the hook postbit_display_complete

This is the code...See how google is replaced with a link to google...make sence?
PHP Code:
$word = array(
'google',
'yahoo'
);

$link = array(
'<a href="http://google.com">google</a>',
'<a href="http://yahoo.com">yahoo</a>'
);


$this->post['message'] = str_replace($word$link$this->post['message']); 

Download

This modification is archived and cannot be downloaded.

Supporters / CoAuthors

  • applehat

vblts.ru supports vBulletin®, 2022-2024