News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

TrimUrl

Started by JayBachatero, August 18, 2006, 02:17:04 PM

Previous topic - Next topic

Eclipse16V

#120
Quote from: Nao/Gilles on December 02, 2009, 06:45:33 AM
I don't see any issues on my SMF2 install? Seems to work just fine...

I don´t find this two lines:

<file name="$sourcedir/ManagePosts.php">
<operation>
<search position="before"><![CDATA[ 'disabledBBC' => implode(',', array_diff($bbcTags, $_POST['enabledTags'])),
]]></search>
<add><![CDATA[ 'urlLength' => empty($_POST['urlLength']) ? 50 : (int)$_POST['urlLength'],
]]></add>
</operation>
</file>

<file name="$themedir/Admin.template.php">
<operation>
<search position="replace"><![CDATA[ </tr><tr class="windowbg2">
<th width="50%" align="right"><label for="autoLinkUrls_check">', $txt['autoLinkUrls'], '</label>:</th>
<td>
<input type="checkbox" name="autoLinkUrls" id="autoLinkUrls_check"', empty($modSettings['autoLinkUrls']) ? '' : ' checked="checked"', ' class="check" />
</td>
</tr><tr class="windowbg2">
]]></search>
<add><![CDATA[ </tr><tr class="windowbg2">
<th width="50%" align="right"><label for="autoLinkUrls_check">', $txt['autoLinkUrls'], '</label>:</th>
<td>
<input type="checkbox" name="autoLinkUrls" id="autoLinkUrls_check"', empty($modSettings['autoLinkUrls']) ? '' : ' checked="checked"', ' class="check" />
</td>
</tr><tr class="windowbg2">
<th width="50%" align="right"><label for="urlLength">', $txt['urlLength'], '</label>:</th>
<td>
<input type="text" name="urlLength" id="urlLength" value="', empty($modSettings['urlLength']) ? '50' : $modSettings['urlLength'], '" size="6" />
</td>
</tr><tr class="windowbg2">
]]></add>
</operation>
</file>


What is the right line and the line how i musst include?
I worked with:
SMF 2 in German

Shop:
SID Giessen

papdoc

Any news about the compatibility issues with 1.1.11 ?

spiros

Does it work with RC2?

digit

Quote from: Nao on September 23, 2008, 07:54:38 PM
Okay, found it... The bug is due to another bug in karl's AutoEmbed video mod. I'll have to find a solution myself, I guess.

I just realized that my trim url feature is no longer working - and I have no idea why....  what is the conflict exactly with the Aeva embed mod?

Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Nao 尚

That post is nearly two years old... I *most likely* fixed the bug eh, especially since I use TrimURLs myself ;)
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

JBlaze

Seems that yet another mod falls victim to AEVA :P
Jason Clemons
Former Team Member 2009 - 2012

Nao 尚

I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

JBlaze

Jason Clemons
Former Team Member 2009 - 2012

Nao 尚

Ah... You mean it's a killer mod ;D
Yes indeed, sir!
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

gimmiefreebies

Any update to making compatible with 1.1.11?  :)

spiros

Gives "fail" when testing with SMF2 Final. Anybody kind enough to update?

Gary

Of course it'd fail on 2.0. It's for 1.1. :P
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

spiros


Iomega0318

#133
Quote from: spiros on June 26, 2011, 07:15:47 PM
Anybody kind enough to update?
Anyone ever try to update this? I tried to install it but got an error on pretty much every call lol..
UOFreeshards.net
UOFreeshards.net 2.1 Aplha Test Site
"I believe in Christianity as I believe in the sun...
not because I see it but because by it I see everything else."
C.S. Lewis

Heed what I say, for it shall be mentioned only once.

Biology Forums

Wow, can't believe I overlooked this! :) Thanks

Biology Forums

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

spiros

#136
Attached a version for SMF 2.

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

Or use this css (by Antechinus)

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

stylusss

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


Can you elaborate on this?
For top-notch server quality and expertise, visit CoreISP.net

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.

Biology Forums

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? :-\

Advertisement: