Knowledge Base Category: Development

Regex Validator

Helpful code for verification:
  public bool isphonevalid(string phone)
            string isphone = @"^(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?$";
            //return Regex.IsMatch(phone,... 						
Read more

WordPress Plugins I use

There are lots of great Wordpress plug-ins out there, I recommend the following:  
Plugin Name Created By Website Description
Add Meta Tags George Notaras Link to Site Add basic meta tags and also Opengraph, Microdata, Twitter Cards and Dublin Core metadata to optimize your web site for better SEO.
Better WP Security iThemes Link To Site Helps... Read more

How to make My Social Network Widget in WordPress open links in a new window

To make changes to your wordpress widget to open links in a new window: [caption id="attachment_1378" align="alignnone" width="300"]Standard Wordpress Social Widget Standard Wordpress Social Widget[/caption] Go to your FTP and navigate to /wp-content/themes/YourThemeName/includes/widgets/ and make a backup of "my-social-widget.php" Copy the file to your computer and edit it with notepad...
Read more

Warning: Use of undefined constant XML - assumed 'XML' (this will throw an Error in a future version of PHP) in /homepages/35/d428352912/htdocs/WilliamMendoza/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1048