Advertisement:

Author Topic: TrimUrl  (Read 75424 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,621
    • StoryBB/StoryBB on GitHub
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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Biology Forums

  • SMF Hero
  • ******
  • Posts: 3,746
    • 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.