WooThemes

The WooThemes Blog

All the latest news and announcements, straight from the WooThemes HQ!

Subscribe

Framework’d: URL Shortening

32

by Adii Rockstar in Development

We have just completed the roll-out of a nifty, new feature to the WooFramework, which now includes support for URL Shortening. The basic idea is to offer you a template tag which would output a shorter URL – currently only supports TinyURL (default) and bit.ly (with your API key) – which you can then publish as added meta on your posts.

This functionality was inspired by the implementation thereof on various Tumblr-powered sites (for example: Matthew Buchanan). The benefit of publishing a shortened URL is in minimizing the amount of time that your readers will need to link to your content (i.e. increasing their convenience). So it’s a pretty nifty feature to have we believe! :)

As mentioned, this functionality is available in the WooFramework now and we’ll soon be publishing a little tutorial with regards to the backwards integration thereof. Both Cinch & Slanted have been updated to include the backend functionality, as well as the publishing of “Short URL” links in the front-end.

Too Easy

Here’s a little preview of the backend:

WooFramework: URL Shortening Settings

And this is what the function (in the front-end) looks like:

Short URL

Instead of thus using a standard WP template tag for the link, we’re now just using one function:

What do you think?


Tags: , , ,

32 Responses to “Framework’d: URL Shortening”

  1. Alexander White
    8 March 2010 at 9:56 am #

    Nifty feature, but I can’t really see the point of this feature. The main feature (minimising time for people to share the link) is already pretty short (i.e., cut and paste). In my view, a built in “tweet this” feature would be welcome.

    • Adii Rockstar
      8 March 2010 at 9:59 am #

      This is just the first steps really; we will be building some additional functionality on top of this soon (i.e. Tweet This).

  2. Stefan
    8 March 2010 at 9:56 am #

    Nice solution.. but for what reason should one use a encrypted URL in a website? I mean, it can’t be for length, because a website isn’t restricted to 140chars.

    • Adii Rockstar
      8 March 2010 at 9:59 am #

      It is actually just for convenience when one of your readers would like to quickly share that link elsewhere.

      • Stefan
        8 March 2010 at 10:08 am #

        Thanks for your (as always) fast reply, Adii. I admit i haven’t thought about that point.

  3. Adrien Crivellaro
    8 March 2010 at 10:08 am #

    I’m dreaming about a feature including URL shortener to my own domain to preserve SEO: http://mydomainwithoutwww.com/ur454 :)

    But nice work !

    • Brian
      8 March 2010 at 11:22 am #

      There’s a plug-in for that!

      • Adii Rockstar
        8 March 2010 at 3:46 pm #

        Well now it’s in the WooFramework as well! :)

  4. Jono
    8 March 2010 at 10:47 am #

    I like the feature (it’s convenient for what it does, and it’s one more thing that Woothemes framework provides, great), but I don’t see how it would fit into a regular template; most Twitter clients these days already do URL shortening automatically, and it’s not SUCH an issue on IM and mail as it may have once been.

    I hope people don’t stat using this as a substitute for the proper permalink. That would cause innumerable redirects when engines crawl the website, not to mention each click through to other posts.

    • Adii Rockstar
      8 March 2010 at 3:56 pm #

      Nah, I don’t think it’ll ever replace permalinks, as they have great value for SEO.

  5. Geir Ellefsen
    8 March 2010 at 12:33 pm #

    I think it would be cool to have domain.com/?p=n or just domain.com/%postnumber as urlshortener for short domains.

    For example for my blog I could use http://geir.me/1, geir.me/2 etc, would be very good for sharing stuff.

    A simple fix could be http://geir.me/?p=1 and so on.. Any smart ideas on how to use “default WP url” as short url (..but still use pretty URLs for WP)?

    • Adii Rockstar
      8 March 2010 at 3:53 pm #

      Mmm… This is a pretty cool idea actually. Just a little more custom functionality which adds the flexibility for you to add any base URL as the short URL. Will talk to the WooTeam about it! :)

      • jean-philippe Gams
        8 March 2010 at 5:12 pm #

        This is just great !

        And for some of us using twitter it will be great to have people tweeting the article using the same short URL instead of having a different one for each user twitting an article.

        I can definitely see use for this !!

        perfect !

        • Jason
          9 March 2010 at 5:28 pm #

          And since you created the bit.ly link with your credentials, you’ve got analytics on top of that. I’ve seen the http://yourdomain.com/ I like that format too, as long as your domain is short…

      • Dave
        9 March 2010 at 8:17 am #

        This makes sense to me too. I have my own URL shortener service using a specific domain and Pretty Link, and I know lots of people use Pretty Link on their own sites to create vanity links that redirect elsewhere, for various reasons including tracking.

  6. Joe
    8 March 2010 at 4:28 pm #

    Yes, this is a good idea, but I want to know if this is good for seo or not.

  7. Rob Barra
    8 March 2010 at 5:52 pm #

    Who can I talk to about getting Linkee.com (the service I run/own) into there? I’m sure we’d probably be happy to write the code for you if you’d want to include it.

    Or can you make it more extensible to support other services similar to the way that Tweetie does it on the iPhone? Then you won’t have to handle a myriad of requests for this functionality.

  8. Florian
    8 March 2010 at 11:00 pm #

    Could you please integrate YOURLS (http://yourls.org) into your framework as well?! :)

  9. Matt
    9 March 2010 at 8:50 am #

    Every blog running the WP.com stats plugin already has WP.me short URLs enabled and exposed in both their dashboard (Get Shortlink button) and in their head as rel=shortlink. You should support that for people who have it active.

    • Adii Rockstar
      9 March 2010 at 10:10 am #

      Thanks for stopping by Matt! :) And we’ll definitely add support for WP.me, especially considering that it is already “built-in” to an extent.

      • Matt
        9 March 2010 at 10:13 am #

        Groovy! I think there’s even a standard API for shortlinks but I’ll double-check on that.

        • Mohak Gambhir
          9 March 2010 at 4:32 pm #

          Just dropped by to say hello to Matt and Adii. Great to see the original founders of WordPress being active participants in 3rd party extensions community/companies. The beauty is Woothemes itself works with a collaborative team, and is very open about customisation, hacks and is now a platform in itself. Much like how wordpress has seen itself growing. From an app to a platform.

          Three cheers to WordPress and WooThemes!

          • Matt
            9 March 2010 at 6:31 pm #

            I think it’s fantastic to see GPL-based businesses thriving like WooThemes is and also becoming involved in the core development process. It’s a virtuous cycle that grows the entire market and as WP does well so will Woo.

        • Ryan Boren
          9 March 2010 at 10:33 pm #

          There is a standard shortlink API now that this thread has reminded that I was supposed to add it. See ticket #10640. Basically, it provides a wp_get_shortlink() functions that does pretty much nothing by default. It exists so that plugins can make it useful. Themes then have a consistent function they can use to get shortlinks while allowing all of the shortlink generation to be handled by whatever shortlink plugin is installed. Feedback appreciated. I’ll be updating the wp.me shortlink handling in the stats plugin to accommodate this new API.

          • Adii Rockstar
            10 March 2010 at 2:30 pm #

            Awesome & thanks for the note Ryan. Will definitely get Jeff onto this as soon as we’re back from the slopes.

          • jeffikus
            15 March 2010 at 9:24 am #

            Thanks Matt & Ryan – great to get your input! Will check it out asap.

  10. Jauhari
    12 March 2010 at 3:24 am #

    Wonderful idea…

  11. Jesse
    12 March 2010 at 3:34 am #

    I like the idea of having this built in.. saves me from putting it in myself… I have been using pretty much the same thing on my site which started life off as Typebased. I have a little social networking thing on the top left of the page (hidden until you scroll down) that uses it for my retweet image.. Its handy, efficient and has a few useful purposes.

  12. Jesse
    12 March 2010 at 4:55 am #

    PS.. one more thing I forgot, I also use this inside my “drag image to share” javascript.. works great to provide a short url for that too.. endless things this could be used for.

Trackbacks/Pingbacks