Tweet This 1.6 lets you specify a custom URL service. Here are the text strings to enter for the seven URL services that have been removed from the plugin:
More will be added on 2009-09-01.
Tweet This 1.6 lets you specify a custom URL service. Here are the text strings to enter for the seven URL services that have been removed from the plugin:
More will be added on 2009-09-01.
Does your extension offer support for a custom install of http://yourls.org?
I have a custom service @ http://bpt.st and I want to use your plugin on the blog for the same site, http://blog.bpt.st
There is an API for yourls that supports GET, but when I enter it in to the config, it doesn’t work. It may be because they are on the same server, not sure.
My custom url to the API is http://bpt.st/yourls-api.php?action=shorturl&format=simple&url=LONGURL and when I type it into my browser (replacing the [LONGURL] of course), it returns the plain text shortened link as expected, but it doesn’t work with your plugin.
Could it be because it is on the same server? If so, (and assuming you don’t want to add this), what can I edit in your plugin file to make it available? Yourls has it’s own wp to twitter plugin, but I like the fact that yours has all the extra services as well.
Hi
Thanks for the plugin.
I am using “Pretty Link” plugin to generate short URLs for posts on my domain name itself (cyberbrahma.com). The plugin’s web site is this.
Kindly tell me how to use such created URLs automatically with Tweet This.
Thanks and regards
S.K
You can’t. The custom URL service is only for public short URL services with a public API (no authentication except HTTP GET). I’d have to add code to support the Pretty Link plugin. I’ll consider it.
Thanks for your response, Mr. Thripp.
The following is the response from the author of the “pretty Link” plugin:
//Since Tweet This is a WordPress plugin, the best thing it could do is access my API directly (no need for get or post — it’s a simple function call in PHP).//
I thought this info may be useful to you for integration of the two. Pretty link URl is this:
http://blairwilliams.com/pretty-link/
I like the ease of using Tweet This and I’ll be happy if I could use a customized short URL on my domain for Twittering with that.
Thanks and regards
S.K
You’re welcome! I know that. I meant that the custom URL service code is only for HTTP GET requests. Obviously you wouldn’t want to make one of those across the same server. But that would be the only way for you to use Pretty Link in Tweet This now before I update the plugin.
Thanks again.
I’ll wait!! 
S.K
I’ll see what I can do in Tweet This 1.6.2 or Tweet This 1.7… it will be sometime in October… sorry to make you wait so long.
Can you add the shortening site http://offto.net read more about how it works at http://secretmarketinglinks.com/2009/04/26/html-redirect/
No. There’s no API. If there was, it would have to be available through an HTTP GET request and output plain-text short URLs for me to add it to this list.

Donald Gilbert at 2009-12-03T16:46:21.Also, I just installed it on another blog that is on a different server (http://blog.reformu.com ) to test it there - and it didn’t work either. So I don’t think that the shortening service being on the same server is the issue.
[REPLY TO THIS]

Donald Gilbert at 2009-12-03T17:18:52.Ok - couldn’t wait for a reply, but I was able to do some hacking, although I would still like an official release with the issue fixed (if we can even determine what the issue is.)
What I did is edit the tweet-this.php and directly placed in the bpt.st api link code.
[code]
case ‘custom’:
$url = tt_read_file(’http://bpt.st/yourls-api.php?action=shorturl&format=simple&url=’ . $purl);
// $url = tt_read_file(str_replace(’[LONGURL]‘,
// urlencode($purl), tt_option(’tt_custom_url_service’)));
break;
[/code]
And that did the trick.
One other question, assuming you don’t want to update your plugin to support this properly, seeings as your plugin is GPL, could I add support for http://bpt.st and release it on my blog? (I wouldn’t submit it to WordPress.org) I know you are mainly just supporting the large URL shorteners, but I would like to see this work as well.
[REPLY TO THIS]

xdreamwalker at 2010-04-26T23:39:58.Donald,
Where you able to get this to work? When I use the code you have there I get an error:
Parse error: syntax error, unexpected ‘:’ in /home/content/x/d/r/xdreamwalker/html/wp/wp-content/plugins/tweet-this/tweet-this.php on line 221
Am I missing something?
Thank you.
[REPLY TO THIS]

Donald Gilbert at 2010-05-01T00:12:41.I did get it to work. I can send you the file if you would like. Email me @ mactimize at gmail dot com an I’ll send it over.
[REPLY TO THIS]