To add 'Orkut Share' button to every post [Java Script]

Thursday, December 17, 2009

Orkut has recently released orkut Share API for its users. Orkut users can now share and promote interesting content from the Internet with their orkut friends easily with just few clicks. The shared content will appear in their activity updates.

Most of the bloggers and webmasters use Facebook share option to share and promote their content on Facebook. Its one of the best methods to promote their content. It seems Orkut is following Facebook in looks and in features too.

Add Orkut Share Button to blogger posts :

To add this button go to Layout > Edit HTML and click on Expand Widget templates, copy and paste the following code above </head>
<!--orkut share starts here-->
<script src='' type='text/javascript'/>
<script type='text/javascript'>
google.load(&#39;orkut.share&#39;, &#39;1&#39;);
google.setOnLoadCallback(function() {
var params = {};
params[google.orkut.share.Field.TITLE] = &#39;<data:blog.pageName/>&#39;;
params[google.orkut.share.Field.DESTINATION_URL] = &#39;<data:blog.url/>&#39;;
var connection = new google.orkut.share.Connection(params);
document.getElementById(&#39;orkut-share&#39;).onclick =
function(e) { connection.send(&#39;;, {}); };
}, true);
<!--orkut share end-->
Now search for the <div class='post-header-line-1'> tag in your template and add the below code after this tag :
<b:if cond='data:blog.pageType == "item"'>
<span id="orkut-share" style="cursor:pointer; border:1px solid black">
<img src=""/>
If you dont find <div class='post-header-line-1'> then search for <data:post.body/> and paste the above code below this tag.

That’s all. Save your template and see the changes. If you face any problems please do add comments.

Subscribe to our blog

Do you have any Suggestions, add your comment. Please don't Spam!
If you like this site >> Subscribe to our feed


Post a Comment