Really Long Strings: Issues & Solutions

  • Thread starter Thread starter Hurkyl
  • Start date Start date
Hurkyl
Staff Emeritus
Science Advisor
Gold Member
Messages
14,922
Reaction score
28
We had an example last night of a thread title that was very long, and today we have an example of a username that is very long. Both got displayed in full, messing up the screen layout: the former expanded the width of the page, and the latter consumed a high percentage of the width.

Would it be difficult to cap the display of such things to a fixed length, or at least forcibly wrap them?
 
Physics news on Phys.org
We do have a max of I think 15 characters for a username. I think it would be difficult to dynamicly wrap a string depending on the postbit width. Does it happen often?
 
Greg,

It might be as easy as changing a template to allow a table cell to wrap. I think this happens on e.g. the new posts page, and is typically due to the long usernames allowed on usenet posts.

- Warren
 
chroot said:
Greg,

It might be as easy as changing a template to allow a table cell to wrap. I think this happens on e.g. the new posts page, and is typically due to the long usernames allowed on usenet posts.

- Warren

A table can't wrap if the string is really long, wrapping only works if there is a long sentance with spaces. So it would require some coding.
 
Greg Bernhardt said:
We do have a max of I think 15 characters for a username. I think it would be difficult to dynamicly wrap a string depending on the postbit width. Does it happen often?

Unless spaces don't count, I think I got thorugh.
 
The really long username did, in fact, come from the newsgroups. I've only seen it mess up the display once. (though the fact I'm on 1024x768 now probably had something to do with why I noticed)
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 47 ·
2
Replies
47
Views
11K
  • · Replies 58 ·
2
Replies
58
Views
9K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K