Board Truncating Long URLs

Discussion about the board itself, forums organization and site bugs.
Post Reply
User avatar
therube
Ambassador
Posts: 7924
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Board Truncating Long URLs

Post 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]
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: Board Truncating Long URLs

Post 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)
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: Board Truncating Long URLs

Post 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.
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: Board Truncating Long URLs

Post 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.
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: Board Truncating Long URLs

Post by barbaz »

Also URL tags containing images will make the images cut off.
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply