Previous Thread
Next Thread
Print Thread
Hop To
Joined: Dec 2003
Posts: 6,286
Likes: 45
Ruben Offline OP
OP Offline
Joined: Dec 2003
Posts: 6,286
Likes: 45
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

Attached Images
Screenshot (3).png

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Apr 2004
Posts: 1,825
Likes: 108
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,825
Likes: 108
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 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
1 member likes this: Gizmo
Joined: Jun 2006
Posts: 16,022
Likes: 60
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,022
Likes: 60
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,286
Likes: 45
Ruben Offline OP
OP Offline
Joined: Dec 2003
Posts: 6,286
Likes: 45
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
PM limits
by jjjjj - 01/07/2021 12:59 PM
FAQ is blank?
by Bad Frog - 01/06/2021 12:01 PM
IP Addresses Of Users
by tinker123 - 01/03/2021 3:07 PM
User display name gets chopped
by - 12/25/2020 1:08 PM
Who's Online Now
1 members (1 invisible), 38 guests, and 61 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
gallery test
gallery test
by Mors, September 23
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 7.7.5