Impressed and craving for the retweet and facebook share button in my blog? ^^. Been surfing http://mashable.com/ for some time and the retweet buttons at their post always attracted me. So i took some time to google the codes and added it to my blog.



This are the links to the blog/website i get the codes from... With some basics coding knowledge, you can setup the functions in minutes
1)http://www.anshuldudeja.com/2009/05/how-add-retweet-button-to-blogger-posts.html
2)http://www.fbshare.me/

Extra:
If you are using a template blog, some lines of code maybe modified. I will share my combined retweet + facebook sharecount codes here too.

For example you may not find this code in template blog
<p><data:post.body/>                        
</p>

Try looking codes like this instead..
<div class='post-body entry-content'>

Paste these few lines of codes below it. Top section will be retweet and the bottom will be facebookshare. DO SAVE your template before trying this out :)

<div style='float:right; margin-left:10px;'>
<script type='text/javascript'>
tweetmeme_url = &#39;<data:post.url/>&#39;;
</script>
<script src='http://tweetmeme.com/i/scripts/button.js' type='text/javascript'> </script>

<script>var fbShare = {
url: &#39;<data:post.url/>&#39;,
size: &#39;large&#39;,
google_analytics: &#39;false&#39;
}</script>
<script src='http://widgets.fbshare.me/files/fbshare.js'/>
</div>



edit post

1 Reply to "Retweet and FBshare function"

  • Ken Wooi on October 2, 2009 at 7:45 PM

    cool! =)

    kenwooi.com

     
  • Post a Comment