Content last modified Monday 5 September 2016
hop to #bottom
Categories:
Author:
Current version:
1.4
About It:
Get it:
Rate it:
  • Helpful?
  • 4 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

txp_twitter

txp_twitter is a plugin which writes a tweet at your space at twitter, each time you write or edit a post.

The instructions to install this plugin are easy. First of all, you have to download the plugin and install it into your textpattern installation. Then you must edit the plugin to change the username and password in order to use your data from twitter and then, you must just activate it.

The plugin uses a library called curl that sometimes isn’t installed at the servers. But in my case, it was installed and it works fine.

Updated: The new release uses an extra field (custom_1) in order to know when a tweet has already been sent. You can change the extra field just editting the plugin for another extra field (from 1 to 10), but if you change it, you must provide a name to the extra field in the preferences of your textpattern installation (Admin > Preferences > Advanced preferences).

[Ruud: download link seems to be dead at the moment, plugin code pasted below]

# txp_twitter v1.4
# Sending Tweets using your Twitter credentials
# Fran Garcia
# http://www.frangarcia.net

# ......................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# ......................................................................

YTo5OntzOjQ6Im5hbWUiO3M6MTE6InR4cF90d2l0dGVyIjtzOjc6InZlcnNpb24iO3M6Mzoi
MS40IjtzOjY6ImF1dGhvciI7czoxMToiRnJhbiBHYXJjaWEiO3M6MTA6ImF1dGhvcl91cmki
O3M6MjU6Imh0dHA6Ly93d3cuZnJhbmdhcmNpYS5uZXQiO3M6MTE6ImRlc2NyaXB0aW9uIjtz
OjQ1OiJTZW5kaW5nIFR3ZWV0cyB1c2luZyB5b3VyIFR3aXR0ZXIgY3JlZGVudGlhbHMiO3M6
NDoidHlwZSI7aTowO3M6NDoiaGVscCI7czo0MDUyOiIjIFRoaXMgcGx1Z2luIHNlbmRzIGEg
dHdlZXQgYXQgb3VyIHR3aXR0ZXIgc3BhY2UuCiMgRnJhbiBHYXJjaWEKIyBodHRwOi8vd3d3
LmZyYW5nYXJjaWEubmV0CgojIC4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi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0FnSUdOMQpjbXhmYzJWMGIzQjBLQ1JqYUN3Z1ExVlNURTlRVkY5UVQxTlVM
Q0F4S1RzS0lDQWdJR04xY214ZmMyVjBiM0IwS0NSamFDd2cKUTFWU1RFOVFWRjlRVDFOVVJr
bEZURVJUTENBaWMzUmhkSFZ6UFNJdWRYSnNaVzVqYjJSbEtITjBjbWx3YzJ4aGMyaGxjeWgx
CmNteGtaV052WkdVb0pHMWxjM05oWjJVcEtTa3BPd29LQ2lBZ0lDQWtjbVZ6ZFd4MElEMGdZ
M1Z5YkY5bGVHVmpJQ2drWTJncApPeUF2TDA5cWJ5d2dhR0Y1SUhWdUlHVnpjR0ZqYVc4Z1pX
NGdaWGhsWXdvZ0lDQWdKSEpsYzNWc2RFRnljbUY1SUQwZ1kzVnkKYkY5blpYUnBibVp2S0NS
amFDazdDaUFnSUNCamRYSnNYMk5zYjNObEtDUmphQ2s3Q24wS0lqdHpPak02SW0xa05TSTdj
em96IjtzOjM6Im1kNSI7czozMjoiOGVhODQxMmMxNDI3ODY3MzgxOTkwOTFiNmJhZDVjNmUi
O30=
Article Request Count:

Archived [?]: Download link broken

Keywords/tags:
Initially released:
03.07.2007
Posted here:
03 Jul 2007
Article modified:
25 Jan 2012

If there is a comment form at the Information URL, you may want to leave your comments/questions there for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (18)

Sven:

Nice plugin, works great here. How would I include the posts title in the Twitter message? It would be nice to have the articles title wrapped in a permalink instead of “Look at this”

Hi Sven,

I have already uploaded a new version, which includes the title of the post instead of the text “Look at this”. Just download it and install it.

I hope you enjoy it!

Sven:

Great, thank you!

Would be great if the Twitter-MSG would only be send when creating a new Article, not every edit/update. How could i do that?

Yes Christian,

that would be great, but I don’t know how could I do this.

Maybe you can play with the data posted and the last mod in the select, but I’m not sure. Let me investigate about this, but if you find a solution, let me know it.

I’ve upload a new version of this plugin. The new version sends a tweet to our space at twitter.com, only when the article is a published a article and not in the other cases.

There is a new release of this plugin. In older release, everytime you made a modification to an article, a tweet was sent to your twitter account, but now, just one tweet is sent the first time you publish the article.

Joe:

Hi, Great plugin Fran.

How can I get it to post to Twitter when I post to Textpattern from XML-RPC?

Thanks!

ANIBAL:

hey fran buenisimo el plug! muchas gracias…
como hago para que se postee un Excerpt en twtter de mi post en el blog? saludos!!

Hola Anibal,

para hacer lo que quieres, debes editar el plugin desde la interfaz de textpattern y hacer lo siguiente:

1º) Cambiar $rs = safe_row(“ID, Title”, “textpattern”, “status=4 AND custom_1<>‘yes’ AND TIMEDIFF,LastMod)<‘00:00:30’ ORDER BY LastMod ASC”); por $rs = safe_row(“ID, Title,Excerpt”, “textpattern”, “status=4 AND custom_1<>‘yes’ AND TIMEDIFF,LastMod)<‘00:00:30’ ORDER BY LastMod ASC”);

2º) Cambiar postToTwitter(“frangarcia”,“llOE1978”,$rs[‘Title’].”: “.permlinkurl_id($rs[‘ID’])); por postToTwitter(“frangarcia”,“llOE1978”,$rs[‘Excerpt’].”: “.permlinkurl_id($rs[‘ID’]));

Eso es todo.

Dop:

Error

Warning: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘(now(),LastMod)<‘00:00:30’ ORDER BY LastMod ASC’ at line 1 select ID, Title from sitetextpattern as textpattern where status=4 AND custom_1<>‘yes’ AND TIMEDIFF,LastMod)<‘00:00:30’ ORDER BY LastMod ASC in /home/l/xxx/public_html/site/textpattern/lib/txplib_db.php on line 82

I had a problem with posting. I got in my Apachelogs only a “417 Expectation failed” error.
The following side gave me a solution “http://groups.google.com/group/twitter-development-talk/browse_thread/thread/7c67ff1a2407dee7”
So I had to ad “curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Expect:’));” to the curlopts and since that it works like a charme

psy:

Very nice plugin. But I was wandering if we have any option to use messy urls in the twitter post to avoid urls to be cut?

I think it depends on the way you’ve configured your links in the admin area. Do you show your links in a messy way?

This plugin does not appear to work anymore. However, in the forum I was helpfully pointed to arc_twitter, which seems to be working and is in any case very feature-rich.

The plugin is still working right. I’ve just written an article into my blog and it’s been sent to my twitter account (http://twitter.com/frangarcia/statuses/13837367193).

You just need to configure your twitter account in the plugin and it works like a charm.

Let me know if you have any other problem.

I’ve just uploaded a new version of the plugin, because there was a problem caused by Twitter and its API. Now, the data is sent by POST, not by GET.

Please, try, check it and let me know if there is any bug or feature you want to add.

Amor de Cosmos:

Is there any chance of updating this plugin withoauth? It now longer works (as of 31 Aug 2010) without it. It’s been a great plugin and, because I cannot upgrade to php 5 on one particular site, arc_twitter is not an option.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

Would you care to write a comment?

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.