1 - Ad rotations It would be cool to have a feature built-in that allows you to have a few advertisements alternate. I know there's external scripts that can do this, but it would be great if it was built-in. 2 - "(modified)" label In some other forums I've used, when a post is modified, it shows up as "Posted on DATE at TIME (modified)". Just kind of cool to know. 3 - Smiley button option For some forums where there is often long messages posted, I think it would be benificial to remove the "Add Smilies ..." pane and turn it into a button in the formatting bar 4 - Soundex swear filter It's not too hard to get around filters by using "B-A-D-W-O-R-D" as opposed to "BADWORD". An exhaustive list would be, well, exhausting. Eblah should use soundex. Here's some Perl that will do it (courtesy Wikipedia):
|
Code
sub soundex { # return soundex code
my($useword) = $_[0];
my($result) = "0000";
my($idx,$prev,$perhaps,$thechar);
$useword =~ tr/ //d; # rid spaces
$useword = lc($useword); # lower-case for consistency
if (length($useword) < 1) {
return($result);
}
$result = substr($useword,0,1); # first letter
$prev = "0";
$idx = 1;
while ($idx <= length($useword)) {
$perhaps = "0";
$thechar = substr($useword,$idx - 1,1);
if (index("bfpv", $thechar) >= 0) { $perhaps = "1"; }
if (index("cgjkqsxz",$thechar) >= 0) { $perhaps = "2"; }
if (index("dt", $thechar) >= 0) { $perhaps = "3"; }
if (index("l", $thechar) >= 0) { $perhaps = "4"; }
if (index("mn", $thechar) >= 0) { $perhaps = "5"; }
if (index("r", $thechar) >= 0) { $perhaps = "6"; }
if ($perhaps != $prev && $perhaps != "0"
&& $idx != 1) { # avoid dups and ignore first
$result .= $perhaps;
}
$prev = $perhaps;
$idx++;
} #endwhile
$result .= "0000"; # pad with zeros to ensure min length
$result = substr($result,0,4); # only return first four
return($result);
} |
|
|