Linkify all urls in text with php

It is a good idea to convert all urls into links in your web application like contact form, comment forms, chat application etc. To find and replace all urls with their links we will use php preg_replace function. See below example $text = “Hello Friends my website url is http://99webtools.com”; $text = preg_replace(“~[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]~”,'<a href=”$0″>$0</a>’,$text); echo […]

Disable right click on web page using jquery

Most webmasters want to protect their blog content from plagiarism. To protect blog content from copying we can do following to things. Disable right click on web page Disable content selection as this is not 100% full proof way to protect your content from copying, Because  these methods require JavaScript and user can disable JavaScript to copy […]

Add extra contact method in wordpress user profiles

WordPress has only two contact fields in users profile that is email and website. That may not be sufficient as there are many social networking sites (like Google+,facebook, twitter etc) are available to connect with users. We can add more contact methods in contact info section. To add more fields edit functions.php file in your […]