Wedge

Public area => Features => The Pub => Features: BBCode => Topic started by: Nao on May 7th, 2011, 01:00 PM

Title: URL trimming
Post by: Nao on May 7th, 2011, 01:00 PM
Feature: URL trimming
Developer: Nao
Target: users
Status: 100% (complete.)
Comment:

A simple feature, but it's still nice. Thanks to JayBachatero for the inspiration. When you post a link by pasting the URL, Wedge will cut it off if it's too long. Also, if it's still too long to show even after cutting it off, it should be split over two lines.

:edit: This feature was actually rewritten in January 2013 to use JavaScript exclusively and allow for copy & paste. :)
Title: Re: URL trimming
Post by: DoctorMalboro on May 7th, 2011, 01:46 PM
Cutting it like in bit.ly or goo.gl or cutting it in the meaning of just seeing a piece of the URL?
Title: Re: URL trimming
Post by: Nao on May 7th, 2011, 01:56 PM
Yeah, just seeing a piece of it. Like in here, really.
http://www.thisisaverylongurl.com/and-a-very-long-path-i-m-telling-ya/

This should have been out-of-the-box in SMF2 really (considering that Jay was a SMF dev at the time he released his mod.) It isn't, so here it is in Wedge, rewritten to fit my own tastes.