Customizing SMF > Modifications and Packages

TrimUrl

<< < (28/29) > >>

Liam_michael:
I'm finding that the urls sent through email are also being truncated, thereby preventing the user from following the link.

spiros:
Attached a version for SMF 2.

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

Or use this css (by Antechinus)


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

stylusss:

--- Quote from: spiros on December 17, 2012, 10:44:25 AM ---
--- Code: ---.inner a {
   display: inline-block;
   white-space: pre;
   overflow: hidden;
   text-overflow: ellipsis;
   max-width: 24em;
   vertical-align: bottom;
}
--- End code ---

--- End quote ---

Can you elaborate on this?

Arantor:
This is CSS you stick in the main CSS to trim it just in the theme rather than brute forcing it in the code, so it won't affect emails or similar but will in the browser.

The code will likely need to be changed for SMF 1's style and there are some issues with older browsers with it. There are also some odd wrapping issues under some circumstances.

Liam_michael:
Hi Arantor. I use this mod for SMF 1.x, but sometimes long URLs get trimmed in the emails sent to the user. So, when they open the email and click the link found in the email, the URL is http://whatever.com/index...something. In other words, it's not showing the actual URL of the link. Is there a way of disabling this mod so that links found in emails are not trimmed or are left the way they are? :-\

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version