MashhitDK commented on a Page, Tinyurl A URL  -  Dec 28, 2010

Well anyways nice work... and yeah it does indeed work... was just trying to show a other way to go about it.

First of all $strip($2) is pretty important in cases it's a link copied with color ect. not sure it will give the right link if you don't use strip. - But didn't test it...
And instead of using

http://tinyurl.com/create.php?source=indexpage&url= $+ $2 $+ &submit=Make+TinyURL!&alias=

you could use

$+(http://tinyurl.com/create.php?source=indexpage&url=,$2,&submit=Make+TinyURL!&alias=)

Looks cleaner I think... but the script does what it's suppose to ;D

  • And it's just another way to go about it.
    And regarding a checker... that would come in handy just in case...
    But it's not something I normally think of either...
on *:TEXT:!tiny*:#: { 
if (http !isin $1-) || (. !isin $1-) { msg # ERROR! - Might just be Me... but $+(,$strip($2),) doesn't seem to be a link ? | halt }
msg # Congratulations $+($nick,!) Your current url of $+(,$strip($2),) has been shortened at $+(2,http://tinyurl.com/create.php?source=indexpage&url=,$strip($2),&submit=Make+TinyURL!&alias=,) - Thank's for using the script! }

NOTE: Above script is written here... it's not tested ( should still work ) it's just an example on how to go about it.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.