News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Personal Text fix error

Started by vainglory, September 12, 2013, 02:01:38 PM

Previous topic - Next topic

vainglory

I had attempted the fix posted in this thread by emanuele: http://www.simplemachines.org/community/index.php?topic=464107.0

However, I am receiving a non breaking space error from this portion of the fix:

'~(?<=[>;:!? ' . $non_breaking_space . '\]()]|^)([\w' . ($context['utf8'] ? '\pL' : '') . '\.]{' . $fixLongWords . ',})~e' . ($context['utf8'] ? 'u' : ''),

I assumed that since the original thread was the archive, people wouldn't likely post there, so I apologize if by creating this thread in the normal section is a duplication. I would have just messaged emanuele and asked what I was doing wrong, however, the personal messenger cautioned me against sending PMs about anything support related. Thus, the creation of this thread.

Hristo

There is a much better way to fix that problem/bug by just css.

Open your theme's index.css file, find ".poster" (personally I use it on the "body") and add to it:
word-wrap: break-word;

Alternatively add .poster {
    word-wrap: break-word;
}
at the end of the file.

As far as I remember this is fixed in 2.1


vainglory

Quote from: Hristo on September 12, 2013, 03:54:23 PM
As far as I remember this is fixed in 2.1

That worked a lot better.

Quote from: Hristo on September 12, 2013, 03:54:23 PM
As far as I remember this is fixed in 2.1

Isn't 2.0.5 the most recent official version?

Matthew K.

SMF 2.0.5 is the most recent version. SMF 2.1 is the version that's currently in development - and almost to Beta, except for the things I didn't fully finish before I left, and a small handful of bugs.

The only updates to the SMF 2.0 branch are strictly going to be security patches.

Arantor

As this is fixed in 2.1, and we won't be adding theme changes in 2.0, this is definitely solved going forward.

Though I would note there weren't 'a handful of bugs'. There were dozens and dozens of bugs from 2.0 still present in 2.1, some of which were reported on here years ago but never fixed for whatever reason, but that are being tackled as well as the other clean-ups being done.
Holder of controversial views, all of which my own.


Advertisement: