[Snippet] Word censoring for the (at) symbol

This snippet automatically transforms boardwide all @ to (at)
open
search.php
find
after add
open
viewtopic.php
find
after add
open
includes/functions_posting.php
find
before add
Clear all Board-, Template-, Style- and Browser-Caches
open
search.php
find
- Code: Select all
$row['post_text'] = censor_text($row['post_text']);
after add
- Code: Select all
$row['post_text'] = preg_replace('#@#is','(at)', $row['post_text']);
open
viewtopic.php
find
- Code: Select all
$message = censor_text($row['post_text']);
after add
- Code: Select all
$message = preg_replace('#@#is','(at)', $message);
open
includes/functions_posting.php
find
- Code: Select all
$template->assign_block_vars($mode . '_row', array(
before add
- Code: Select all
$message = preg_replace('#@#is','(at)', $message);
Clear all Board-, Template-, Style- and Browser-Caches