Obnoxiously simple WordPress plugin for Twitter (or, rather, a Twitter plugin for WordPress)
23 June 2009 3:08 pm
Installed Twitter Tools and mostly liked it except for the fact I couldn’t edit the tweet format without editing the PHP file, and so when upgrading I would lose this. It also did a lot more than I wanted, and I’m a fan of software that seeks to do as little as possible. I cooked up a very simple plugin that will, if you so choose, send a status update to Twitter on posting. Options include using TinyURL for shortening of your post’s permalink, and the ability to edit the format of the tweet itself.
You can download the plugin here. Let me know if it should suddenly explode or run off with your wife. ¶
11 Responses to Obnoxiously simple WordPress plugin for Twitter (or, rather, a Twitter plugin for WordPress)
dario on June 23rd, 2009 at 8:00 pm
hi..i just installed on my website (upload the files, activated, settings, ok) but dont twit when I post… there some specific task to do? the password file accept 16 chars?
dario on June 23rd, 2009 at 8:05 pm
using wordpress 2.8 btw
Wells on June 23rd, 2009 at 9:08 pm
Hey Dario- try downloading it again- I just updated the code to use the built-in WordPress network class- might work better. Please let me know.
http://wordpress.org/extend/plugins/easytweets/
dario on June 24th, 2009 at 1:02 am
hi wells, now is working =)
question… when the post is twittered is somethink like this:
BBLatinoBuscando OS? Visita http://os.blackberrylatino.com post title, http://tinyurl.com/kqnzrk permalink
could be better like this:
BBLatinoBuscando OS? Visita http://os.blackberrylatino.com post title,
http://tinyurl.com/kqnzrk permalink
so.. there is some chance to include a code maybe or anything to do put 2 text lines
Krom8 on June 30th, 2009 at 10:23 pm
After updating to easytweets v1.1 I got an error in my dashboard. I tried it on two sites and had the same problem. It may be related to another plugin or two, I’m not sure. The following message shows in the header section of the dasboard when plugin is activated. note:i’ve edited my directory names.
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /*/*/public_html/albums/wp-includes/class.wp-scripts.php:123) in /*/*/public_html/albums/wp-content/plugins/wordpress-automatic-upgrade/wordpress-automatic-upgrade.php on line 121
Warning: Cannot modify header information – headers already sent by (output started at /*/*/public_html/albums/wp-includes/class.wp-scripts.php:123) in /*/*/public_html/albums/wp-content/plugins/sidebar-login/sidebar-login.php on line 258
I really like this plugin and it’s really the easiest one of this type. I don’t know much about php so the error output doesn’t make any sense to me. Any help would be appreciated.
Paul Bonser on July 1st, 2009 at 1:52 pm
I ran into the same problem as Krom8 here.
For some reason, the do_item function in the WP_Scripts class is echoing out a tag, rather than concatenating it together with the stuff to be output, thus sending the headers before the session has a chance to be initialized.
I’m guessing easy_tweets requests a JS file somewhere, and that is causing the issue?
Paul Bonser on July 1st, 2009 at 1:54 pm
So, it suddenly exploded…
At least it didn’t run off with my wife.
Wells on July 1st, 2009 at 1:54 pm
Paul, yeah, I think I fixed it in 1.2- I was registering the SACK script for Ajax calls, which wrote out the script tag prior to html. All of which was unnecessary. Though it seems like it’s taking some time for the WordPress site to register that 1.2 is now the stable release.
Paul Bonser on July 1st, 2009 at 2:38 pm
Cool, cool. Glad to see it was fixed so quickly.
While I’m here, I’ve got a feature request: stop it from re-tweeting when I go back and edit a post, or optionally give an option to tweet a “edited post” message or some such…
Wells on July 1st, 2009 at 3:18 pm
Paul, it should save metadata for the post that it’s been tweeted when it successfully makes a post to twitter. And then when editing it shouldn’t do it again as the metadata option is set… is this not happenin’?
Paul Bonser on July 5th, 2009 at 8:06 pm
Hmm, it may have not happened at one point..perhaps when it was still messing up, I’m not sure..
Seems to be OK now..
ok, I’ll re-enable auto-tweeting now..
Leave a comment