Saturday, May 29, 2010

How to add orkut share button in blogs

Learn How to add Orkut Post Share Button in Wordpress Blog
There will be a header.php file in your wordpress theme’s folder and you need to paste the following code above </head> tag
<script type=”text/javascript” src=”http://www.google.com/jsapi”></script>
<script type=”text/javascript”>
google.load(‘orkut.share’, ‘1′);
google.setOnLoadCallback(function() {
var params = {};
params[google.orkut.share.Field.TITLE] = ‘<?php the_title() ?>’;
params[google.orkut.share.Field.DESTINATION_URL] = ‘<?php the_permalink() ?>’;
var connection = new google.orkut.share.Connection(params);
document.getElementById(‘orkut-share’).onclick =
function(e) { connection.send(‘orkut.com’, {}); };
}, true);

</script>
Now save the header.php file and go to Single.php file or wherever you want to put this button and paste the following code there.
<span id=”orkut-share” style=”cursor:pointer; border:0px solid black”>
<img src=”http://3.bp.blogspot.com/_eEuHGVw5WLg/SwpFfy4rMqI/AAAAAAAAAAk/jdm-zBiDdv8/s320/share.gif” alt=”Share Orkut” />
</span>
Save the file and you are ready for using the Share Button feature of ORKUT API.

No comments:

Post a Comment

About Me

My photo
Hyderabad, ap, India
Hi Friends This Is Ranjith Kumar, from Mahabubnagar, contact for advise & ads my mail id:- ranjithsvits@gmail.com...