• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest Semi-bug: Link shortening and printing

sheel

Active member
#1
Hello,

no, I'm not asking for a printing-version-feature, because with some CSS media queries, printing threads works well.

Except for one thing (Problem first, idea for simple solution then):

Code:
[url]http://mylooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooonglink.com[/url]
gets shortened with ...:
http://mylooooooooooooooooooooooooo...ooooooooooooooooooooooooooooooooooonglink.com
even on the printed page. Because this happens on PHP side, it can't be solved with some CSS alone.

While a small plugin could solve this, it would be nice too see something like the following in XF2:

Instead of something like
Code:
<a href="http://myloooooooooooooooooonglink.com">
http://mylo...onglink.com
</a>
the Base Formatter shortener could generate
Code:
<a href="http://myloooooooooooooooooonglink.com">
http://mylo
<span class=myhiddenlinkpart>ooooooooooo</span>
<span class=myvisiblelinkpart>...</span>
onglink.com
</a>
Ie. the two spans with content instead of just "..."
Then some CSS like
Code:
.myvisiblelinkpart {}
.myhiddenlinkpart { display:none; }
With this, it would be enough to just switch these two classes in the print version CSS.
 
Last edited: