Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    E-Blah Discussion    E-Blah Features  ›  Few features...
Users Browsing Forum
MSN Bot and 1 Guests

Few features...  This thread currently has 352 views. Print
1 Pages 1 Recommend Thread
tylermenezes
January 1, 2007, 5:52pm Report to Moderator Report to Moderator

Anybody here speak Python? HHHSSSSSSSSSSSSSS!
Posts: 201
Gender: Male
Posts Per Day: 0.21
Reputation: 90.48%
Reputation Score: +19 / -2
Time Online: 1 days 5 hours 56 minutes
Location: Redmond, Washington
Age: 16
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);
}



Revision History (1 edits)
tylermenezes  -  January 1, 2007, 6:49pm
Logged Offline
Site Site Private Message Private message
1 Pages 1 Recommend Thread
Print

E-Blah Community    E-Blah Discussion    E-Blah Features  ›  Few features...