Home   RSS Feed
code coding coders

Content

4 October 2009
Twit-update

Filed under Wordpress

I found myself updating some posts somewhat frequently. This isn’t necessarily a good thing to do as the RSS feed doesn’t show updates.

A more blog-type thing to do would be to constantly make new posts and link back and forth trough them in a weak attempt at SEO. This isn’t really my thing because one I like my information organised instead of scattered and two I’m not a blogger.

Fiddlig with the built-in wordpress RSS seemed a bit daunting to me so I started lookig for alternatives. Then it dawned on me that there’s such a thing as Twitter. Personally I don’t use it, but practically it can store small amounts of information, and people like it.

This was the heart of twit-update.

The lungs and the rest of the cardiovascular system of twit-update was a nice clean bit of code.

The bones and muscles moving and supporting it were today’s work crippled as much as possible by windows vista(which froze on me even as I was writing this)

Odd biology metaphors aside I’ll save this post now then edit it later with the link to the plugin itself to prove its workingness.

It obviously didn’t work exactly as planned, so I’ll be tweaking more before release. You can see it in its current glory here.

How to use:

  • Type in your twitter login data
  • Set the notifications options
  • Set the notification messages
  • Save

As an example for notifications I currently use:

I [a] have posted a post named [n] at these temporal coordonates: [o]. You may find it here: [url]

and

[n] was just edited. It was last edited on [l] and posted on [o]. It currently has [c] comments. Go take a look. [url]

You could also make some notes in the excerpt section as to why you edited and send them off to twitter. Sky’s the limit.


Known issues:

  • Previewing a post triggers the new post message
  • Notifications are sent for pages too
  • Saving drafts triggers new post message

These seem to have gotten fixed. Please let me know if there are still issues.

Changelog
004-Switched to the new way of storing options. Might be compatible with wordpressMU. Need volunteer to find out.
003-Security update restricting acces to plugin settings. Please update if you have a multi-user blog.
002-more tags, bug fixes and a sidebar widget
001-there should be increased compatibility with PHP 4 now
000-release

Any suggestions, questions and feedback are very much appreciated.


Download here

VN:F [1.3.2_665]
Rating: 7.6/10 (7 votes cast)
  • Share/Save/Bookmark

2009-10-04  ::  Andrew

Talkback x 56

  1. lee
    5 October 2009 @ 4:08 pm

    Hi, just installed twit-update but received an error when activating:

    Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/*****/*****/wp-content/plugins/twit-update/twit_main.php on line 30.

    Any ideas? Would really like to use this.

    Thanks

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    Hello, I’m sorry to hear you’re having issues. Is your server running PHP version 4 by any chance?

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  2. JD
    5 October 2009 @ 7:38 pm

    I’m having the same issue, and yes my server is using PHP 4.4.9

    VA:F [1.3.2_665]
    Rating: 5.0/5 (1 vote cast)

    [Reply]

    Andrew Reply:

    Thanks for letting me know. :D
    It should be fixed now. You can download the new version as soon as it updates on wordpress.org in a few moments.

    VN:F [1.3.2_665]
    Rating: 5.0/5 (1 vote cast)

    [Reply]

    JD Reply:

    Ok, seems to work now. Thanks for the speedy update!

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    You’re welcome, I’m glad it worked.

    Please let me know if you find more bugs or have suggestions.

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  3. Jason Christopher
    5 October 2009 @ 9:05 pm

    Will this work with WP version 2.8.4 ?

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    I don’t see why not. It most likely works with most versions, I only tested it on one though.

    Feel free to try it out and let me know if it works. :D

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  4. Twitter update? - Htbaa's Gaming Projects
    5 October 2009 @ 11:23 pm

    [...] checking if my freshly installed Twit-update plugin works. If all is well it should have added a new tweet to my [...]

  5. WordPress Plugin Releases for 10/05 « Weblog Tools Collection
    5 October 2009 @ 11:23 pm

    [...] Twit-update [...]

  6. WordPress Plugin Releases for 10/05 | bloground.ro - Blogging resources, WordPress themes and plugins for your development
    6 October 2009 @ 12:26 am

    [...] Twit-update [...]

  7. Hookle » WordPress Plugin Releases for 06/10/09
    6 October 2009 @ 11:22 am

    [...] Twit-update [...]

  8. JD
    6 October 2009 @ 5:00 pm

    If I use ‘Quickpress’ in the wordpress dashboard, it doesn’t post to my twitter. Same thing if I post through the wordpress iPhone app.

    Those two are where I post from the most, so would be very useful.

    Thanks

    VA:F [1.3.2_665]
    Rating: 5.0/5 (1 vote cast)

    [Reply]

    Andrew Reply:

    Thanks for letting me know!

    There are a number of issues I’ve found with the current code. I’ll write up a fix which I’m hoping will fix your problems as well, and include it in the next release within the next few days at most.

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    JD Reply:

    Sounds good, I look forward to it.

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    I’ve tested quickpress with the new version of the plugin and it seems to work. I don’t have an iPhone so I can’t test the app unfortunately. Please let me know if it works.

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    JD Reply:

    That worked man, Thanks!

    Great job!

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    Awsome!

    Let me know if anything else comes up.

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)
  9. Htbaa
    6 October 2009 @ 8:34 pm

    Hi, it would be nice if I could let it ignore adding new pages or doing page updates. Other than that, a fine plugin!

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    I’m not sure what you mean. There are options for disabling both of those in the admin panel. Have you tried them and found that they don’t work?

    http://wordpress.org/extend/plugins/twit-update/screenshots/

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Htbaa Reply:

    I think those work, what I meant is:

    I want to use Twitter to update people of new blog-posts.
    But not when I add a new static page.

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    I wasn’t aware it did that actually. Thanks a lot for letting me know!

    I’ll need to look into this a bit and do some old-fashioned detective work, but I think I can get it to run smoothly in no time.

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Htbaa Reply:

    By the way, shouldn’t new posts be tweeted only when publishing it? A tweet gets posted even when saving it as a draft.

    VA:F [1.3.2_665]
    Rating: 5.0/5 (1 vote cast)

    [Reply]

    Andrew Reply:

    Yup that’s right that’s what should happen. I’ve been looking for the cause of that extra notification. I’ve added this to the known issues. Thanks again. :D

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)
  10. Ипотпал
    7 October 2009 @ 2:25 am

    Thank you for the plugin

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  11. Duane Poncy
    7 October 2009 @ 4:40 am

    Can’t save my settings on Wordpress 2.8.4. I get an “error: option page not found” message.

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    That’s odd. Are you sure you uploaded the whole plugin folder to your wordpress? You only really need twit_main.php and twit_options.php so make sure they are both uploaded.

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Duane Poncy Reply:

    I installed it automatically via the Wordpress interface. My site is on a WPMU installation, could that be the problem?

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    I’ll have to be honest and admit I haven’t worked with wordpress MU so I’m not sure.

    I suspect I know what the problem is though. I’ll try to write up a fix for it today or tomorrow at the latest. Since I’m working blind without access to a wordpress MU instalation it either might or might not work.

    Fingers crossed :D

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    Think v004 will do the trick. Let me know how it works.

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  12. Lisa D Chambers
    11 October 2009 @ 4:03 pm

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in ‘\wordpress\wp-content\plugins\twit-update\twit_main.php on line 32 ‘

    latest version of your plugin w/latest version of wp 2.8

    sorry, I wanted to use :(

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    That’s an error on my side, comes with working on several machines. It seems I’ve uploaded the incorrect file. It should refresh on the wordpress.org site in 15 minutes at most. If you redownload it it should work.

    I’m terribly sorry for this.

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  13. hch
    14 October 2009 @ 12:35 am

    works great for me!

    thanks a lot!

    VA:F [1.3.2_665]
    Rating: 5.0/5 (1 vote cast)

    [Reply]

  14. h2dtwo
    14 October 2009 @ 1:54 am

    great plug-in.
    i’m not using widgets, what do I add manually to the sidebar to get the plug-in on the page? any inf would be great.

    thanks

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    You can get one of twitter’s widgets and paste the html code in your sidebar.

    http://twitter.com/goodies/widgets

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  15. Polprav
    16 October 2009 @ 3:25 pm

    Hello from Russia!
    Can I quote a post in your blog with the link to you?

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    Hello!
    As long as you quote some of it, link back and give credit It isn’t really a problem.

    What did you have in mind?

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  16. Jonnifer
    18 October 2009 @ 5:15 am

    I made post today and I am just wondering. I haven’t see my post in twitter. The other day it was working fine.

    Please let know why happened this on my twit update.

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    That’s odd. Have you checked that the new post message isn’t too large? If you add too many tags and text it may exceed twitter’s limits.

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  17. h2dtwo
    21 October 2009 @ 8:38 pm

    Hi Andrew,
    Thanks for the previous help. I had one more question. I schedule posts on my site a night in advance. I noticed that when I do that the message is not sent to twitter. Is it supposed to work for scheduled posts?

    Thanks

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    That’s actually a very good question.

    Since it doesn’t work for you I’ll assume it isn’t supposed to happen. However that’s functionality I will most definitely try to add in the next version. I’m unsure when I’ll have time to tinker with it, if not by the weekend then prolly sometime next week.

    Thanks a lot for bringing this to my attention :D

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  18. Emma
    21 October 2009 @ 11:33 pm

    So, your plug-in works fantastically if I’m just posting a regular blog. However, I use ComicPress to manage my webcomic, and while it doesn’t post when I save the draft to be published at 00:00 Wednesdays, it never updated my Twitter feed. Is this a conflict with ComicPress? with publishing later? or…?

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    Hello Emma

    It’s not a comicpress conflict that I know of. The plugin doesn’t post to twitter when scheduled posts post themselves.

    So yes, unfortunately the issue is with publishing later.

    However I hope to have this taken care of as soon as possible. Thanks for letting me know. :D

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  19. Julián Rodriguez Orihuela
    27 October 2009 @ 3:36 am

    Does it work with URL shorteners such as bit.ly or does it just put the regular blog URL?
    Because my URLs tend to be long, and so are my post titles, so probably there’ll be no space for everything in the post.

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    Hello

    It uses this format for the URLs: http://software.o-o.ro/?p=177 this one is the url for this post. Unless your blog default URL is really long it shouldn’t be a problem.

    Twitter might shorten them by default if it all gets too long but I’m not sure.

    I’ll look into integrating url shorteners when I have some free time.

    Thanks

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  20. Nick
    30 October 2009 @ 9:05 pm

    If I schedule a post, the tweet won’t update…is there a work around or will a new version include this…or am I doing something wrong (which could be the case!)

    Thanks!

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    I’m aware of the issue. The new version will include it:D (hopefully this weekend)

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Htbaa Reply:

    Hi Andrew,

    I just encountered the same “issue”. Did you ever get to it or is it a scraped feature?

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  21. thegolfstudent.com
    6 November 2009 @ 9:08 pm

    Hi,
    I have installed the plugin but I can’t find where you fill in the personal info as you have spoken about in the readme file. Was it supposed to popup? I do have the twit-widget on the site but nothing is happening with it. Can you assist?

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    Heya

    In the admin menu under settings you should have a button “twit update”. If you click it it should take you to the options page (first image from here http://wordpress.org/extend/plugins/twit-update/screenshots/)

    You then fill out your info and click save.

    Once you do that the widget should start working too.

    Let me know if you have any more trouble.

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  22. Plugins. | hermanosplantilla
    19 December 2009 @ 2:19 pm

    [...] - Twit-update [...]

  23. chiara
    3 July 2010 @ 4:13 pm

    Hi, this is my fist wordpress blog and my first plugin. I’ve just installed twit-update but I receive an error when I publish a new post on worpress:

    PHP Fatal error: Call to undefined function curl_init() in E:\inetpub\wwwroot\riflessioniaruotalibera.it\wp-content\plugins\twit-update\twit_main.php on line 54

    What can I do? Thanks a lot!

    chiara

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    Is curl installed on your server? It needs to be in order for the plugin to function.

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  24. Xtreme Bundlle
    15 July 2010 @ 4:39 pm

    Why I am having this error?

    Fatal error: Call to undefined function curl_init() in /home/xtremebu/public_html/wp-content/plugins/twit-update/twit_main.php on line 54

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

  25. Xtreme Bundlle
    15 July 2010 @ 4:39 pm

    I tried to update my post but I got that error :(

    VA:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

    Andrew Reply:

    It’s because curl isn’t installed (or enabled) on your server. You should ask your host to install/ enable it.

    VN:F [1.3.2_665]
    Rating: 0.0/5 (0 votes cast)

    [Reply]

Share your thoughts







Tags you can use (optional):
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>