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

Archives: Visit the Archives for more articles.

Comments Post Yours

There are 19 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.

  12. Any future development planned for this plugin?

  13. Then why not use the ugly permalink in wordpress then?

  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.

Great Indian Developer Summit 2009

I got a Press Release of the upcoming GIDS '09 and here is an excerpt. The summit's program covers Java, REST, Unit testing, Groovy, Spring, Struts 2.0, SOA, Cloud Computing, Web Services, JRuby, RoR, Ruby, JVM, ...21st Jan, 2009

The flourishing gun market in Pakistan

VICE Travel: Darra, Pakistanby Top-Notch112 (Via: Deep Green Crystals) 20th Jan, 2009

Angry Ringtone for iPhone and others

[audio:http://audio.brajeshwar.com/angry-ring-ring.mp3] The ANGRY RINGTONE for iPhone. (Click the PLAY button above!) Download * iPhone Ringtone (.m4r) * MP3 Ringtone (.mp3) * Zipped (both .m4r and .mp3) To use it as an iPhone Ringtone; just double click the file "angry-ring-ring.m4r" and it ...15th Jan, 2009

IIM Ahmedabad's Leverage 2009

Leverage, the Venture Capital and Private Equity Club of IIM Ahmedabad and the Centre for Innovation Incubation and Entrepreneurship bring to you the 1st edition of the Venture Capital and Private Equity Conference on the ...12th Jan, 2009

Fedora 10 Released

Let's talk history! Fedora was created in late 2003 as a Linux based Operating System which gives the users an admittance from anywhere in the world to the most up-to-date free and open source software ...28th Nov, 2008

View the Sidenotes Archive

Play the Penguin Game

Recommended

  • 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.
  • Forum Oinam’s technical discussion forum where developers and designers can discuss all technical topics.
  • ActionScript 3.0 Reference Flash/Flex ActionScript 3.0 Reference.
  • o! Just Me Of colorful cultures, entertainment, media, life hacks, music, books and movies from hollywood & bollywood.
  • Downloads All downloads, Free and Open Source.
  • 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.

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 949 Articles and 6,471 comments, contained within 22 categories and 1,497 tags.