How to disable all links using jQuery

To disable all links using jQuery you cna use the snippet below.

Samples

jQuery Sample

If you have any questions or suggestions feel free to rate this snippet, post a comment or Contact Us via Email.

Related links:

Please rate this snippet

How to disable comments on posts older than date X in WordPress

To disable comments on posts older than date X in WordPress you can use the snippet below.

Sample mySQL

UPDATE wp_posts SET comment_status = 'closed' WHERE post_date < '2013-01-01' AND post_status = 'publish'

Please rate this snippet

How to disable or enable Trackbacks and Pingbacks in WordPress

To disable or enable Trackbacks and Pingbacks in WordPress you can use the following mysql queries.

Sample mySQL

enable

UPDATE wp_posts SET ping_status = 'open'; 

disable

UPDATE wp_posts SET ping_status = 'closed'; 

Please rate this snippet

How to remove the border of an IFrame

To Remove the Border of an IFrame you can use the snippet below.
Please note the capital B of frameBorder.

Sample HTML

<iframe src="IFRAME_URL" width="300" height="300" frameBorder="0">HERE IS A IFRAME</iframe>

if you are using HTML5 you should use the following snippet.

Sample HTML

seamless='seamless'

Please rate this snippet

How to disable Devexpress Node Movement while Drag Drop in C# and VB.NET

To disable Devexpress Node Movement while Drag Drop in C# and VB.NET you can use the following snippet.

Sample C#

private void treeList1_DragOver(object sender, DragEventArgs e) 
{
	e.Effect = DragDropEffects.None;
}

private void treeList1_CalcNodeDragImageIndex(object sender, CalcNodeDragImageIndexEventArgs e) 
{
	e.ImageIndex = -1;
}

Sample VB.NET

Private Sub treeList1_DragOver(ByVal sender As Object, ByVal e As DragEventArgs)
	e.Effect = DragDropEffects.None
End Sub

Private Sub treeList1_CalcNodeDragImageIndex(ByVal sender As Object, ByVal e As CalcNodeDragImageIndexEventArgs)
	e.ImageIndex = -1
End Sub

Please rate this snippet