Twitt-Twoo

Twitt-Twoo is a simple little plugin that will allow you to update your Twitter status right from your blog’s sidebar. Will stop working entirely when Twitter turn of Basic Authentication on August 16 2010

The twitter api has changed a lot since this plugin was last updated in April 2007. This plugin is supplied as is with little or no support, I hope to update it someday, just need to find the time (and incentive) to do so.

Twitt-Twoo is a simple little plugin that will allow you to update your Twitter status right from your blog’s sidebar. AJAX takes cares of the hard work, and means that your page doesn’t even have to reload, allowing for quick and easy status updates.

Features

  • Displays your latest Twitter status, and when it was last updated.
  • Displays your Twitter icon/avatar next your status.
  • Allows for easy updating of your status from the sidebar.
  • Updates using AJAX, so no page reload is required.
  • Provides a link to your personal Twitter page. eg. http://twitter.com/deanjrobinson
  • Provides a link to your Twitter RSS feed.
  • Simple options page located in admin Options->Twitt-Twoo
  • Provides a ready-to-use widget/module.
  • Comes with a new Twitt-Twoo icon, inspired by the Feed and Share Icon projects.
  • NEW — Caches your last ‘Tweet’, to improve page load times.
  • NEW — Option to hide your Twitter image if you want to.

Twitt-Twoo in action

The images below outline the simple task of updating your Twitter status.

Twitt-Twoo - displaying status in sidebar This is how your status will be displayed in your sidebar, as you can see it shows your status, your icon/avatar and when your status was last updated.
Twitt-Twoo - editing status in sidebar After clicking on the ‘edit’ button you will be shown the field to enter your new status into, when your done click the ‘update’ button.
Twitt-Twoo - updating status via AJAX You will be shown a little ‘spinner’ to indicate that your status is being updated.
Twitt-Twoo - newly updated status is shown in sidebar Once your status has been successfully updated, you new status will be shown.

Installation

  1. Download the zip file and extract the contents.
  2. Upload to your wp-content/plugins directory.
  3. Activate Twitt-Twoo from plugins page in WordPress admin.
  4. Go to options->Twitt-Twoo in your WordPress admin and enter your settings so that Twitt-Twoo know whos Twitter to show, and update.
  5. If you use the sidebar widget plugin then you should now have a Twitt-Twoo widget available for you to add to your sidebar.
  6. If you prefer to manually edit your sidebar.php then this is the code that you will need to add:

    <?php if (function_exists(“twitttwoo_display”)) { $twitt_twoo_user_name = get_option(“twitt_twoo_user_name”); ?>
    <div class=“sb_twitttwoo”>
    <h2><a href=“http://twitter.com/<?php echo $twitt_twoo_user_name; ?>” target=“_blank”>Twitt-Twoo</a></h2>
    <div>
    <?php twitttwoo_display(); ?>
    </div>
    </div>
    <?php } ?>

  7. If you wish to insert your own structure around the Twitt-Twoo output, you can just use this:

    <?php twitttwoo_display(); ?>

  8. Enjoy.

Download

You will find the download link at the top right of this page.

Please note that this plugin uses the json_decode function which is only found in PHP5, so if you aren’t running PHP5, then you won’t be able to use this plugin.

Changelog

5÷04÷2007

  • Version 1.1
  • Added caching of latest Tweet.
  • Added option to turn Twitter image on/off
  • Small changes to functionality to accommodate recent changes to the Twitter API.

19/03/2007

  • Initial public release.

Please leave your name and email, so we can show off your gravatar


HELP! For support questions please visit help.deanjrobinson.com →

43 Comments on this

  1. Great plugin, Thanks!

    Error while trying to update Twitter details (Options -> TwittTwoo)

    Fatal error: Call to undefined function: json_decode() in […]/wp-content/plugins/redo-twitt-twoo/redo-twitt-twoo.php on line 91

    […] replaced for security reasons

  2. This plugin is much better and beautiful, I like it

  3. This is definitely the most aesthetically-pleasing Twitter plugin for WP to date, but it’s a shame I can’t use it as my host is running PHP4 not 5! I do hope you will indeed be trying to expand the viability of this plugin to all WP users.

    Right now I’m stuck with the default Twitter template badge and it is soooo boring! X

  4. Doh, nm me, just realised it needs php 5 to work. :)

  5. I’m getting that same error too.

  6. I recently updated to 1.1 (I had your previous version), and now, I’m getting an error?…

    Fatal error: Call to undefined function: json_decode() in …redo-twitt-twoo/redo-twitt-twoo.php on line 91′

    Is there anyway to fix this?
    Thanks!

  7. Hi,

    Love this plugin but I’m wondering if you could make it work with Jaiku too? Whilst I like Twitter, the Series 60 application for my mobile phone with Jaiku makes it more useful for me, but this plugin would let me link it with my website.

    Thanks,
    Shane.

  8. 不知道谁能看懂中æ – ‡ï¼Œè°çœ‹æ‡‚了的话联系我一下,交个朋友!!~~!~~saga_cc@tom.com

  9. [quote comment=“1001”]Great plugin! It seems though that it does not work well together with wp-cache. (wp-cache doesn’t cache anything anymore)[/quote]

    Interesting, I haven’t been using wp-cache since it killed my blog when the cache files corrupted, so I wouldn’t have picked that up.

    I’m not sure what exactly would cause it to stop wp-cache working, but I’ll have a look into it when I get some time, ans see what I can find.

  10. Great plugin! It seems though that it does not work well together with wp-cache. (wp-cache doesn’t cache anything anymore)

  11. [quote comment=“986”]Great plugin, although I can’t move to 1.1 yet, since my host still runs 5.1.6. You should update your json_decode notice to say that it’s only in 5.2.0. Look in the PHP manual if you don’t believe me. Keep up the great work, and I hope you find a solution![/quote]

    Thanks for pointing that out, I wasn’t aware that it was only in 5.2.0. All the more reason for me to try and find an alternate method of ‘caching’. Thanks.

  12. Great plugin, although I can’t move to 1.1 yet, since my host still runs 5.1.6. You should update your json_decode notice to say that it’s only in 5.2.0. Look in the PHP manual if you don’t believe me. Keep up the great work, and I hope you find a solution!

  13. Hey Dean,
    Awesome plug-in, hope you can eventually get this to PHP4, my host is being annoying and won’t upgrade :P. Anyway, this is exactly what i was looking for. Such a great implementation, you should definitely list it on the plug-in listing on wordpress.org.

    Thanks for the great code!

  14. [quote comment=“926”]Hi Dean, Thanks for the plugin its great. I was wondering if there is anyway to display your tweets with out your twitter picture? Is a simple hack or removal of code possible?[/quote]

    I’ll go one better, and include an option in the next version to let you turn the image off easily. Version 1.1 should be ready by the end of the week.

    • I just found this theme and love it. I’m in the process of customizing it. However, for some reason my Twitter image won’t show up, even if I select it to show. Is this b/c I’m using WordPress 2.7?

  15. Hi Dean, Thanks for the plugin its great. I was wondering if there is anyway to display your tweets with out your twitter picture? Is a simple hack or removal of code possible?

  16. This is what I’ve been looking for for my blog – thanks for developing it! Now, I just need my computer back, a free afternoon, some dr. pepper…

  17. Thanks for all your work!
    my blog use your theme!
    :D

  18. Well, that trick won’t work either, since basically the browser is waiting on your AJAX call to finish rendering the page… You can do two things… either wait until the page finishes loading and *then* call the AJAX request… *or* cache it server side so that, whenever Twitter is available, you’ll have fairly up-to-the-minute statuses without the laggy call.

  19. Chris, thanks for the feedback. And here I was thinking that it was just my crap internet connection that was causing it to load so slow. I will have a look and see what I can do about possibly caching the twitter statuses.

    I did try moving the javascript to below the sidebar in the code, so that the sidebar could load before the twitter status is called…but it didn’t seem to like that, because it wouldn’t work at all.

  20. Nice work, Dean.

    Given Twitter’s latency, I noticed that your sidebar takes a *really* long time to load, as it’s waiting for Twitter to send you your status. I believe the approach used by Alex King’s Twitter Tools polls the RSS on the backend and then caches it, avoiding such long wait times.

    Perhaps you could do some caching so that a) you’re not smashing Twitter’s servers with active AJAX requests b) do some caching so that Twitter doesn’t prevent the rest of your sidebar from loading?

    Just a thought. Otherwise — looks great!

twitter was not updated. | lastfm was not updated. |