Previous Thread
Next Thread
Print Thread
Hop To
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
User display name gets chopped into two lines when they are op in a post.
The settings for name is like 30 characters.
If I use a group image that is wider than the name the cell will expand and no word wrap happens.

The user name is lightninghorse not
lightninghor
se
Attachments
Screenshot (3).png


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Originally Posted by Ruben
User display name gets chopped into two lines when they are op in a post.
The settings for name is like 30 characters.
If I use a group image that is wider than the name the cell will expand and no word wrap happens.

The user name is lightninghorse not
lightninghor
se

Thats correct. As of UBBthreads 7.7.4, the author display name gets wrapped where it can find a space, dash, coma, period, or TitleCase. If it cannot find a suitable place to wrap, it forces a wrap where the width first overflows at.

Quote
[Fixed] Long usernames will now be wrapped if a space is not found within the name to wrap at.
SOURCE https://www.ubbcentral.com/changelog.php#774

Previously, long display names would push the forum content out of bounds and off the page, often breaking responsive (mobile) page display, and desktop page presentation.

To prevent this, either use a smaller font for the .authorname style. limit the size of display names. or use one of the other items mentioned above.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
1 member likes this: Gizmo
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
If your intent is to remove mobile capability and allow the cell to stretch to fit the full username on one line (which looks out of place, since that one users posts will stretch the author area), you can add this to the Control Panel > General > Header Includes, Default Header:
Code
<style>.author-name{overflow:hidden;white-space:nowrap;}</style>


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
I tried Gizmos suggestion but the styling is incorrect.
It hides the wrapped txt from display , it does not expand that cell.

It should have been like:
Code
<style>.author-name{overflow:visible;white-space:nowrap;}</style>

But then the cell still does not expand , the last character is against or under the mood /online image with no padding.
I think it is because of the OP image that comes from fontawsome?

I did not want to change the default font so:
I ended up editing the display name from lightninghorse to lightning horse.
Now at least the wrap point makes the name readable.
And yes member notified.

So with the default character font size it appears to be 11 characters when word wrap comes in play and they are the op.
If they are not the op then they have a couple more spaces available in the name without wordwrap doing it's thing

Unless you have a group image that is wider than the default. Then it will expand in the author area.
Which will align all the other items in the author area without word wrap.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 686 guests, and 131 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)