Shoutbox

[RELEASE] TinyURL Script - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [RELEASE] TinyURL Script (/showthread.php?tid=75073)

[RELEASE] TinyURL Script by Volv on 06-05-2007 at 07:13 AM

Hello,
I've created a small & simple script which uses the TinyURL.com service to reduce the length of URLs (website addresses).

Where to get the script:
The TinyURL Script can be downloaded from the MsgPlus! Live Script Database at http://www.msgpluslive.net/scripts/view/303-TinyURL/

Download the TinyURL Script
Don't forget to rate it!

How to use the script:
The script can be used by typing (in a Conversation Window):

code:
/tinyurl www.msgplus.net
(www.msgplus.net can be replaced with any URL you wish to shorten)
Alternatively, you can access the script from the Script icon in the Contact List or in a Conversation Window:
[Image: TinyURL_screenshot.png]

Credits:
All code within the script was created by myself.
The TinyURL service itself (responsible for shortening the URL and redirecting users from the shortened URL to the original URL) is provided by Gilby Productions at http://tinyurl.com/

Download the TinyURL Script

Updates in v1.2:
- [UPDATE] The method of obtaining the "tiny URL" has been improved
- [BUG FIX] In conversation windows the /tinyurl command can be typed in any case (ie. you can write it in uppercase letters or any combination of upper/lower)
RE: [RELEASE] TinyURL Script by Eljay on 06-05-2007 at 07:59 AM

Sort of bloated for such a simple script really. (sorry :P)

Instead of using the standard form for creating the TinyURL, and then having to parse out the result, just use the API creating script.
e.g. http://tinyurl.com/api-create.php?url=http://www.google.com

This way, if the TinyURL guys change the formatting of the resulting page of the standard form, your script won't work any more. (Ok, they might change the API page too, but it's less likely)


RE: [RELEASE] TinyURL Script by Volv on 06-05-2007 at 08:06 AM

quote:
Originally posted by Eljay
Instead of using the standard form for creating the TinyURL, and then having to parse out the result, just use the API creating script.
Whoa :p Didn't know about that, probably should have spent some time researching first eh?

EDIT: Updated the script to v1.2. You can download TinyURL v1.2 by Clicking Here.
Read first post in this thread for list of improvements.
If you have v1.1 of the script you should automatically be notified of the update
RE: [RELEASE] TinyURL Script by Voldemort on 06-05-2007 at 05:09 PM

would be nice if  you could type "/tu www.iamalongurlwithabigpenis.com " and have it send the tinyurl link automatically :p


RE: [RELEASE] TinyURL Script by Felu on 06-05-2007 at 05:21 PM

Eljay made a long ago. Right?

See Eljay's reply to [Request] TinyURL Script :P


RE: [RELEASE] TinyURL Script by Eljay on 06-05-2007 at 05:30 PM

quote:
Originally posted by Felu
Eljay made a long ago. Right?

See Eljay's reply to [Request] TinyURL Script :P

Indeed, but that automatically replaces all URLs with TinyURLs, this script is kinda different. :P