2010年11月3日星期三

SMF censored text for post only

keyword: censorText
lookup the keyword from ./Source/{Display,BoardIndex,MessageIndex}.php and comment out the subject part.

to avoid html embedded posts:
in Source/Load.php

1669 if (strrchr($text, html)){
1670     return $text;
1671 }
1672 else {
1673     $text = preg_replace($censor_vulgar, $censor_proper, $text);
1674     return $text;
1675 }

0 comments:

張貼意見