Author Topic: TrimUrl  (Read 76224 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: TrimUrl
« Reply #140 on: May 06, 2013, 09:15:15 AM »
There's no way to do it without major changes to the guts of SMF; this mod operates on the BBC parser, the BBC parser doesn't know what kind of context that content has, whether it's for display for for emails.

Which is why the CSS solution came about.
No good deed goes unpunished
All helpful urges should be circumvented

Offline Biology Forums

  • SMF Hero
  • ******
  • Posts: 3,781
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: TrimUrl
« Reply #141 on: September 13, 2013, 10:11:39 PM »
Attached a version for SMF 2.

Work done by Dragoon, following a paid request of mine.

Or use this css (by Antechinus)

Code: [Select]
.inner a {
   display: inline-block;
   white-space: pre;
   overflow: hidden;
   text-overflow: ellipsis;
   max-width: 24em;
   vertical-align: bottom;

Officially removed this mod and implemented these changes on 1.1.18, thank you.