For the people above who are experiencing the " -> " bug, try commenting out line 120 which reads:
Code:
$text = htmlspecialchars_uni(trim($text));
I think this will still result in all characters like < being cleaned etc., but it misses out ", which should be OK in most circumstances.
Anyway, I need help with something. I'm trying to add badword filter functionality to the shoutbox with the following code placed above line 343:
Code:
$badwords = array('badword1' => 'replacement1', 'badword2' => 'replacement2', 'badword3' => 'replacement3');
$vbulletin->GPC['shout'] = str_ireplace(array_keys($badwords), array_values($badwords), $vbulletin->GPC['shout']);
Obviously I've replaced the actual badwords to avoid antagonizing staff around here... Anyway, this code should work fine, but when it's added in, the shoutbox just plain
refuses to insert it into the database. It's the same no matter what you set $vbulletin->GPC['shout'] to. Even if you add some code to set it to "hello" just before it's inserted, it doesn't get inserted. Any help?