Board Truncating Long URLs

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

Board Truncating Long URLs

Post by therube » Sun Dec 13, 2015 1:19 pm

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 [URL] tags.

03: 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 [URL] tag before it truncates.


Code: Select all

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

54: [url=http://www.example.com]Hi 456789*123456789*123456789*123456789*123456789*1234[/url]

60: [url=http://www.example.com]Hi 456789*123456789*123456789*123456789*123456789*123456789*[/url]
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: 9282
Joined: Sat Aug 03, 2013 5:45 pm

Re: Board Truncating Long URLs

Post by barbaz » Sun Dec 13, 2015 5:48 pm

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: 9282
Joined: Sat Aug 03, 2013 5:45 pm

Re: Board Truncating Long URLs

Post by barbaz » Sun Dec 13, 2015 7:09 pm

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: 9282
Joined: Sat Aug 03, 2013 5:45 pm

Re: Board Truncating Long URLs

Post by barbaz » Sun Dec 13, 2015 7:20 pm

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: 9282
Joined: Sat Aug 03, 2013 5:45 pm

Re: Board Truncating Long URLs

Post by barbaz » Mon Dec 14, 2015 11:36 pm

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

Post Reply