Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Really long strings

  1. Jan 19, 2005 #1

    Hurkyl

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    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?
     
  2. jcsd
  3. Jan 19, 2005 #2
    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?
     
  4. Jan 19, 2005 #3

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    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
     
  5. Jan 19, 2005 #4
    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.
     
  6. Jan 21, 2005 #5
    Unless spaces dont count, I think I got thorugh.
     
  7. Jan 21, 2005 #6

    Hurkyl

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    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)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Really long strings
  1. Is this really PF ? (Replies: 6)

  2. Tom really? (Replies: 1)

  3. Strings are that cool (Replies: 4)

Loading...