Page 1 of 1

Board Truncating Long URLs

Posted: Sun Dec 13, 2015 1:19 pm
by therube
Board Truncating Long URLs

Since I can't find that recent thread ? just a Bump to prevent the (now new) Truncation of the Text portion of "long URLs" that are placed in tags.

03: [url=http://www.example.com]Hi.


54: Hi 456789*123456789*123456789*123456789*123456789*1234

60: Hi 456789*123456789*123456789*123456789*123456789*123456789*


Seems you can only fit a 54 character "textpart" in a tag before it truncates. [code] 03: ... le.com]Hi.

54: Hi 456789*123456789*123456789*123456789*123456789*1234

60: Hi 456789*123456789*123456789*123456789*123456789*123456789*
[/code]

Re: Board Truncating Long URLs

Posted: Sun Dec 13, 2015 5:48 pm
by barbaz
It's only a visual truncation (CSS) and the thread where this was discussed is not public.

viewtopic.php?p=79988#p79988 (forum staff only)

Re: Board Truncating Long URLs

Posted: Sun Dec 13, 2015 7:09 pm
by barbaz
relevant quotes from the thread I linked
barbaz wrote:Looks like the "visual truncation" styling needs to not be applied to anything other than linkified urls in posts outside url tags.
therube wrote:
Looks like the "visual truncation" styling needs to not be applied to anything other than linkified urls in posts outside url tags.
Right.
barbaz wrote:(Just to point out, links posted outside of url tags before the change, will still truncate as before on edit or quote post.

Re: Board Truncating Long URLs

Posted: Sun Dec 13, 2015 7:20 pm
by barbaz
Also, it's not 54 characters here
Displays:
123456789012345678901234567890123456789012
Truncates:
1234567890123456789012345678901234567890123

seems to be 42 characters max, but given that the font used isn't monospace and that when to truncate is determined by CSS length

Code: Select all

max-width: 26em;
I think horizontal size of the text is more relevant than number of characters.

Re: Board Truncating Long URLs

Posted: Mon Dec 14, 2015 11:36 pm
by barbaz
Also URL tags containing images will make the images cut off.