Tiny Link - a Wordpress plugin to create a TinyURL for your articles

Tiny Link is a Wordpress plugin that creates an alternate TinyURL link to your article or post permalink. This will be useful while sending hyperlinks in emails, typing on mobile devices, et al.

I was in search of a way to automagically get an alternate short link for the lengthy URL of my articles. I tried a plugin but somehow went kaput and never worked for me. I decided to write one for myself and came up with a very simple solution. - Tiny Link.

Well, Tiny Link is a Wordpress plugin that creates an alternate TinyURL link to your article or post permalink.

I hope this will be useful while sending hyperlinks in emails to avoid the word-wrap for lengthy article URLs. This should also be useful (as far as I can guess) to mobile device users so they will can type a shorter url to read an article.

TINY LINK

USAGE

The most straight forward usage would be to add this simple script

<?php TinyLink() ?>

to one of your template - “single.php”.

However, a slightly advanced usage will be, to first check if the plugin is installed, if yes, then execute this module. We can even give a direct link to it, so users can copy the link by right-clicking (Mac: Ctrl + Click) the hyperlink.

<?php if (function_exists('TinyLink')) { ?>
Tiny alternate link for this article: 
<a href="<?php TinyLink() ?>" title="TinyURL link to - <?php the_title(); ?>"><?php TinyLink() ?></a>
<?php } ?>

Feel free to give me your feedbacks, errors encountered, bugs founds, et al. If you wish to take it further, you’re most welcome to join the project.


Don't like it? There are lots of published articles, pick a random one.

oCricket

Brajeshwar posted this article on Sat, Aug 18th, 2007 at 3:14 am
Categorized under Technology and has the following tags

Prev Article: 60th year of India’s Independence

Next Article: Flash Player supports H.264 - the standard deployed in Blu-Ray and HD-DVD


Possibly Related Articles

Archives: Visit the Archives for more articles.

Comments Post Yours

There are 17 responses so far. You can follow any responses to this entry through the RSS feed. You can leave a response, or trackback from your own site.

  1. One of the cutest plugin out there ;)

  2. This is a fantastic blog. I wish I had known it much earlier.
    I blogged about you. Pl read it here.

  3. Is this an ‘SEO-friendly’ plugin?
    i.e. is this a 301 redirect?

  4. @Mutiny Design:
    No, and there is no reason to make it such. Tiny Link should be used as an alternative link to be used while sending links to somebody or to type on a mobile device or when you just need a shorter link. The main link should be used for the usual purposes - linkbacks, hyperlinking within your article.

  5. Frankly speaking, i don’t think that it is so useful. Just one more plugin to satisfy customers needs and wants.

  6. Very true. I needed something to get my job done and so, I came up with this plugin. I released it to the public, just in case somebody needs something similar.

  7. Are there any plans to update this to support WordPress 2.5?

  8. @K1DF0X
    I don’t remember anything complicated or un-usual that it should not work with Wordpress 2.5. Have you tried it? My feeling is that it should work.

  9. Hmm, the problem I have is once I have inserted the code into my template, the default text “TinyURL alternative…” appears but the actual TinyURL link isn’t there.

  10. @K1DF0X
    It works for me on both Wordpress 2.5 and 2.5.1. If you can show us your site, it will be easier to see the actual issue. Would you like to try the forum and post the necessary issue in the “Tiny Link” Wordpress Plugin Section.

  11. This is a great idea! I took the idea further with Tweet This, which caches the shortened URLs so they aren’t fetched on every page load, and taps right into Twitter’s API so your readers don’t have to copy and paste.

    Twitter has an API where anything that appears after the equal sign in the URL http://twitter.com/home/?status= appears in the post box. You may want to mention it in your description; you could easily use something like

    <?php echo ‘<a href=”http://twitter.com/home/?status=’ . TinyLink() . ‘” title=”Post to Twitter”>’ . TinyLink() . ‘</a>’; ?>

    to do that.

  1. Pings & Trackbacks Sites, articles & blog posts linking back to this article.

Post yours

Sidenotes

Quick notes, scribbles, somehow related to this website and to what I do. Or perhaps I'm just plain lazy to make them into a full article.

Top 25 Hottest Indian Web Companies

Note: User submitted article. Personally, I would advise not to take this video seriously. 21st Nov, 2008

India gets ready for Free and Open Source Software

Over the years, FOSS.in has attracted thousands of participants, and the speaker roster reads like a "Who's Who" of FOSS contributors from across the world. FOSS.in is a non-commercial event organised and run entirely by FOSS ...21st Nov, 2008

Cooliris for the iPhone

Cooliris is the browser extension that revolutionizes the way you view media on your computer. It is now available as an application for your iPhone! Cooliris for the iPhone allows you to search the web ...22nd Oct, 2008

Adobe releases Flash Player 10 (Mac, Win & Linux)

Adobe have released the shipping version of Flash Player 10 for Mac, Windows and Linux. More about Flash Player 10 * About Flash Player 10 * Get Flash Player 10 (Official Release version 10.0.12.36) * Download Debug and Standalone ...15th Oct, 2008

What a bad team can do to a Startup?

Flash/Flex developer, Orian Marx, started his Startup with much zeal and enthusiasm but had to give-in to failures because of none other but the team - the founders involved. His article outlined the story so ...13th Oct, 2008

View the Sidenotes Archive

Play the Penguin Game

Recommended

  • Ode to Apple Dedicated to Apple - Mac, iPhone, iPod, iTunes, Quicktime, Apple TV and all the awesome softwares for the Apple Mac.
  • o! Just Me Of colorful cultures, entertainment, media, life hacks, music, books and movies from hollywood & bollywood.
  • oCricket oCricket is about Cricket and people enthusiastic about it.
  • Not Safe for Work Ever clicked a link and felt embarrassed with the content in front of your co-workers? Ever caught unaware because the funny link your friend sent was a little beyond funny? Let’s minimize that with NSWF.
  • AS 2.0 Reference Reference for ActionScript 2.0 Programming Language used in Flash. Primarily stashed here for my own personal reference.
  • My Special Job My Special Job is a place where you can look for your weird necessities, strangely superb employees, when your need are more of those hackers, geeks, and ultimate rockstars in the Internet Technology.
  • ActionScript 3.0 Reference Flash/Flex ActionScript 3.0 Reference.

Download free Brajeshwar Wordpress Theme

Brajeshwar

Brajeshwar I firmly believe in keeping things simple, easy for users and I envison pushing the technical envelop time and again for the betterment of viable commercial and practical applications. More about me.

Brajeshwar's affinity with Adobe

My Photos

More photos on Flickr

Member of 9rules Network

Since its inception on 11th June, 2001, "Brajeshwar" has 892 Articles and 6,076 comments, contained within 21 categories and 1,329 tags.