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).









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:
Commented (7)
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!
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.
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site. Get a Gravatar.
Would you care to write a comment?