Page 1 of 1

Sign character count

Posted: Thu Jun 24, 2010 12:12 pm
by Doug R.
What is the permissible character count for a sign? I made one, it looked fine, then truncated over night to 233 characters+whitespace. I can PM you details.

Re: Sign character count

Posted: Thu Jun 24, 2010 12:31 pm
by EchoMan
The database limitation for dynamic names is 255 characters. But the code do some replacements, like replacing the newline (which is one character in Mozilla/FireFox, and two characters in IE) with "<br />", replacing all "<" or ">" with "&lt;" and "&gt;" respectively and so on. So it's very hard calculating manually how many characters will actually get saved.

I guess we could add a JavaScript to the textarea where you fill in the sign content that automagically calculates the remaining characters. It's also a lot easier to just say: 200 chars max! And no special characters. ;)

Re: Sign character count

Posted: Thu Jun 24, 2010 12:56 pm
by Doug R.
The problem here is that I won't know if it will work until after two days of work. Any chance I can come up with replacement text and have it manually entered into the DB?

Re: Sign character count

Posted: Thu Jun 24, 2010 1:09 pm
by EchoMan
I'm sure something can be arranged. :)