The TweetMeme retweet button is for website and blog publishers who wants to encourage their audience to tweet their content on Twitter. The button also shows a live count of the number of times your webpage or blog post has been tweeted.
Directions
Step 1: Under the Layouts > Edit HTML tab, insert the following section code below
To have it under post titles or above postings
right after <div class='post-header-line-1'/>
To have it under postings where the post footer is
right after <div class='post-footer-line post-footer-line-1'>
<div class='tweetmeme' style='float:left; margin:0;padding:0;'>
<script type='text/javascript'>
tweetmeme_style = 'compact';
tweetmeme_source = 'blogspotvision';
tweetmeme_url = '<data:post.url/>';
</script>
<script src='http://tweetmeme.com/i/scripts/button.js' type='text/javascript'> </script>
</div>
Configuration
tweetmeme_style = 'compact';
- this variable can either be compact, for a compacted size retweet button or you can remove the entire variable for the default sized appearance
tweetmeme_source = 'blogspotvision';
- this variable, by default, will be in the format of “RT @tweetmeme <title> <link>”. You can, however change the button to retweet your user account. By specifying the variable parameter in the script to “RT @yourname <title> <link>”.
tweetmeme_url = '<data:post.url/>';
- this variable defines the url to post for on your twitter, you can modify it to a certain url if you want.
Additional variable
tweetmeme_service = 'bit.ly';
- this variable defines the tiny link service used to display your tweeted link. If you prefer to have tr.im as the URL shortened link, just change “bit.ly” to “tr.im”.
*Tutorial Completed
No comments:
Post a Comment