MyBB Community Forums

Full Version: Testing Text Size Bug 2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Bug Reported:
http://dev.mybb.com/issues/1355

If a member post a large text without spaces formatted with a large font size in posts or signatures, the forum layout breaks.

How to reproduce:

Post a new thread or reply or create a new signature with this:
[size=xx-large]aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa[/size]

For an example, see here:
Normal behaviour: http://community.mybb.com/thread-84361.html
(2010-12-17, 07:06 AM)Speeder Wrote: [ -> ]aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

I don't think it has anything to do with text site.

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Edit: interesting.
It's a bug. I'm reporting it right now.

Edit: Reported.
http://dev.mybb.com/issues/1355
ding!
It's a setting (word wrap every X characters in post settings). Default is 80 characters, if you're in a forum for old people where everyone writes in big letters and unwrappable words, you'll just have to put a lower number there... Otherwise leave it to the moderators to deal with unreadable posts (with videos images and text sizes and styles there's always a way to make horrible formatting).

The alternative would be to remove the word wrap entirely and change the style to add a scrollbar instead of stretching the table. Then it'd still be ugly but at least in a somewhat contained fashion.
(2010-12-17, 08:29 AM)frostschutz Wrote: [ -> ]It's a setting (word wrap every X characters in post settings). Default is 80 characters, if you're in a forum for old people where everyone writes in big letters and unwrappable words, you'll just have to put a lower number there... Otherwise leave it to the moderators to deal with unreadable posts (with videos images and text sizes and styles there's always a way to make horrible formatting).

The alternative would be to remove the word wrap entirely and change the style to add a scrollbar instead of stretching the table. Then it'd still be ugly but at least in a somewhat contained fashion.

Ok, but word wrap is working here: http://community.mybb.com/thread-84361.html

It fails when you use bigger font size like the first post of this thread. It´s a bug.
If it failed, it would be all in one line. The word wrap just comes too late for large wide characters. So you'd need to lower the setting for such a case.
Seems that the setting "Number of Characters before Word Wrapping Occurs" isn't working.

I tried to set to 10 but doesn't work.

MyBB 1.6.1 with default theme.
Works for me.

However you should be aware that the word wrapping setting, should really be called word breaking setting. It breaks words. It can also break URLs and HTML tags, so you don't want to set it too small. In fact, you want to set it to the largest value that works for you.

For example even in the standard setting the word wrap breaks URLs like these:

http://community.mybb.com/80charactersgo...tersgohere

And it will actually link to ...charactersgohe​re (or %E2%80%8B) instead of ...charactersgohere because that URL segment was just too long so it was hit by the word breaker.

Now for 80 characters such URLs are extremely uncommon so you won't usually notice, however with 10 characters this is not nearly as uncommon.

The alternative is to disable the word wrap feature entirely and instead rely on CSS to handle too wide content (overflow property).

In a forum there's almost always a way to make content not fit the layout. Sometimes the users are just expected to cooperate and edit their posts until it looks good... and if they don't cooperate that's what moderators are there for.
Thanks for the explanation !

I rechecked wrapping but doesn't work on my two forums Sad