How to add a Twitter Connect signin button to your blog comment form

  • 0
  • April 21, 2009
Patrick Altoft

Patrick Altoft

Director of Strategy

Twitter has quietly released Sign in with Twitter which is a neat system allowing websites to access your Twitter account details without you having to give them your password.

I’ve used the Twit Connect plugin from Voice of Tech to implement this on Blogstorm so that all my readers can leave a comment without entering their URL & name. All you have to do is click the button and we can pull your name, avatar & Twitter profile page to go alongside your comment.

Sign in with Twitter

First of all you need to register your application with Twitter so they can give you an API key.

Next you need to upgrade your server to PHP 5 because the plugin does’t work with PHP 4.

Finally upload the plugin & follow the instructions below:

  1. Upload twitconnect.php and all included files to the /wp-content/plugins/ directory.
  2. Place <?php if(function_exists('twit_connect')){twit_connect();} ?> in your comment template or rely on the default <?php do_action('comment_form', $post->ID); ?> code.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Modify plugin options through the Settings menu

It’s worth noting that this plugin doesn’t allow blog owners to do anything other than pull your public details from Twitter so it’s quite safe for you to use. Personally I think it would be nice to give readers the option to automatically tweet a link to the comment they have left.

Please try it out using the comment form below & let me know what you think.

Free of charge. Unsubscribe anytime.