Friday, 18 January 2008

Add DZone button on Blogger template

DZone.com is a popular digg-like portal to share interesting and useful links for developers.

It provides two type of buttons to vote a post directly from your site (like digg) with different size: tall and wide:


To add DZone buttons on your blogger template, in each post of your blog, select "modify html" and check "Expand Widget Models" (remember to save your template before!).

Better position to place the big button (tall) is beside the title of post. Find this line of code:

...<data:post.body/>...

Copy and paste the following code below the line above:

<script type="text/javascript">
var
dzone_url = '<data:post.url/>';
</script>

<script type="text/javascript">
var
dzone_title = '<data:post.title/>';
</script>

<script type="text/javascript">
var
dzone_style = '1';
</script>
<script language="javascript" src="http://widgets.dzone.com/widgets/zoneit.js"> </script>


In order to choose the small button (wide size) instead of big button change this line:

<script type="text/javascript">
var
dzone_style = '1';
</script>

...whit the following:

<script type="text/javascript">
var
dzone_style = '2';
</script>

I suggest to place wide size button to the end of post (for example below tags line). Past the code below this line of code in your blogger template:

<p class='post-footer-line post-footer-line-3'>

Save your template and try it!

Add a retweet counter on your website with ReTweet.comAdd a retweet counter on your posts with TweetmemeHow to install Disqus comments into BloggerImprove the default comment system with Google Friend ConnectAdd TwitThis on your Blogger templateAdd Digg vote button on Blogger Template (update)Add delicious button with counter in your blogger postsPlace Google AdSense below post's title on BloggerAdd StumbleUpon button in your Blogger postsAdd reddit button with counter in your Blogger template Add Technorati blog reaction on your Blogger templateAdd Mixx button on Blogger templateAdd Design Float button on Blogger templateSome Blogger Tips you probably don't knowAdd Yahoo! Buzz button on Blogger Template

No comments:

Post a Comment