Friday, August 13, 2010

Twitter Introduce - Official Twitter Share Button (Tweet Button) for Blogger

For those of you who use Twitter on a daily (or even hourly) basis to share and read information about celebrities, friends, or businesses, you may be interested in Twitter’s new addition — The Tweet Button.

The aim of the Tweet Button is to simplify the sharing of web links by its day-to-day users and web publishers who use the social networking website to distribute information about its products and services.

When the Tweet Button is pressed or clicked, a pop-up box appears where an ‘automagically’ shortened URL of the page or object shared is displayed, Twitter said in their blog post released Thursday.

The Tweet Button also aims to grow traffic to the site and extend the Twitter followers. They aim to do this with publishers having the ability to preconfigue the custom text with every Tweet Button they wish to display to users, as well as the option to suggest other Twitter accounts they may also be interested in.

TweetMeme is another company who have provided similar capabilities, but will now retire and phase out its “retweet” service in aid of assisting Twitter with the growth of the Tweet Button.

It was only a matter of time before Twitter adopted such a service, as Facebook did some while ago with its infamous “Like” button that has also become a favorite on YouTube and many other blogs and social networking websites.

Do you like the new Tweet Button? Will you be adopting it on your website?

To install the new tweet button on blogger, Follow these steps

1. Login to your Blogger Dashboard and Navigate to Design > Edit HTML

2. Click on the Check box which says “Expand Widget Templates”

3. Now Look for
<data:post.body/>
and immediately above it paste the following code snippet(after proper editing)
<div style="float:left;padding:4px;">
<a href='http://twitter.com/share' rel='nofollow' class='twitter-share-button' expr:data-url='data:post.url' expr:data-text='data:post.title' data-count='vertical' data-via='BlogCommander'>Tweet</a>
<b:if cond='data:post.isFirstPost'>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js">
</script>
</b:if>
</div>

4. Save your template.

5. Now you should see the twitter button near each of your blog posts.

Editable parameters

1. float:left - you can change this to float:right if you need the button on the right side of the post instead of on the left

2.data-count='vertical' - you can change this to data-count='horizontal' or data-count='none'

3.data-via='BlogCommander' - you can edit BlogCommander with your twitter user name. So if your twitter handle is michael, then change it to data-via='michael'

4. Adding some extra text in the tweet – With the current code, the button will make a tweet with the title of the blog post. If you want to add some extra text to the tweet, change expr:data-text='data:post.title' to

expr:data-text='"I am Reading: "+data:post.title' This will append “I am Reading:” to the tweet :)

Displaying the Tweet Button on the Post Page Only

If you want to display the Twitter button on the post page only, then wrap the code with conditional tags like
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div style="float:left;padding:4px;">
<a href='http://twitter.com/share' rel='nofollow' class='twitter-share-button' expr:data-url='data:post.url' expr:data-text='data:post.title' data-count='vertical' data-via='BlogCommander'>Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js">
</script>
</div>
</b:if>

Demos

1.data-count='vertical'


2.data-count='horizontal'


3.data-count='none'


Something more about the Tweet Button
 

1 comment:

  1. A lot of thanks for all of the work on this blog. Kim really likes engaging in investigation and it's obvious why. My partner and i learn all about the dynamic form you present practical items on the website and encourage response from visitors on this area then our favorite girl is now discovering a lot of things. Have fun with the remaining portion of the new year. You have been carrying out a fantastic job.

    ReplyDelete