BuzzerBeater Forums

Bugs, bugs, bugs > Ugly in Scrimmages Box

Ugly in Scrimmages Box

Set priority
Show messages by
From: Unkel
This Post:
00
119359.1
Date: 11/21/2009 6:25:32 AM
Overall Posts Rated:
2020
Last flag in the box has a team connected to it, and an ugly text after that; "[match=XXX] Please Invite me in private league[match=XXX]". See: http://img187.imageshack.us/img187/981/bugml.gif

Why this mess?

This Post:
00
119359.2 in reply to 119359.1
Date: 11/21/2009 6:49:04 AM
Overall Posts Rated:
3737
Last flag in the box has a team connected to it, and an ugly text after that; "[match=XXX] Please Invite me in private league[match=XXX]". See: (http://img187.imageshack.us/img187/981/bugml.gif)

Why this mess?


That's user error, pressing the basketball icon above the text box when creating the ad, and not deleting it.

See (118763.1) for the general poor layout of the ad text.

This Post:
00
119359.3 in reply to 119359.2
Date: 11/21/2009 7:02:47 AM
Overall Posts Rated:
2020
Hm, things like that should be weeded out before displayed on the page.

This Post:
00
119359.4 in reply to 119359.3
Date: 11/21/2009 7:11:05 AM
Overall Posts Rated:
3737
Hm, things like that should be weeded out before displayed on the page.


Assuming the BBs use library code for the many places where they have forum-style markup (although all evidence is that they don't, that it's cut and pasted and slightly different in every different place), then you would have had a tougher time posting this problem.

This Post:
00
119359.5 in reply to 119359.4
Date: 11/21/2009 7:30:56 AM
Overall Posts Rated:
2020
I'm unfamiliar with some words here, like library code and forum-style markup, and don't see what's in:
"you would have had a tougher time posting this problem"
I used to do programming, but not on web-sites, and there it was possible to run something like Replace([match=XXX],'' ). If the text had distinct phrases they could be replaced with nothing. Only some few lines of code did the trick connected to the [Submit] button. Are these things impossible in web-programming?

This Post:
00
119359.6 in reply to 119359.5
Date: 11/25/2009 6:46:37 AM
Overall Posts Rated:
3838
You mean something like: "Burn in a hot place you mumloving snugglebunny!" or "Go tighten yourself you undesirable fuming donkeypit ;) No offence Unkel ;P

I think he meant if ie: Replace([match=XXX],'Karate Kid' ), you would have reported:
Last flag in the box has a team connected to it, and an ugly text after that; "Karate Kid Please Invite me in private leagueKarate Kid".
He did not notice, or forgot, the rest of your post
See: (http://img187.imageshack.us/img187/981/bugml.gif)
...but if Replace([match=XXX],'Karate Kid' ) that page would not have shown it correctly either... so in a sense he made sense.
Are these things impossible in web-programming?
I did some of that in preprogrammed forums, where I only found words to replace unwanted swearing. I could replace it with an empty space also if I wanted to, but it was so much more fun to write something stupid.

This Post:
00
119359.7 in reply to 119359.1
Date: 11/25/2009 7:30:57 AM
Overall Posts Rated:
3737
Looking at it a little closer, the real problem is that the buttons to add player links, match links, etc. that appears over the text entry box don't even do anything in scrimmage ads. Someone has a scrimmage ad up know with a valid player link in conference markup but it doesn't render as a link.

This Post:
00
119359.8 in reply to 119359.6
Date: 11/25/2009 12:36:23 PM
Overall Posts Rated:
2020
You are good! :o) I wish I here one of your dogs in a remote woodland. ↑ ↑ ↑

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 ...