Quote:
Originally Posted by Dean C
Interesting. Then try using this hook @ postbit_display_complete:
Code:
str_replace('moo', 'baa', $this->post['message']);
Obviously make sure your post has "moo" somewhere in it. It won't replace it... yet your example works Paul 
|
Okay, I was trying to diplomatically suggest you may have the syntax wrong.
I would expect it to be ;
PHP Code:
$this->post['message'] = preg_replace('/moo/', 'baa', $this->post['message']);
Surely you need to assign the replaced text back to the actual message variable ?
Since my test board has currently disappeared up it's own ar*e I can't prove this atm
Edit: Darn, I see Marco has beaten me to pretty much suggesting the same.
Edit 2: It does work.