Twitter updater


UPDATE: Please head on over to the new home of my plugin: TWITTERUPDATER.COM this post here will not be updated any longer!!!

So, I found this cool plugin posting updates to twitter once you wrote a new blog post (or edited an old one). It’s pretty nice and can be found on the authors, Victoria Chan, site here (v1.1).

Jonathan Dingman then released an update adding tinyurl support (v2.0) which can be found here.

I just edited this v2.0 and replaced the tinyurl-support with support for the new url-shortening service ZZ.GD which results in even shorter short-urls saving more space in the tweet in case a post title is longer…

My new version (v2.07.1) can be found here (please read edits below for more information!!!): Twitter Updater v2.07.1

Known Issues:

  • None atm

Feature requests:

  • Possibility to include post’s category in tweet

Installation:
1. Download the plugin (see above link.)
2. Unzip the compressed file to your hard drive.
3. Upload the “twitter_updater” folder to your wp-content/plugins folder.
4. Browse to the Plugins page under wp-admin and activate the plugin.
5. Setting the options: Browse to Manage->Twitter Updater.
6. On this page, you can set any options you would like to.
7. IMPORTANT: Make sure you enter your Twitter username and password, then click on “save login”
8. That’s it! Now your Twitter.com status will be updated every time you publish a new post.

Edit (July 15th 2008): Just a quick note…the recent release of WP 2.6 has messed something up. While the plugin continues to work fine in WP version 2.5.1 and older, it keeps firing two updates (one with an invalid zz.gd-short-url) in WP 2.6. I’m going to investigate…stand by for news…and hopefully a quick fix.

Edit #2 (July 15th 2008): I’ve identified the culprit…WP2.6 uses post-revisions (saving multiple instances of the post using autosave)…hence the multi-tweet…working on a fix now…

Edit #3 (July 15th 2008): It’s indeed the post-revisions thing, but the quick workaround I tried (disabling post revisions after all) has had some major side-effects (namely edits of posts were not saved anymore)…so I really need to address this issue by checking the post status and ignoring revisions…fix probably coming tomorrow…for the time being please just manually delete the first auto-tweet.

Edit #4 (July 17th 2008): Sorry about the delay, but my computer fried itself today, so I had no time to fix it yet…exciting news forthcoming…as hopefully the fix…stay tuned.

Edit #5 (July 17th 2008): This little plugin has it’s own twitter source parameter now…so it’ll say “from Ingoal’s Twitter Update” instead of “from web” from now on…you can grab the latest version, version 2.02 above…version 2.03 with the bugfix (double-tweet) is still forthcoming…

Edit #6 (July 22nd 2008): Sorry about the delay…but I had something else going on, so it took me a while to write the fix. I deleted some of the options, from now on out you’ll have the update choice to auto-twitter when posting a new post (with or without link using zz.gd) and auto-twittering when editing old posts…that’s it. Compatible to WordPress version 2.6! So if you’re running WP 2.6, please update to version 2.03!!! …and if you’re running WP 2.5.1 or older, please continue to use version 2.02!!! Hat tip to microkid for his hint about identifying WordPress post revisions and auto-saves!!!

Edit #7 (July 27th 2008): Fixed the post-title issue. In the prior version post titles were truncated if they included an ampersand ( & )…this is fixed now…please update.

Edit #8 (July 29th 2008): Introduced alternative method to retrieve the shorturl from zz.gd (using curl)…please update if you had problems (error message, empty shorturl) and make sure you have a look at the twitter updater page (manage) -> check the new checkbox! If you didn’t have problems you don’t need to do anything…

Edit #9 (August 04th 2008): Introduced a cascading in the shorturl generation. After zz.gd was down the last two days due to server issues, ppl using the plugin were stuck with empty shorturls. To rectify that situation and keep it from happening in the future the cascade of zz.gd — tinyurl.com was introduced. If zz.gd is down, the shorturl will be generated using tinyurl.com. Other cascades might be added in the future, but for now, this one seems to be more than enough.

Edit #10 (October 18th 2008): So…Marco “Saphod” Luthe put up a modded version of the 2.06 version that fixes the future post (and save post) issues. I took the liberty to rename his modded version 2.06 to version 2.07 and I’m officially releasing it here. Thanks again Marco! All you users and readers out there feel free to drop by his site to thank him for the fix…and happy tweeting/twittering….

Edit #11 (November 1st 2008):Corrected tinyurl api url, so that if you’re using tinyurl instead of zz.gd you’re getting the correct short-url…

110 Comments so far

  1.   Gravatar   Sascha on July 10th, 2008

    How about support for bit.ly ?

  2.   Gravatar   AJ on July 11th, 2008

    Hi,

    thanks for the mod, however i’m still getting the same problem.

    All my post are appearing as http://tinyurl/…. While the link is correct it does not seem to show the title of my blog post.

    Any help on this would be great.

    Thanks much!!
    AJ

  3.   Gravatar   Ingoal on July 13th, 2008

    Sascha: Well, as they offer an api, it would be no problem to rewrite…but as the domain-name extension is >4 I’m not keen on using it…if you want to have that support, just rewrite the code yourself please.

    AJ: Can you give me your twitter-name? Then I can have a look…thank you.

  4. [...] now on tweets coming via my WordPress Plugin will show it…nice [...]

  5.   Gravatar   kopper on July 23rd, 2008

    Loaded the 2.03 update to my WP 2.6 this morning, then posted a new blog entry and got the following error:

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/.alan/jkopp/garagepunk.com/wp-content/plugins/twitter_updater/twitter_updater.php on line 87

    Warning: file_get_contents(http://zz.gd/api-create.php?url=http://www.garagepunk.com/2008/07/23/mystery-action-32/) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/.alan/jkopp/garagepunk.com/wp-content/plugins/twitter_updater/twitter_updater.php on line 87

    Warning: Cannot modify header information – headers already sent by (output started at /home/.alan/jkopp/garagepunk.com/wp-content/plugins/twitter_updater/twitter_updater.php:87) in /home/.alan/jkopp/garagepunk.com/wp-includes/pluggable.php on line 770

    When I checked Twitter, the update was posted but there was no URL. Help?

    Thanks!

  6.   Gravatar   Andy on July 23rd, 2008

    Thanks so much for this.

    I think the title needs to be urlencoded so that characters don’t show up escaped in Twitter – e.g. http://twitter.com/ahfow/statuses/866071126

  7.   Gravatar   Ingoal on July 24th, 2008

    Kopper: Well, the first warning says it all url file-access is not compatible with your server…the only way this could work then is if I rewrote the plugin to use curl instead…on another note: did you have the prior version running (with WP 2.5.1) or is this the first install?

    Andy: Good hint…I’ll get to it when I find the time…

  8.   Gravatar   kopper on July 25th, 2008

    The prior version was working fine in WP 2.5.1, no problems at all. Then I upgraded to WP 2.6 and it started double-posting, so then I switched to your update and now I’m getting that error each time and the tweets are posting without URLs, so I have to logon to Twitter manually, DELETE the bad tweet, get the shortened URL from tinyurl.com, and post an update myself. I won’t be doing this for long, I’m afraid, before I just deactivate the plugin entirely.

  9.   Gravatar   kopper on July 25th, 2008

    Another thing I’ve noticed is that if you have an ampersand ( & ) in your post title that the tweet gets cut off right before it. In other words, something like “Get Drunk & Play Records” (the name of one of our podcasts) gets shortened to “Get Drunk ” and nothing after that is included in the update. So you might want to alter this to allow for special characters.

  10.   Gravatar   Ingoal on July 25th, 2008

    Hi there again kopper and thanks for your feedback. As for your problem

    1.) The error: that doesn’t make sense, there was nothing altered in or around the line that is quoted in the error message, which leads me to believe that the server configuration has been altered (knowingly or due to an update or something)…this error is thrown because the parameter “allow-url-fopen” is off in the php settings…so the only alternative would be to use another way to get to the shortened url (e.g. via curl)…I would have to write an alternative version for this…

    2.) The escaping of characters…jeez…why can’t ppl just have normal titles ;) …but seriously, I’m on it…new release coming soon…

    3.) “I won’t be doing this for long, I’m afraid, before I just deactivate the plugin entirely.” – Well…too bad…this isn’t one of my main projects, so I’ll get to it, when I get to it…if that’s not fast enough (usually under a week from report to fix)…then I can’t help it…it’s not like you payed for this or something ;)

  11.   Gravatar   Twitter updater fixed | SaigonNezumi.com on July 27th, 2008

    [...] finally, no more double posting from my blog to my Twitter account.  Twitter updater was updated this week with a [...]

  12.   Gravatar   SaigonNezumi (Kevin) on July 27th, 2008

    Thanks for the update. It resolved my double posting headache.

    Can I remove ZZ.GD from the plugin update? I prefer to use my domain.

    Thanks again for a great fix.

  13.   Gravatar   Ingoal on July 27th, 2008

    Hi there Kevin…no doubt…you can edit as you please, it’s a free web…although we like if “our” solution is used ;)

  14.   Gravatar   SaigonNezumi (Kevin) on July 27th, 2008

    Actually I like your solution. I think I will keep it :)

  15.   Gravatar   Microkid on July 28th, 2008

    Hi,

    Glad you nailed the problem with the revisions :)

    Good luck with your plugin!

  16.   Gravatar   Nicki on July 28th, 2008

    Love this plugin, have you considered listing it in WordPress’ plugin directory so users are automatically notified of updates in the WP Admin panel? :)

  17.   Gravatar   Ingoal on July 29th, 2008

    Microkid: Thanks :)

    Nicki: Good idea…I shall do that soonish…

  18. [...] actualizaba dos veces cada vez que publicaba una nueva entrada en mi blog. Eso lo resolví con un plugin manoseado/mejorado por [...]

  19.   Gravatar   Bruce on July 29th, 2008

    I’m getting the same error as kopper posted above (except line 87 is line 100 in my case) using 2.0.4 with WP 2.6. I had “Link title to blog” checked, which produced this:

    Published RouteBuddy To Go for your iPhone ( ) on bioneural.net

    I assume the “()” is where the link should be?

  20.   Gravatar   Ingoal on July 29th, 2008

    Hi Bruce,

    yeah, that’s where the short-url should be…could you check the parameter in your php server config please (as commented above – “allow-url-fopen” )…chances are that this parameter is off…and that’s causing the error.

    There are basically two ways to “fix” this…

    1.) turn the option on…
    2.) get another version of the plugin which uses another method to get the shorturl (e.g. curl) – this would require me to rewrite the plugin to use curl…(implying that curl is available on your server)…

    I’m def thinking about doing it…maybe with an option in the admin-panel to switch between the methods (depending on your server config, if “standard” works – fine, if not – switch to alternative version)…this way there would be no seperate branches…hmm…stay tuned…

  21.   Gravatar   Bruce on July 29th, 2008

    (Ding! Lightbulb comes on) Ah yes Ingoal, that makes sense. Back in ‘06 I was trying to get an old plugin working and my then host Dreamhost told me:

    We’ve purposely disabled URL access to php system functions (such as copy() open() etc.) because of security and performance problems. We have replaced it with cURL

    I’m now with (mt) who take the same approach. So your “Might not work on some hosts!” is more like “Will not work on most hosts!”.

    Although I could edit php.ini to enable ‘allow_url_fopen’ I don’t want to open my server to code injection attacks. The (mt) article mentions $_SERVER['DOCUMENT_ROOT'] as a possible alternative to allow_url_fopen (aside from cURL); is this something worth looking into (my PHP is rudimentary I’m afraid)?

    Meantime I’m wondering if simply unchecking “Link title to blog” will allow me to continue using this version (without the PHP warnings) to send linkless updates. Guess I’ll have to blog something to find out ;-)

  22.   Gravatar   Ingoal on July 29th, 2008

    Bruce: Either that or you update to the new version (v2.05) which I just hacked…make sure you visit the twitter updater manage page and check the alternative short url retrieval box…that way it’ll use curl instead of fopen to retrieve the shorturl…hopefully that will solve your problem (and anyone else’s for that matter)… :)

  23.   Gravatar   Bruce on July 29th, 2008

    Great; the cURL option in 2.05 embeds the ZZ.GD URL without throwing errors when fopen is disabled. Pat yourself on the back Ingoal :)

  24.   Gravatar   Ingoal on July 29th, 2008

    Good to see that it works fine :)

    Now off to fix the comment error here on ingoal.info…sigh ;)

    Edit: Done, it was an out of date plugin (namely Sitemap Generator)…so the comment issue is fixed now :)

  25.   Gravatar   Charles on August 1st, 2008

    Great plug-in. I tried a couple of these, and yours is the best. One of the others conflicts with one of the other scripts in my theme.

    How hard would it be to incorporate the Category into the tweet? I would like for mine to say “Charles posted to design: Name of Post Here”.

    I wish I knew php…. Let me know!

  26.   Gravatar   Ingoal on August 1st, 2008

    Hi there Charles…and thanks, I’m glad that you like the plugin. As for the category: well, it wouldn’t be that hard I guess – just another parameter – BUT that being said, it’s going to be trickier when there is more than one category associated with the post…in that case a construct of “Custom text Category Post-title shorturl” will certainly be too long for the 140 characters…so I’m unsure if that’s really a good option…

    I think I should start a request-list to see what ppl would love to see and then I can see for myself if and when I’m going to implement those requests…

  27.   Gravatar   soshibi on August 6th, 2008

    Hi there,
    great job.
    My problem with double tweeting is solved.
    But I have another question.
    In my website ( http://www.parsnewz.com/blog ) I use three languages and for Tweeter it makes sense to update only English posts.
    Have you any idea how to switch other posts off to be updated automatically, maybe something like IF statement in php code?
    Thanks.

  28.   Gravatar   Ingoal on August 6th, 2008

    Hi there and thanks. As for the switching off non-english updates…hmm…I’ll have to think about that…

  29.   Gravatar   David Parkinson on August 6th, 2008

    Ingoal, nice plugin idea you have here. I’v installed it and i’m having a few problems with it. I’m using Wordpress 2.6 and version 2.06 of your plugin.

    Basically it is not posting to twitter everytime i make a blog post, i dont make my blog post go live as soon as i’ve written it, it goes live at a later date, could this be the problem?

    Also when i save my twitter username and password, is it normal for the password field to be blank once saved?

    Many thanks, David.

  30.   Gravatar   Ingoal on August 6th, 2008

    Hi David. Well, it should handle scheduled posts just fine (although I didn’t do any extended testing since version v2.04)…are you sure the tweet isn’t fired once the scheduled post appears?

    As for the twitter login details: hmm, not really, it should display the password as a line of black dots…

    Sidenote: could you please write a test-post (that appears immediately) and check if the tweet is posted…if that’s not the case this issue is unrelated to scheduled posting and may show “problems” with the plugin install…

  31.   Gravatar   David Parkinson on August 6th, 2008

    Hi Ingoal. Many thanks for your reply. It’s for my Playstation blog over at TalkPlayStation.com. I’ll do a test now.

  32.   Gravatar   David Parkinson on August 6th, 2008

    Ok, i’ve done an extensive test and it seems to be a problem with the plugin saving my password. I went into the code in twitter_updater_manage.php and manually input my password into the value=”" field, but for security reason i cannot allow this.

    http://twitter.com/talkplaystation

    Is there anything you can do? Thanks, David.

  33.   Gravatar   David Parkinson on August 6th, 2008

    Sorry about all the comments. I’ve fixed my problem by adding update_option(‘twitterpw’, $_POST['twitterpw']); to twitter_updater_manage.php.

    Around line 31-32. This has now fixed the problem and is working for me.

    Thanks again.

  34.   Gravatar   Ingoal on August 7th, 2008

    No problem…

    Hmmm, weird, you’re the first to report this problem…worked so far on all my blogs and it seems on the others’ blogs as well…hmmm…

    Side note: So you replaced the “encrypted” with this “cleartext” one, right? Hmm, so maybe there’s a problem with the base_64 encoding on your server…who knows, tough to say…but as long as this solution works for you, it’s fine with me :)

  35.   Gravatar   David Parkinson on August 7th, 2008

    Ingoal, thats exactly what i did and then i called the php in the value=”".

    The plugin is working fine now apart from one thing is that when i schedule a post to go live at a later date it posts it to twitter when i click publish instead of posting it at the future date.

    Thanks, David.

  36.   Gravatar   Ingoal on August 7th, 2008

    Okay, that’ll have to go on the “it’s not a bug, it’s a feature”-list for the moment ;)

  37.   Gravatar   soshibi on August 7th, 2008

    Hi again,
    I’ve posted above because of preventing non-english updates.
    Can I Update only a certain category?
    Can I put a code something like
    “if((publish)&&(in_category(3))){ twit(); } ” ?
    P.s. it is just a thinking.
    Thanks

  38.   Gravatar   Ingoal on August 7th, 2008

    Well, not a bad idea and something along those lines might work…although nowadays the category id must be retrieved from the terms/term_taxonomy/term_relationships tables…so the function would have to be a little more sophisticated in the background than you might think….unless there is a standard-function for that (which I didn’t check yet), I’ll have a look an let you know…but it could take a while…

    Edit: *lol* now I see that the function you’ve mentioned really is a standard function of wordpress…my bad…so if you’ve got the category id, this should work….can you edit it on your own or do you need help?

  39.   Gravatar   soshibi on August 7th, 2008

    Hi,
    Thanks for reply so soon.
    Well I need help cause I don’t know where to put the code.
    I tried to change the line 103 in twitter_updater.php
    to:
    “if($_POST['publish'] == ‘Publish’ ) && (in_category(10){” .
    But it did’nt work.

  40.   Gravatar   Ingoal on August 8th, 2008

    I’ll have a look tomorrow…my first question is though: are you sure that category 10 is the right one (where did you get that info? from the db)….

  41.   Gravatar   soshibi on August 8th, 2008

    Hi,
    “in_category(any_number)” is made by Wordpress and in my case number 10 ist Headlines( my Category at my news Website).
    Categories begin by 0 and goes on. It depens on how many Categories you have.
    I would like to update all News wich I make as in category Headlines to twitter.
    I hope I could make me understanding.

  42.   Gravatar   Ingoal on August 8th, 2008

    *lol* I know how categories are used in wordpress…I was just wondering where you had that information from (probably the admin-panel -> manage categories, right?)…

    Anyway…I think the thing is that in_category works only for posts that already have a category assigned (e.g. that are already saved)…so I’m not totally sure if that function will really help in the process. What you could try though is saving the post before publishing it…let’s see if that makes any difference, if not I’ll have to dig around a little, which I won’t have time for today…

  43.   Gravatar   Twitter Updater for Wordpress on August 22nd, 2008

    [...] that was forwarding traffic to this new domain.  I have upgraded to a different plugin that I got here, and I have removed the old domain forwarding.  I am now ready to test the new Twitter updater to [...]

  44.   Gravatar   Marco Luthe on August 22nd, 2008

    Hi,

    I haven’t installed the plugin, yet – but I am very curious about it and will do it later when I am home.

    I’ve just read the comment about future scheduled posts by David (http://www.ingoal.info/archives/2008/07/08/twitter-updater#comment-11059).

    I wonder what happened if you replaced the “save_post” hook with “publish_post”?

    Just a guess.

  45.   Gravatar   Ingoal on August 22nd, 2008

    Hi there Marco…hope you enjoy the plugin…

    As for the scheduled post thing – I’m on to it, but I didn’t have the time to really work on the plugin the last few days/weeks…just watch this spot…

  46.   Gravatar   Marco Luthe on August 26th, 2008

    Hey there, I installed the plugin today and replaced “save_post” with “publish_post” and it seems to work well so far. Nice.

    The only problem is that a ” in the title is shown as \” which has to do with masking those special characters before they are written to the database, I guess. I think the title string needs a “stripslash” before sending it to Twitter. But as I am not a pro and do not know enough about the plugin, I’ll leave this to the pros and hope there’ll be an update soon. :-)

  47.   Gravatar   Marco Luthe on August 26th, 2008

    Hey: and why not implement several URL-shortening-services and let the user decide which one to take, like zz.gd, rurl.org, tinyurl.com etc.

    Just an idea… :-)

  48.   Gravatar   Ingoal on August 27th, 2008

    Yeah I heard that one before and it’ll be in one of the future releases…side note: for now it’ll be zz.gd though, which is not only one of the shortest ones but obviously one of my own sites, so I like the push in traffic…no secret there ;)

  49.   Gravatar   Marco Luthe on August 27th, 2008

    > which is not only one of the shortest ones but
    > obviously one of my own sites, so I like the
    > push in traffic…no secret there

    yeah, understandable :-)

    well, and if it works as well: why not.

  50.   Gravatar   Time Management Courses on September 2nd, 2008

    Great – someone who has solved the double tweet problem! I’m pretty much happy whatever shortened URL it creates! Thanks very much, Dan.

  51.   Gravatar   Simon on September 2nd, 2008

    Thanks for fixing the double tweet! Haven’t tried it out yet but I’m sure it will work.

  52.   Gravatar   Simon on September 8th, 2008

    First thanks for the twitter updater, I’ve updated the original version because of double tweeting, unfortunately I’m getting a major error here too and I’m not sure why. The url shows empty when tweeted: “()”

    Also I get 5 errors in wordpress immediately after publishing, 4 beginning with: file_get_contents() ….

    What can I do to solve this? Thanks :)

  53.   Gravatar   Ingoal on September 10th, 2008

    Well, it seems that you’re encountering the same problem as Bruce did (see comments above), but as you said you downloaded the latest version that shouldn’t be a major problem…go to the manage screen, then the twitter update page and then enable the “alternative method to get shorturl” (right above save options; this will switch the method to get the shorturl to curl, which should work on 99% of the hosts) and you should be good to go…

    If you’ve got additional questions or any other problems or if this solved the problem, please feel free to comment here again :)

  54.   Gravatar   Marco Luthe on September 11th, 2008

    Hi!

    I know that zz.gd is your site and you’d like to promote it with this plugin – but how can I change Twitter Updater to use tinyurl.com again? I tried by commenting out some code, but instead of a URL, I got the http headers as result for $tinyurl – which looked a bit weird…

    Thanks!

  55.   Gravatar   Ingoal on September 14th, 2008

    Well…it’s quite easy to do, but as I don’t encourage it, I won’t post the solution here ;)

    Mail sent…check your inbox :)

  56.   Gravatar   soshibi on September 14th, 2008

    Hi Ingoal,
    I have updated my wordpress to 2.6.2 and Twitter Updater doesn’t work any more without showing any errors.
    Isn’t it compatible to wordpress 2.6.2?
    Did you check it now on 2.6.2 ?

    Thanks, Saeid

  57.   Gravatar   Ingoal on September 15th, 2008

    Hi Saeid and thanks for the headsup about WordPress 2.6.2! I didn’t have the chance to test it with 2.6.2 yet…I’ll get on it this week and I’ll post a new version (if necessary)…watch this spot!

  58.   Gravatar   soshibi on September 18th, 2008

    Hi Ingo,
    you don’t need to update your plugin, it works fine with 2.6.2.
    I figured out that myspace plugin not worked and so it caused me too much headaches with other plugins witch couldn\’t work properly.
    Anyway problem solved and yors work fine for me now.

    Thanks a lot, Saeid

  59.   Gravatar   Simon on September 23rd, 2008

    Thanks Ingoal it works just fine now. @ Everyone else having the same problems as mentioned above, just make sure it really saves your settings, then you should be fine.

  60.   Gravatar   Rodrigo P. Ghedin on September 27th, 2008

    Bug: if I schedule a post to be published tomorrow, for example, this plugin publishs a tweet about the new post now, not tomorrow.

    Please, correct this…

    []’s!

  61.   Gravatar   Ingoal on September 28th, 2008

    Hi Rodrigo…yeah, it’s a known bug (list updated)…but I won’t be able to get around to fix it in the next few days (maybe even weeks)…too busy…but I will fix it eventually…

  62.   Gravatar   Marco Luthe on September 29th, 2008

    @Rodrigo, @Ingoal:

    In twitter_updater.php on line 195, change

    add_action ( ’save_post’, ‘vc_twit’);

    to

    add_action ( ‘publish_post’, ‘vc_twit’);

    and see if that helps.

    I think that save_post does not care about scheduling, whereas publish_post is only triggered when the post actually goes public.

    But I am not sure.
    Please try and tell me if it works.
    Thanks.

  63.   Gravatar   Richard McLaughlin on October 1st, 2008

    I have updated to the latest Twitter Updater on 2 sites I support and it doesn’t work. It does not have any errors, it just does not publish to Twitter. Both are WP 2.6.2 and the older version (double) published, but this does not seem to work at all.

    Any clues?

  64.   Gravatar   Andreas Ebbert-Karroum on October 1st, 2008

    Hi,

    thanks for maintaining the plugin and removing the double tweets. Since I am usinging a multilingual blog it would be nice if you could add the minor modification that I did to the sources, as described here:

    http://blog.victoriac.net/blog/twitter-updater#comment-57

    Thanks a lot! If you don’t have time for it, I will do the modification for myself and try out what Marco proposed above and see if it works.

    Andreas

  65.   Gravatar   richard mclaughlin on October 1st, 2008

    thanks Marco, this solved one issue for me (on one site)

  66. [...] however, tweets are duplicated for new blog posts, which is a known problem, but only adressed in a fork of the Twitter updater by Ingo “Ingoal” Hildebrandt. Unfortunatly that does not contain my modifications to only post the english post title to [...]

  67.   Gravatar   Ingoal on October 3rd, 2008

    Sorry guys…a little busy these days, I’ll try to look into all the proposed solutions asap…

  68.   Gravatar   Andreas Ebbert-Karroum on October 3rd, 2008

    Hi,

    there’s a diff on my blog which fixes two issues, if you want to try that out.

    Andreas

  69.   Gravatar   Marco Luthe on October 14th, 2008

    Yeah, it’s a pity the current version v2.06 of twitter updater doesn’t work with scheduled posts. There are not being posted to twitter. Well, at least, they are not being posted at all instead of too early…

  70.   Gravatar   Marco Luthe on October 17th, 2008

    I guess this could be of interest:
    http://codex.wordpress.org/Post_Status_Transitions

    I will have a further look at it later.

  71. [...] “Twitter Updater” by Ingo “Ingoal” Hildebrandt is a nice WordPress plugin that sends an update to your Twitter account (a so-called “Tweet”) whenever a post is published and/or edited. [...]

  72.   Gravatar   Marco Luthe on October 17th, 2008

    I think I have found a fix for the scheduled post problem. You can download the fixed version here. I will only make it available until Ingo updates his plugin. Feedback is welcome.

    @Ingo: please download the fix and see if you can use it to update your plugin. I still think there could be some more improvements on the code, especially when it comes to the post status transitions and the $_POST handling.

  73.   Gravatar   Ingoal on October 18th, 2008

    Hi Marco,

    sorry…still thin on time…I’ll try to have a look asap, but I can’t promise anything…I’ll keep you posted about the integration…and yes there’s still numerous points where the code could be optimised…all in due time :-)

  74.   Gravatar   Marco Luthe on October 18th, 2008

    Hi Ingo,

    thanks for the credits, I’m glad everything worked well.

    For everyone desperately seeking v2.07 on this site: at this very moment, it’s hidden in the v2.03 link above – actually, the link for v2.07 on this site is:

    http://www.ingoal.info/twitterupdater207.zip

  75.   Gravatar   Marco Luthe on October 18th, 2008

    Ingo fixed the link isn’t he quick? :-)

  76.   Gravatar   Jules on October 20th, 2008

    Thanks for updating this plugin. I wish you were higher on the search engines so I would have found your site before Victoria’s. It would be nice if she updated her page with your link also!

    Question: Should it still say “Your email address registered at Twitter” in the manage panel, or should that say Twitter Username?

  77.   Gravatar   Ingoal on October 21st, 2008

    Yeah, well, I think both will do (email or username), but I’m using the username, so I’m not 100% sure…I guess I will rename that in the next release (to Username)…

  78.   Gravatar   Marco Luthe on October 29th, 2008

    To make tinyurl.com work, you need to search for

    $tinyurl = file_get_contents_curl(“http://tinyurl.com/create.php?url=”.$thispostlink);

    within the “twitter-updater.php” file and change it to

    $tinyurl = file_get_contents_curl(“http://tinyurl.com/api-create.php?url=”.$thispostlink);

    wherever it appears.

  79.   Gravatar   Ingoal on November 1st, 2008

    True that….or just use version 2.07.1 which has all those corrections done for you already ;)

  80.   Gravatar   John Thompson on November 3rd, 2008

    Feature suggestion:

    How about a parameter to include the first few words of the post as well as the Title, Twitterfeed-style?

    Kind regards

  81.   Gravatar   Dave on November 4th, 2008

    The updater suddenly stopped!

    It displays the title of the new blog post buy no link… any ideas??

  82.   Gravatar   KrAzE on November 4th, 2008

    I think I managed to edit your code to remove the tinyurl funtion.. I have no clue what I am doing, since I dont know how to edit or write php. If anyone could clean this up, that would be great. I just replaced the tinyurl function with the get id function.. horrible way of doing it, but it worked?

    http://iamkraze.com/twitterupdater.txt

  83.   Gravatar   Jennifer on November 5th, 2008

    Fatal error: Call to undefined function wp_is_post_revision() in twitter_updater.php on line 99

    I’m getting this error when I try to use this plugin…any ideas?

  84.   Gravatar   Ingoal on November 5th, 2008

    Dave: well, nothing much I can say without some additional infos (e.g. when did it stop working? which version of the plugin are you using? which version of wordpress are you using? etc)

    Jennifer: Same goes for you, which version of the plugin with which version of wordpress?

    kraze: why would you want to remove the short url function in the first place?

  85.   Gravatar   Leo on November 27th, 2008

    Hi there,

    Firstly, this is an awesome plugin! Just what I was looking for.

    I’m just wondering if there’s a way to prevent it from notifying twitter for particular posts? Sometimes I want to add something but not have it updated on twitter, so is there a way to do this at all?

    Thanks!

  86.   Gravatar   Ingoal on November 27th, 2008

    As noted above…no further support here…please head on over to twitterupdater.com…that being said: I’ll put that one on the “feature request”-list…thanks for the suggestion!

  87.   Gravatar   Paamayim on December 4th, 2008

    Hi, I tried to send feedback on twitter.com but glob and forum don’t seem to work properly.

    I also get the:

    Fatal error: Call to undefined function wp_is_post_revision() in /home//wp-content/plugins/twitter_updater/twitter_updater.php on line 99

    I’m running latest version of Wordpress MU.

  88.   Gravatar   Zander on December 5th, 2008

    There’s no way to leave comments on twitterupdater.com, and the forums don’t work either.

  89.   Gravatar   Ingoal on December 6th, 2008

    Please bear with me as twitterupdater.com is setup (especially the forums and other features)…rome wasn’t built in a day either ;) …and the fact that you can’t leave comments on the mainpage is not a bug, it’s a feature…work’s as design so to say… :)

  90.   Gravatar   Pete on December 9th, 2008

    Hey,

    We’re having issues with zz.gd links not working today. We receive tens of thousands of pageviews per day via Twitter, so obviously it’s an urgent situation for us.

    If zz.gd links are not gonna be fixed immediately, could you please mail me the instructions on switching them to tinyurls for now? Thanks so much!

  91.   Gravatar   Ingoal on December 12th, 2008

    Sorry for the hiccup Pete, while moving servers someone, read: me, transferred everything…BUT I forgot the .htaccess doing the rewrite-magic. The issue has been resolved yesterday morning. Thanks for your patience and your continued usage of the plugin!

    Btw…I’ll email you my mail-address now for future reference…

  92.   Gravatar   Nitai on December 15th, 2008

    Hi there

    First off, thank you for the fine plugin. Unfortunately it does not work anymore after upgrading to WP 2.7 Is there a update in sight :-)

    Thank you.

  93.   Gravatar   Dustin on December 16th, 2008

    Is there a way to update different twitter accounts for different authors within a blog?

    I have a multi contributor blog and it would be nice if they could link the posts they make to their twitter account.

    Thanks.

  94.   Gravatar   Ingoal on December 20th, 2008

    Dustin: Currently that’s not possible, I’ll put it on the feature request list

    Nitai: Yup, we’re aware of it, as apparent on the status info on twitterupdater.com. Currently working on a fix, could be another few days though….

  95.   Gravatar   Julie on January 2nd, 2009

    I think something is wrong with http://zz.gd/ tonight. I got the following error after publishing:

    Warning: file_get_contents(http://zz.gd/api-create.php?url=http://www.juliesjournal.com/2009/01/01/hair-scarf-picture/) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/jules/public_html/wp-content/plugins/twitter_updater/twitter_updater.php on line 118

    Warning: Cannot modify header information – headers already sent by (output started at /home/jules/public_html/wp-content/plugins/twitter_updater/twitter_updater.php:118) in /home/jules/public_html/wp-includes/pluggable.php on line 770

    Although Twitter did update (so your plugin is working fine of course)

    Hair Scarf Picture @ TinyURL.com – shorten that …

  96.   Gravatar   Julie on January 2nd, 2009

    Ooops: My Twitter posted this:

  97.   Gravatar   Ingoal on January 2nd, 2009

    Hi Julie,

    yeah, there’s a slight problem with zz.gd since dec 31st…the hoster deactivated it due to spam-requests. The situation has been rectified, but the hoster still didn’t reenable the account yet. On another note: in case something like this happens, there’s an extra “security layer” – if zz.gd is down/unavailable, the plugin automatically uses tinyurl.com…so as you’re getting an error, I’m guessing you aren’t using the latest version (as this problem with tinyurl was corrected in the last version)… :-)

  98.   Gravatar   Justice on January 3rd, 2009

    I’m using the latest version and I’m getting my links listed as spam on twitter. How about a check box in the admin to choose which type of links you want to use. Or tell us how to change the links until the spam listed one gets fixed?

  99.   Gravatar   Ingoal on January 5th, 2009

    You’re on the wrong trail here…it isn’t twitter that’s classifying your links as spam, it’s zz.gd.

    To verify this assumption you can go directly to zz.gd and put in the address of you post and create the links manually. It should give you an elaborate message about how your address was classified as spam.

    If that’s the case, feel free to contact the guys at zz.gd (e.g. me, check the contact page of zz.gd) with the link in question and maybe it can be sorted out (e.g. if your link was classified as spam in error)…

  100.   Gravatar   Julie on January 27th, 2009

    Thank you for your response. I have a new issue now. I updated my WP to 2.7 and the plugin doesn’t seem to work. Any advice?

  101.   Gravatar   Ingoal on January 27th, 2009

    Hi Julie,

    sure thing, goto twitterupdater.com and make sure you get the newest version 2.08 of the plugin, which is the only one compatible with WP2.7. After you uploaded it make sure that you deactivate the plugin and the reactivate it. After that you should be fine…

  102.   Gravatar   nathan on February 6th, 2009

    Hello thanks for the plug-in. I have it installed and activated, but I can’t seem to find the ‘Manage’ link to play around with the options and get it functioning. I’m using wordpress.org. I only seem to have the option to activate it or de-activate it.

    Any idea where I should look?

    Thanks again.

  103.   Gravatar   Ingoal on February 6th, 2009

    Hi there Nathan, well, in version 2.7 the “manage”-section was replaced…you should look under “Tools” ;-)

  104.   Gravatar   Marco Luthe on February 13th, 2009

    Hi Ingo,

    I wish you would structure your code more consistently, using tabs with constant width to indent blocks of code, especially with “function”, “if-then-else” etc. It’s a little difficult to search through your code, mate – no offense. :-)

  105.   Gravatar   Ingoal on February 15th, 2009

    Hi Marco, non taken…it’s obvious that a little refactoring wouldn’t hurt, especially to reduce duplicate code…but as you know time is sparse and so function will follow form for now ;)

  106. [...] way onto Twitter at all for some time now.  I’ve been using a plugin for Wordpress called Twitter Updater.  It used to work perfectly, creating a Twitter post every time I wrote a new Blog post.  [...]

  107.   Gravatar   Stevie on August 31st, 2009

    Hey Ingo,

    thanks for you plugin.

    I want to report a bug with headlines containing umlauts (ä,ö,ü). ( see here https://twitter.com/weareroot/status/3665542561 )

    I’d be glad if you could fix this. Also I’m not entirely sure but for now the plugin only worked on edits and not on publishings ( with wordpress 2.8.4 ).

  108.   Gravatar   dean on September 16th, 2009

    Every tweet has the tag line ‘from Ingoal’s Twitter Update’ with a link back to this site. How can I change that so it have it refer and link back to my site?

    Thanks.

  109.   Gravatar   Ingoal on October 5th, 2009

    Stevie: yeah, the plugin needs some work to work with 2.8.x again properly…stay tuned for an update…things have been crazy around here, so not much time to develop…

    Dean: Errrm yeah, you would need to get your own code from twitter for that…not really fair if you’re not using your own plugin or similar, now is it…

  110.   Gravatar   TekxY on January 5th, 2010

    This seems really great, I’m gonna try it, thanks a lot

Leave a reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Bad Behavior has blocked 2237 access attempts in the last 7 days.