As most of you already aware about the thing that now a days Orkut allows a share button feature for websites and blogs. In this feature website owners can extend the functionality of sharing their content with visitor friends using Orkut. It is very easy to add the Orkut share button. Just follow the following simple steps and can add share this post on Orkut button.
Implenting Share Button In WordPress Blog
Step 1. Go to the theme folder of your wordpress blog. It will be like this /public_html/wp-content/themes/
Step 2. 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>
Step 3. 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, upload it to your online server and you are done now.
Now whenever you open the post of your wordpress blog you will see the Share Button feature of Orkut.