Search This Blog

Wednesday, October 27, 2010

Add Digg Button to your Post Page

Do you know Digg.com?  I'm sure you know about digg.com, because digg.com is a most popular site in the world. With digg.com you can discover and share your blog content. So it's one of the way to increase your blog traffic. But I do not want to converse many hitting about digg.com, which I will focused is the step of installing the digg button on your page post.
With Digg button you can easy to submit your post with yourself or with your visitor to digg.com. Feel interested to add Digg button to your blog? Follow this the steps :


1-    Login to blogger with your ID
2-    After entering the Dashboard page, click Layout.
3-    Then click Edit HTML tab.
4-    Click the Download full template link. Save your template:
5-    Please mark the little box beside Expand Widget Templates  Wait for a moment.


 Expand Widget Templates
   
 6-  Go to your template code, and find the following code like this :

<p><data:post.body/></p>

    7-Delete the above code  and replace  with following code :

<p>
<!-- DIGG -->
<div style='float:right; margin-left:10px;'>
<script type='text/javascript'>
digg_url = '<data:post.url/>';
</script>
<script         src='http://digg.com/tools/diggthis.js'
type='text/javascript'/>
</div> 
<data:post.body/>
</p>

8- Click Save Template button.
 9-Done. Now digg button was added to your post.

Submit your valuable comments, happy trying!

How to Disable Right click in Blogger /Blogspot ?

Did you noticed? that some web sites do not allow their visitors using right mouse click while pointer is on the blog area.  This option is useful for the site and blog owners, who want to minimize the possibilities of the content direct  copying  to other posts.


To Setup this tool in your blog Copy the Following code and paste it to your blog by adding a new page element. 


1-  Go to Dashboard > Layout > Add Gadget > HTML / JavaScript
2-  Copy the following code and paste it there .


<script language="JavaScript">
<!--

//Disable right mouse click Script

var message="
May be copyright ";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script>


3-  Save the html/javascript and view you blog. 


How it works?
If you right click on the webpage, a message will pop up on screen saying "May be copyright". If you want to change the message to you own one like "Function disabled" or something like that, replace the "May be copyright" text with your own message in the Javascript code.


Submit your valuable comments, happy trying!