I want to use Goo.gl as my url shortner which is actually extraordinarily easy using Marcos Esperon's Plugin Googl Generator. All I have to do is make a function call and it outputs the goo.gl link!
I have been trying to insert the function into your script and then call it using $thisposturl or $thispostlink as the input but it's outputting nothing so I dunno what I should try next. I'm semi-good with PHP but very new to WordPress Plugins.
I used this tutorial to help decide what to implement inside your script
http://geniusgeeks.com/2010/01/generate-goo-gl-short-url-without-worpress-plugin/
This is an awesome script, you've done a spectacular job!