BlogEngine.net: Twitter, FaceBook and DotNetKicks Buttons

Outside of setting up an extension you can easily add Twitter, FaceBook and DotNetKicks buttons to you BlogEngine.Net posts by inserting the following code snippets in the desired location of your theme’s PostView.ascx page:

Twitter:

<a href='http://twitter.com/share' class='twitter-share-button' data-url='<%=Post.PermaLink %>'
                data-count='horizontal'>Tweet</a><script type='text/javascript' src='http://platform.twitter.com/widgets.js'></script>

 

FaceBook:

<iframe src='http://www.facebook.com/plugins/like.php?href=<%=Post.PermaLink %>&layout=button_count&show_faces=false&action=Like&colorscheme=light'
                frameborder="0" scrolling="no" style="border-style: none; height: 20px; width: 90px;
                overflow: hidden;"></iframe>

Note:

  • The options for layout are button_count, standard and box_count 
  • The options for action are like and recommend 
  • The options for colorscheme are light and dark

 

DotNetKicks:

<a href="http://www.dotnetkicks.com/kick/?url=<%=Post.PermaLink %>&title=<%=Post.Title %>"
                target="_blank">
                <img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=<%=Post.PermaLink %>"
                    border="0" alt="kick it on DotNetKicks.com" /></a>



   

Pingbacks and trackbacks (1)+

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading