Twitter has grown to be one of the most successful social media services, so it’s no wonder bloggers seek to utilize many Twitter based applications to enhance the community aspect of their blogs.
Tweetbacks and re-Tweets are particularly good functions to include in our blogs: Tweetbacks demonstrate how posts are discussed and syndicated through Twitter, while re-Tweets offer an easier means for readers to Tweet about our posts.
While there are plugins available for Wordpress users to add Twitter functionality to their blog templates, Blogger users need to edit their templates directly in order to add these functions. In this article, I’ll explain how to add Tweetbacks and re-Tweet functions for Blogger powered sites.
Tweetbacks act like trackbacks; but rather than list links to a specific post, these will list any found Tweets about the specified post and include a thumbnail of the author’s Twitter avatar.
Dan has made this functionality incredibly easy to add to our blogs. All we need to do is paste a single line of code where we want the Tweetbacks to appear.
Blogger users could easily add this code to an HTML/JavaScript widget in the sidebar. Once the page has loaded, the script will pick up any Tweetbacks associated with the current page.
To make this function more interesting, you may prefer to add Tweetbacks below your Blogger comments section instead. This is surprisingly easy, though you will need to edit your blog’s template code in order to make this work.
<:b:includable id='comments'/>
<script src="http://danzarrella.com/tb.js"></script>
Now your Tweetbacks will appear on post pages, right after the comments section. If no Tweetbacks have been registered for this article, the message “No Tweetbacks Yet” will be displayed instead.
Learn more about Dan Zarella’s Tweetbacks
Of all the “re-Tweet” buttons I have seen, the TweetMeme counter has proved the most interesting. This button adds a counter to display how many times the post has been “re-tweeted” along with a link for readers to easily Tweet about your posts:
To add the TweetMeme button to your Blogger template, you will need to override the automatic collection of the URL by adding the following lines of code in your template where you would like the button to appear:
<script type="text/javascript"> tweetmeme_url = '<data:post.url/>'; </script> <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"> </script>
If you prefer to add the button below each of your posts, you can paste this code in the post-footer section of your blog. However, many prefer to add this at the top right of their posts in similarity to the Digg button trend.
To add the button to the top of your Blogger posts, here is what to do:
<div class='post-body'>
If you cannot find this exact line of code, search for <data:post.body/> and look for the preceding line.
<span style="float: right; margin: 0 0 5px 5px;"><script type="text/javascript"> tweetmeme_url = '<data:post.url/>'; </script> <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"> </script></span>
Using these Twitter-based functions in your Blogger powered blog is an ideal means for Twitter users to assist syndication of their posts, increase popularity of their blogs and create an increased sense of community around thier sites.
I hope you have found these explanations of how to implement Tweetbacks and re-Tweets useful for addition to your Blogger templates. Please feel free to leave your comments and suggestions below.
Author comments are in a darker gray color for you to easily identify the posts author in the comments
Comments are closed since this post is older than 30 days. However, you can continue this discussion in our popular Blogging Forums
This is great info Amanda.
I could use this on some of my old blogs which are still at blogger.