25. March 2009 09:14
So I’m sure you’ve heard of twiiter, it’s a great micro-blogging tool for networking and promoting your work etc. Well TweetMeme offers a tool that allows users to re-tweet your blog posts and articles. In a nutshell, they click the button and they tweet a link to your article/blog post. This helps spread the word about your article. TweetMeme also monitor twitter and count up the number of re-tweets for each article/blog post, a large number of tweets results in you being listed on there front page.
Using the tweetmeme button you can discover new content and tweet about it. The button provides a fully integrated URL shortener and the story or pages title. Each link which is posted on twitter adds one link to the link count on that story. Once the story has reached a critical mass of votes is makes it into the top 10 on the front page.
I have just a started using this service in my blogEngine.net blog so have adapted the code slightly (it’s a trivial change). Here is the standard code…
<script type="text/javascript">
tweetmeme_url = 'http://yoururl.com';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
I have modified the code to look like the following…
<script type="text/javascript">
tweetmeme_url = <%="'" %><%=Post.AbsoluteLink.ToString() %><%="'" %>;
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"> </script>
So it changes the tweetname url to the absolute link for the post. If you add this code somewhere in your postview.ascx file contained within your theme. Then it will be displayed for every post. For example, I have added mine like so …
<div Class="text">
<asp:PlaceHolder ID="BodyContent" runat="server" />
<br />
<script type="text/javascript">
tweetmeme_url = <%="'" %><%=Post.AbsoluteLink.ToString() %><%="'" %>;
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"> </script>
</div>
So that it comes just after each post. But you can add it anywhere you like. There is also a compact version of the button, simply add tweetmeme_style = 'compact'; to the script.
Why not help me spread the word by re-tweeting this post by hitting the button below :)
Happy Tweeting.