Just a quick little tip here for those of you who are using the brand new version of Tweetie for iPhone [iTunes link].
If you are using Yourls, a great custom URL shortener (that I use all the time for my egord.in domain name), you can actually have Tweetie shorten your twitter urls using your custom domain name. Using the Yourls API, the process is simple.
In Tweetie’s settings (accounts~~>settings~~>url shortening~~>custom…), type or paste the following URL, replacing the text in all caps with your domain name, yourls username, and password (note: for this to work, you cannot have any characters in your username and/or password that are not letters or numbers):
http://YOURSITE.COM/yourls-api.php?action=shorturl&url=%@&username=YOURUSERNAME&password=YOURPASSWORD&format=simple
Then just click Save. You can also set your yourls installation to public (its in your yourls includes/config.php file), and then not include the &username and &password portions. As the yourls dev Ozh explained, you could also make a secret copy of yourls-api.php and make it public by removing the top line including the authorization information.
Hope that helps!
[update]: Added the portion about how special characters are not allowed in usernames & passwords (thanks @mirthlab).
[...] How To Use Your Custom Yourls Shortener with Tweetie 2 – Simple tutorial on how to use your self-hosted URL shortener with Tweetie 2. Yourls is a slick piece of software for hosting your own URL shortener. [...]
[...] Eine Sache die mir bei dem Script sehr gut gefällt ist das Vorhandensein einer API6. So kann ich beispielsweise über den iPhone-Twitterclient Tweetie (2), den ich vor kurzem hier getestet habe, auch von unterwegs solche Links anlegen. Details dazu gibt es beispielsweise im Blog-Beitrag How To Use Your Custom Yourls Shortener with Tweetie 2. [...]
Thanks a ton for this!!!
I installed YOURLS on my site the other day, I had spammers using it within 24-48 hours. I put captcha in place and it has stopped the bad guys. Check it out here live:
http://www.igxr.com
If you have any questions on how to setup captcha on it please feel free to contact me through my site.
Thanks for the comment John! I keep my yourls installation for personal use only so I do not have a spam problem, but I could see how that would be problematic. Nice work!
I copied the URL code on your page, pasted it into a text file and then replaced the host address, username and password. Then I copied this new URL and sent it in an email to my iPhone’s email account then on the phone copied the URL and pasted it into Twitter for iPhone (Tweetie). Somewhere along the way the %@ characters became %25@, which I didn’t realize, so for a while the shortening was simply not working with my custom domain. I took a close look at the URL inside Twitter for iPhone then discovered the slight change in the URL. Once I edited it to remove the unwanted characters it worked great!
Thanks for the page.