Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Topic started by: David on September 27, 2003, 09:37:57 PM

Title: Long Display Names Strech
Post by: David on September 27, 2003, 09:37:57 PM
Hmm, we ned some way so display names can have line breaks before a space for things like this.  I have a few users who like long display names too.
http://www.simplemachines.org/community/index.php?threadid=1624
Title: Re: Long Display Names Stretch
Post by: [Unknown] on December 08, 2003, 12:44:38 AM
How would you suggest this be changed?

-[Unknown]
Title: Re: Long Display Names Strech
Post by: Gobalopper on December 08, 2003, 05:11:46 AM
Well you could check it whenever it is set but I think this is something the admin or moderators can deal with by simply telling the person to change their display name.
Title: Re: Long Display Names Strech
Post by: Grudge on December 10, 2003, 04:22:53 PM
Would it be worth having a function that checks new display names? Basically you would count how many characters in the string and if its more than say 25 it throws an error. If its more than say, 16 it counts back from the 16th position and the first white space it finds it replaces with a line break. This or something similar to this may work?
Title: Re: Long Display Names Strech
Post by: [Unknown] on December 14, 2003, 08:16:45 AM
IMHO, it's not worth the trouble.

-[Unknown]
Title: Re: Long Display Names Strech
Post by: [Unknown] on December 20, 2003, 05:55:31 PM
Please post this in the Feature Requests (http://www.simplemachines.org/community/index.php?board=3) board if you want it to be considered... it's not really a bug.

Thank you,
-[Unknown]
Title: Re: Long Display Names Strech
Post by: Anguz on December 22, 2003, 12:54:41 AM
maybe wrapping the display name with this where it's stretching your layout?

http://www.php.net/manual/en/function.wordwrap.php
Title: Re: Long Display Names Strech
Post by: [Unknown] on December 22, 2003, 03:23:44 AM
That is probably the most worthless function PHP has.  Trust me, it won't do the job properly...

-[Unknown]
Title: Re: Long Display Names Strech
Post by: David on December 22, 2003, 03:33:21 AM
Why won't that work, it looks just like what is needed.  Have a long string, insert a br after X characters.
Title: Re: Long Display Names Strech
Post by: [Unknown] on December 22, 2003, 04:49:26 AM
That function causes nothing but trouble when working with html, accented characters, and the like.

-[Unknown]