Antivirus|Multimedia Tools|Burning Tools|Internet Tools|Recovery Tools|Converter|PC Games|Full Version Software|Mediafire|Ebooks english...

Monday, April 16, 2012

Add Orkut Share Button to blogger posts

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-->
<script src='http://www.google.com/jsapi' 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;orkut.com&#39;, {}); };
}, true);
</script>
<!--orkut share end-->
Now search for the <data:post.body/> 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="http://code.google.com/apis/orkut/docs/images/share.gif"/>
</span>
</b:if>
If you dont find<data:post.body/> then search for <div class='post-header-line-1'> 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.


Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 comments

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

 
© 2011 English Software Collection
Designed by BlogThietKe Cooperated with Duy Pham
Released under Creative Commons 3.0 CC BY-NC 3.0
Posts RSSComments RSS
Back to top