Word censoring with image replaceReplaces defined censore words with an image.
All non-defined censore words are replaced normally.
openincludes/cache.php
findCode:
$censors['replace'][] = $row['replacement'];
replace withCode:
$censors['replace'][] = (preg_match("#\*_(.*?)#", $row['replacement'])) ? '<img src="' . $phpbb_root_path . str_replace('*_', '', $row['replacement']) . '" alt="" />' : $row['replacement'];
make censoring this way (example for the word test):
http://www.loaditup.de/files/643108_y75d75m4xw.pngacp > posting > word censoring, if you want an image-replace.
- enter replacement with additional image path: *_images/image_name.jpg
- don't forget to put the images in folder images/*.* and name the images sensefull
- censor list is cached by design, so don't forget to clear board-cache after each editing of censor list