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.
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-->Now search for the <data:post.body/> tag in your template and add the below code after this tag :
<script src='http://www.google.com/jsapi' type='text/javascript'/>
<script type='text/javascript'>
google.load('orkut.share', '1');
google.setOnLoadCallback(function() {
var params = {};
params[google.orkut.share.Field.TITLE] = '<data:blog.pageName/>';
params[google.orkut.share.Field.DESTINATION_URL] = '<data:blog.url/>';
var connection = new google.orkut.share.Connection(params);
document.getElementById('orkut-share').onclick =
function(e) { connection.send('orkut.com', {}); };
}, true);
</script>
<!--orkut share end-->
<b:if cond='data:blog.pageType == "item"'>If you dont find<data:post.body/> then search for <div class='post-header-line-1'> and paste the above code below this tag.
<span id="orkut-share" style="cursor:pointer; border:1px solid black">
<img src="http://code.google.com/apis/orkut/docs/images/share.gif"/>
</span>
</b:if>
That’s all. Save your template and see the changes. If you face any problems please do add comments.
0 comments:
Post a Comment