Sign character count

Forum for general requests for support for players. Both staff members and veteran players can help new players with problems they encounter. No chatting in this forum, please.

Moderators: Public Relations Department, Players Department, Programming Department

User avatar
Doug R.
Posts: 14857
Joined: Wed Mar 23, 2005 6:56 pm
Contact:

Sign character count

Postby Doug R. » Thu Jun 24, 2010 12:12 pm

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.
Hamsters is nice. ~Kaylee, Firefly
User avatar
EchoMan
Posts: 7768
Joined: Fri Aug 26, 2005 1:01 pm
Location: Stockholm, Sweden

Re: Sign character count

Postby EchoMan » Thu Jun 24, 2010 12:31 pm

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. ;)
User avatar
Doug R.
Posts: 14857
Joined: Wed Mar 23, 2005 6:56 pm
Contact:

Re: Sign character count

Postby Doug R. » Thu Jun 24, 2010 12:56 pm

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?
Hamsters is nice. ~Kaylee, Firefly
User avatar
EchoMan
Posts: 7768
Joined: Fri Aug 26, 2005 1:01 pm
Location: Stockholm, Sweden

Re: Sign character count

Postby EchoMan » Thu Jun 24, 2010 1:09 pm

I'm sure something can be arranged. :)

Return to “General Support”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest