Les nouveautés et Tutoriels de Votre Codeur | SEO | Création de site web | Création de logiciel





seo Add Orkut Share Button to blogger posts 2013

Seo Master present to you:

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.


2013, By: Seo Master

Labels:



Leave A Comment:

Powered by Blogger.