BuzzerBeater Forums

Bugs, bugs, bugs > Ugly in Scrimmages Box

Ugly in Scrimmages Box

Set priority
Show messages by
This Post:
00
119359.9 in reply to 119359.6
Date: 12/8/2009 7:28:04 AM
Overall Posts Rated:
4646
It is possible to fix the problem:
1) - be serious
2) Replacing Bad words in a String
Below is an example of how to deal with bad words. Example 1 receives text entered into a form textfield called 'txtComments'. The code strips out any bad word(s) that you choose to enter into the array 'badChars'. In this script we have deemed that the words 'rubbish', 'crap' and 'shit' are unacceptable and should be removed.

Example 1:

<%
Dim sComments
sComments = ReplaceBadWords(Request.Form("txtComments"))
response.write sComments

Function ReplaceBadWords(InputComments)
Dim badChars, newChars, i
'create our array of bad words
badChars = array("rubbish", "crap", "shit") ' here"[","]" "xxx" ... ?
newChars = InputComments
for i = 0 to uBound(badChars)
newChars = Replace(newChars, badChars(i), "")
Next
ReplaceBadWords = newChars
End function
%>

Older than the rest ...
This Post:
00
119359.10 in reply to 119359.9
Date: 12/8/2009 3:26:52 PM
1986 Celtics
IV.21
Overall Posts Rated:
88
do you have a source of all the bad words we should remove? in all the languages that our users use?

also do you have a solution for the computational problem that arises when you try to compare every word published with every word in this bad dictionary?

the reality is such a solution simply isn't feasible technically.

Last edited by BB-Forrest at 12/8/2009 3:29:19 PM

From: Milly
This Post:
00
119359.11 in reply to 119359.10
Date: 12/9/2009 2:38:07 AM
Overall Posts Rated:
4646
Ja, I think so too the way you understand this, but just for the purpose to get rid of [link='http://www'] and [player=XXX] and [team=XXX], which was the case here, it could be useful. But you're the man to see what's possible and what isn't.

Older than the rest ...
This Post:
00
119359.12 in reply to 119359.11
Date: 12/9/2009 10:20:52 AM
1986 Celtics
IV.21
Overall Posts Rated:
88
i agree we can make the standard forum markup work with that.. i'm not sure we want to.. but i'm thining about it.. frankly i think the design of that feature is not great, and needs a layour redesign more than it needs this markup fix. Its on the list...