News:

Wondering if this will always be free?  See why free is better.

Main Menu

Long Display Names Strech

Started by David, September 27, 2003, 09:37:57 PM

Previous topic - Next topic

David

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
This space for rent.

[Unknown]

How would you suggest this be changed?

-[Unknown]

Gobalopper

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.

Grudge

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?
I'm only a half geek really...

[Unknown]

IMHO, it's not worth the trouble.

-[Unknown]

[Unknown]

Please post this in the Feature Requests board if you want it to be considered... it's not really a bug.

Thank you,
-[Unknown]

Anguz

maybe wrapping the display name with this where it's stretching your layout?

http://www.php.net/manual/en/function.wordwrap.php
Cristián Lávaque http://cristianlavaque.com

[Unknown]

That is probably the most worthless function PHP has.  Trust me, it won't do the job properly...

-[Unknown]

David

Why won't that work, it looks just like what is needed.  Have a long string, insert a br after X characters.
This space for rent.

[Unknown]

That function causes nothing but trouble when working with html, accented characters, and the like.

-[Unknown]

Advertisement: