38 thoughts on “How to Integrate Twitters @Anywhere with your WordPress Comments Leave a comment

  1. Hi,

    Thanks for showing how to make use of comment meta data!
    Now I know how it works.

    Thanks!

  2. Nice write-up. I see you’ve made a few improvements to my code. I like the cookie idea, and I hadn’t thought of checking to make sure nobody put the full URL instead of just the username. I’m going to have to update my site. ๐Ÿ™‚

    1. Yeah – I changed a few little bits and pieces, but your code was a great help to get me on the right track, thanks again for sending it over.

      My goal is always to make things as fool proof as possible, you never know what people will do ๐Ÿ™‚

      1. “My goal is always to make things as fool proof as possible, you never know what people will do”

        At least WordPress takes care of the Bobby Tables issue through it’s own sanitization. ๐Ÿ™‚

  3. Pingback: Small updates from me & my friends - Yoast - Tweaking Websites
  4. I always prefer using plug-in which do not require file updation. File edition leads to error when we change theme.

    Thanks
    Rajneesh

  5. Very clever, but I will stick with Intense Debate as it has a ton of options…

    I can certainly see a ‘lot’ of people loving the feature described here though for those who don’t want what I use instead ๐Ÿ™‚

    Great post Ben!

  6. Very useful information, as i try to minimize the number of plugins this will come in handy. Thanks !

  7. Pingback: Integrate Twitter @Anywhere into Your WordPress Comments
    1. I think that facebooks fbml is much more seamless than what is possible with Twitters Anywhere but a great tutorial regardless. . . . too bad it isn’t possible to have a mash up of the too =o(

  8. Very nice. Your tutorial is implemented in some blogs I visited :). Thanks for sharing to us.

  9. I’m confused by step #4. I assume you add a callback to comments.php so it looks something like this: ; then the code from #4 drops the opening/closing php tags and is placed in your functions.php file?

    If that’s the case, wouldn’t #4’s code need to be wrapped in something like function mytheme_comment() { ... }? I’d appreciate some more comments or clarification on this step for modifying the comment output.

    Thanks!

    1. Oops, didn’t think about the code blocks being block and not inline – previous post looks annoying with all the code sections around file names =[.

      The “like this:” code block should contain the standard php wp_list_comments ( ‘callback=mytheme_comment’ ) without some of the spaces.

      1. Hi Matt – you’re right. Sorry if it wasn’t clear. You need to stick this into the custom comment callback function so that the Twitter username can be displayed with the rest of the message.

    2. Ok, I got it. I realized that #4’s code is simply placed within your custom callback in functions.php. I’ve got it up and running now.

      Thanks, Ben, for the tutorial.

  10. This is really cool. I’ve implemented it into my website and it works just fine. Thanks for sharing! ๐Ÿ™‚

    There is a little quirk with the hovercards though: they won’t appear in Opera. Have you any idea why that happens (or rather: doesn’t happen)?

    Thanks again!

    1. Just a little update: the hover cards are suddenly appearing in Opera. Twitter must’ve changed something…

  11. An easy way to integrate twitter comments into your wp comment area is by installing Disus, not coding necessary. I installed it in my blog, you can see how it works. blog.bluemediaconsulting.com

    1. That’s true, but to be honest I just don’t like Discus. I find it really messy and would rather implement the code myself.

  12. Hey Ben, great info!

    One question though. I am trying to use the ajax function that the “WP Thread Comment” offers on comments, but when using ajax the comment doens’t save the comment-metadata…Any ideia which direction to go?

    Thank you ๐Ÿ™‚

  13. Pingback: Think Vitamin ยป Twitter @Anywhere Revisited
  14. I want to do this at my site, but I am using the Thesis theme (1.8) and there is no way to add the first portion of code to the comments file.

    Any suggestions?

Leave a Reply

Your email address will not be published. Required fields are marked *