Jump to content

Topic Title Truncate + Bad Word Filter


abney317

Recommended Posts

VNYwcQW.png

An example of a topic title that got cut off in the middle of a word. (assignment)

Just thought it might be a good idea to not truncate the topic titles in a way that makes a word on the bad word filter show up. :tongue:

The cutoff is completely arbitrary. If we adjusted it to something else, then it would just result in the same thing, just located elsewhere. We could prevent the cut-off from happening in the middle of a word, of course, but then you run into issues where something could effectively break the layout of the board by creating a topic title with no spaces, which would then be considered a bug in it's own right.

Link to comment
Share on other sites

If you don't truncate, you would have to deal with titles like this... epicly long in that TINY 30ish character area...

http://community.invisionpower.com/topic/383714-i-want-all-of-the-chats-to-be-started-private-automatically-so-when-an-user-enters-into-a-chat-they-will-be-automatically-doing-a-private-chat-with/#entry2391222

Also, imagine if they made that all one word, like Ryan said... That would be just as bad...

It wouldn't be too difficult to check for that bad word, though... Just explode the remaining truncated string ' ' separated and do a comparison against the last value of the array. I'm sure this could be done 3rd party.

Link to comment
Share on other sites

Doesn't seem like it would be extremely hard to implement a fix for this. I might give it a go myself.

You could probably just check the last word after the title is truncated, and if it's on the bad word filter, truncate one letter earlier... and loop to check it again.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...