I’ve recently read an article at DBT, about how tweetmeme can help increase the number of tweets, of your post and thought of implementing tweetmeme, but tweetmeme show only the number of times your post has been retweetd.
The script has 2 variations in its display, horizontal and vertical.
Customize the script.
Download the .js Script File
Open and Edit the values in the JSfile
RetweetJS.link_text(Default: “Retweet”) – Change this to another value and change the text in the Button.
RetweetJS.count_text(Default: “clicks”) – Right now only “clicks” are supported but if you specify “none” it will show no count.
RetweetJS.prefix(Default: “”) – Setting to “RT @<twitter username>” will add it to the front of the tweets.
RetweetJS.styling(Default: The full CSS used for styling the retweet button.)
Integrate the script into WordPress
- Include the path to retweet.js file in the <head> of your web site.For Example :
- <script src=”<?php bloginfo(’stylesheet_directory’); ?>/js/retweet.js”></script>
- Add a class of ‘retweet’ in the anchor tag in the single.php file.For Ex.
<a href=”<?php the_permalink() ?>” class=”retweet” rel= “nofollow”><?php the_title(); ?></a>
- Completely Unobtrusive You can place the script in the <head> of your document instead of inline which many other such scripts do.
- Speed Retweet.js works completely asynchronously, loading data and updating the rendering as it comes in.
- Pure HTML/CSS The result is just pure HTML styled with CSS – you can customize it however you wish, no images are required.
- Number of clicks, not retweets – The number of clicks coming in is shown instead of the number of tweets your post got.
- You control the data All tracking works directly through Bit.ly and all the clicks and traffic can be stored straight in your bit.ly account.
The script has been tested in Internet Explorer 6-8, Opera 9-10, Safari 3.2-4, Chrome 2, and Firefox 3-3.5.