I tried to fix this problem, and I'm just completely stumped. I got the code down to this:
PHP Code:
$array1 = explode("|", $vbulletin->options['ah_word_replace_find']);
$array2 = explode("|", $vbulletin->options['ah_word_replace_replace']);
$this->post['message'] = eregi_replace($array1, $array2, $this->post['message']);
I think it *should* work. It's no longer making everything lowercase. But the replacements simply aren't working. Anyone know what I'm doing wrong?
I tried replacing eregi_replace with str_replace (would be case sensitive though) to no avail. I tried hard coding the find and replace words in the function call, and it works just fine, so the problem seems to lie in the fact that $array1/$array2 or the $vbulletin->options['ah...'] strings aren't being set (they're populated in the database though).