<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MyNewSitePreview.com</title>
	<atom:link href="http://mynewsitepreview.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mynewsitepreview.com</link>
	<description>Affordable, Effective &#38; Easy-to-Use Websites for Growing Businesses</description>
	<lastBuildDate>Sun, 24 Jun 2012 22:17:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CSV to SortTable v3.0 Is Now Available</title>
		<link>http://mynewsitepreview.com/1302/csv-to-sorttable-v3-0-is-now-available/</link>
		<comments>http://mynewsitepreview.com/1302/csv-to-sorttable-v3-0-is-now-available/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 19:37:19 +0000</pubDate>
		<dc:creator>Shaun Scovil</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://mynewsitepreview.com/?p=1302</guid>
		<description><![CDATA[A new version of the popular WordPress plugin CSV-to-SortTable has been released today. Version 3.0 resolves an issue that many users had reported when the PHP function fopen() was restricted on their web server. The new version uses cURL functions instead. In addition, some minor cosmetic changes were made and the code itself has been<a href="http://mynewsitepreview.com/1302/csv-to-sorttable-v3-0-is-now-available/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://mynewsitepreview.com/wp-content/uploads/2012/02/csv-to-sortable-v3-wordpress-plugin.jpg" alt="CSV to SortTable v3 WordPress Plugin" title="CSV to SortTable v3 WordPress Plugin" width="300" height="210" class="alignright size-full wp-image-1303" />A new version of the popular WordPress plugin <a href="http://mynewsitepreview.com/csv2sorttable/">CSV-to-SortTable</a> has been released today. Version 3.0 resolves an issue that many users had reported when the PHP function <em>fopen()</em> was restricted on their web server. The new version uses <a href="http://www.php.net/manual/en/ref.curl.php">cURL</a> functions instead. In addition, some minor cosmetic changes were made and the code itself has been tidied up a bit.</p>
<p><a href="http://wordpress.org/extend/plugins/csv-to-sorttable/">Download v3.0</a> | <a href="http://mynewsitepreview.com/csv2sorttable-wordpress-plugin-live-demo">Live Demo</a> | <a href="http://mynewsitepreview.com/csv2sorttable/">Documentation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mynewsitepreview.com/1302/csv-to-sorttable-v3-0-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Small Changes Make a Big Difference</title>
		<link>http://mynewsitepreview.com/1218/small-changes-make-a-big-difference/</link>
		<comments>http://mynewsitepreview.com/1218/small-changes-make-a-big-difference/#comments</comments>
		<pubDate>Fri, 24 Feb 2012 13:00:37 +0000</pubDate>
		<dc:creator>Shaun Scovil</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://mynewsitepreview.com/?p=1218</guid>
		<description><![CDATA[Last year I developed a WordPress website for Luke Ryan, host of the popular web series In The Mix. We used the Habitat theme and only made a few cosmetic changes to the default design, because it looked pretty good right out of the box. But this year Luke wanted to spice things up a<a href="http://mynewsitepreview.com/1218/small-changes-make-a-big-difference/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-1221" title="Luke Ryan Website Makeover" src="http://mynewsitepreview.com/wp-content/uploads/2012/02/luke-ryan-website-makeover.jpg" alt="Luke Ryan Website Makeover" width="300" height="210" />Last year I developed a WordPress website for <a href="http://lukearyan.com/"><strong>Luke Ryan</strong></a>, host of the popular web series <a href="http://inthemixboston.com"><em>In The Mix</em></a>. We used the <a href="http://www.kriesi.at/themedemo/?theme=habitat">Habitat</a> theme and only made a few cosmetic changes to the default design, because it looked pretty good right out of the box. But this year Luke wanted to spice things up a bit and really make his website pop &#8212; without busting his marketing budget! So we sat down together and decided on a few small changes that would make a big visual impact&#8230;</p>
<p><span id="more-1218"></span></p>
<h2>Design On the Fly With Google Chrome</h2>
<p>First, Luke and I decided to try out some different looks using <a href="http://www.google.com/chrome">Google Chrome</a>. Chrome is one of the most powerful free tools available to web designers, because it allows us to test out CSS and HTML changes in real-time. We used Chrome to play around with all sorts of different looks before deciding on one.</p>
<p><a href="http://mynewsitepreview.com/wp-content/uploads/2012/02/case_lar-chrome-view.jpg" class="lightview" data-lightview-group="group-1218" data-lightview-options="background: { color: '#ffffff', opacity: 1.00 }, skin: 'mac', border: { color: '#ffffff', opacity: 1.00, size: 8 }, controls: 'relative', overlay: { background: '#000000', opacity: 0.70, close: true }, radius: { size: 8, position: 'border' }, shadow: { color: '#000000', opacity: 0.30, blur: 1 }" data-lightview-title="Design on the fly with Google Chrome"><img src="http://mynewsitepreview.com/wp-content/uploads/2012/02/case_lar-chrome-view-300x182.jpg" alt="Design on the fly with Google Chrome" title="Design on the fly with Google Chrome" width="300" height="182" class="alignright size-medium wp-image-1230" /></a>If you&#8217;ve never used Chrome for web design before, give it a try! Right-click on a web page and choose &#8216;Inspect Element&#8217;.</p>
<p>The left pane of the inspection window shows the HTML source, and the right pane shows all of the CSS rules that are being applied to whichever HTML element you click on. If you double-click on the CSS rules, you can change them or add new ones.</p>
<h2>Draw Inspiration From the Web</h2>
<p>Luke and I agreed that a darker background would give his theme some much needed contrast. Now we had to decide what to do with his header. In particular, his logo looked a bit subdued on a blue background and the navigation menu needed to stand out more.</p>
<p><a href="http://mynewsitepreview.com/wp-content/uploads/2012/02/case_lar-inspiration.jpg" class="lightview" data-lightview-group="group-1218" data-lightview-options="background: { color: '#ffffff', opacity: 1.00 }, skin: 'mac', border: { color: '#ffffff', opacity: 1.00, size: 8 }, controls: 'relative', overlay: { background: '#000000', opacity: 0.70, close: true }, radius: { size: 8, position: 'border' }, shadow: { color: '#000000', opacity: 0.30, blur: 1 }" data-lightview-title="Screenshot of IGN.com"><img class="alignright size-medium wp-image-1240" title="Screenshot of IGN.com" src="http://mynewsitepreview.com/wp-content/uploads/2012/02/case_lar-inspiration-300x182.jpg" alt="Screenshot of IGN.com" width="300" height="182" /></a>Luke cleverly began showing me some websites that he really liked the style of. One of those sites (www.IGN.com) provided inspiration for the new header design we created.</p>
<p>We liked the idea of using a larger logo silhouette behind the actual logo. This worked perfectly with Luke&#8217;s branding, which also has a prominent graphic element.</p>
<h2>Focus On the Fonts</h2>
<p>In addition to re-designing the header and changing the background color, we made the text on the site easier to read by changing the font and text color. These simple changes made Luke&#8217;s blog much easier on the eyes, which resulted in a better user experience.</p>
<p>All of these changes, combined with our brainstorming session, took roughly two hours of billable time. Talk about staying under budget!</p>
<h2>Before&#8230;</h2>
<p><a href="http://mynewsitepreview.com/wp-content/uploads/2012/02/case_lar-before.jpg" class="lightview" data-lightview-group="group-1218" data-lightview-options="background: { color: '#ffffff', opacity: 1.00 }, skin: 'mac', border: { color: '#ffffff', opacity: 1.00, size: 8 }, controls: 'relative', overlay: { background: '#000000', opacity: 0.70, close: true }, radius: { size: 8, position: 'border' }, shadow: { color: '#000000', opacity: 0.30, blur: 1 }" data-lightview-title="Luke Ryan&#039;s Website (Before)"><img src="http://mynewsitepreview.com/wp-content/uploads/2012/02/case_lar-before-1024x621.jpg" alt="Luke Ryan&#039;s Website (Before)" title="Luke Ryan&#039;s Website (Before)" width="1024" height="621" class="aligncenter border size-large wp-image-1249" /></a></p>
<p>We began with a very washed-out theme that was difficult to read.</p>
<h2>&#8230;and After</h2>
<p><a href="http://mynewsitepreview.com/wp-content/uploads/2012/02/case_lar-after.jpg" class="lightview" data-lightview-group="group-1218" data-lightview-options="background: { color: '#ffffff', opacity: 1.00 }, skin: 'mac', border: { color: '#ffffff', opacity: 1.00, size: 8 }, controls: 'relative', overlay: { background: '#000000', opacity: 0.70, close: true }, radius: { size: 8, position: 'border' }, shadow: { color: '#000000', opacity: 0.30, blur: 1 }" data-lightview-title="Luke Ryan&#039;s Website (After)"><img src="http://mynewsitepreview.com/wp-content/uploads/2012/02/case_lar-after-1024x621.jpg" alt="Luke Ryan&#039;s Website (After)" title="Luke Ryan&#039;s Website (After)" width="1024" height="621" class="aligncenter border size-large wp-image-1250" /></a></p>
<p>We ended with a bolder, more colorful site that is easier on the eyes.</p>
<h2>What Do You Think?</h2>
<p>Do you have an opinion on Luke&#8217;s new web design? Let&#8217;s hear it!</p>
]]></content:encoded>
			<wfw:commentRss>http://mynewsitepreview.com/1218/small-changes-make-a-big-difference/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Designing the Dreaded Mobile Theme</title>
		<link>http://mynewsitepreview.com/1144/designing-the-dreaded-mobile-theme/</link>
		<comments>http://mynewsitepreview.com/1144/designing-the-dreaded-mobile-theme/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 17:00:20 +0000</pubDate>
		<dc:creator>Shaun Scovil</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://mynewsitepreview.com/?p=1144</guid>
		<description><![CDATA[For a long time, I dreaded designing websites for mobile devices. Just the thought of trying to keep pace with this rapidly-evolving industry was enough to make me consider a career change. I often took (what I thought was) the easy way out by using a WordPress plugin like WPtouch, but doing so limited my<a href="http://mynewsitepreview.com/1144/designing-the-dreaded-mobile-theme/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://mynewsitepreview.com/wp-content/uploads/2012/02/responsive-web-design.jpg" alt="Responsive Web Design" title="Responsive Web Design" width="300" height="210" class="alignright size-full wp-image-1171" />For a long time, I dreaded designing websites for mobile devices. Just the thought of trying to keep pace with this rapidly-evolving industry was enough to make me consider a career change. I often took (what I thought was) the easy way out by using a WordPress plugin like <a href="http://wordpress.org/extend/plugins/wptouch/">WPtouch</a>, but doing so limited my ability to provide a solid user experience. Finally, I decided to confront my fear&#8230;and the solution I found was so simple it scared me.</p>
<p><span id="more-1144"></span></p>
<h2>Responsive Web Design</h2>
<p>The problem with designing for mobile devices is that there are so many of them, and they all have different screen sizes and resolutions. To make things worse, most modern devices can switch orientation from portrait to landscape on the fly.</p>
<p>The solution is not to design for the device, but for the width of the screen.</p>
<p><strong><em>Smashing Magazine</em></strong> has a <a href="http://bit.ly/xmFVl0">great article on responsive web design</a> that helped me learn the ropes. I strongly recommend reading it to anyone who designs or maintains a website.</p>
<p>Rather than reiterate what is said in that article, I wanted to share an example of these techniques being used in a WordPress theme.</p>
<h2>Determine Your Objective</h2>
<p>My client&#8217;s website, <a href="http://seaportvet.com/">www.seaportvet.com</a>, is built using the <a href="http://themeforest.net/item/executive-wp-business-solution-wordpress-theme/521791">Executive WP</a> theme. We decided that any browser with a screen width of 320px or less, which includes the iPhone in portrait mode, should display a simplified version of the site. Anything wider than 320px, including the iPhone in landscape mode, should see the full site.</p>
<p>The simplified version of the site should not contain:</p>
<ul>
<li>any images except the company logo</li>
<li>certain widgets, such as the PDF brochure download link</li>
<li>any columns or form fields displayed side-by-side</li>
</ul>
<p>Knowing what we didn&#8217;t want to appear in the mobile version of the site made it very easy to write new CSS rules specifically for the small screen.</p>
<h2>Write Your CSS</h2>
<p>Here is the CSS we added to the theme&#8217;s stylesheet:</p>
<pre class="brush: css; title: ; notranslate">
/* MOBILE DEVICES */	

@media only screen
and (max-width : 320px) {

	/* Style the main page elements using % of screen size */
	body { padding: 0; }
	#wrap { width: 100%; }

	/* Hide these items */
	#slideshow,
	img,
	#info-menu,
	.map,
	.widget_categories,
	.widget_archive,
	.ewf_widget_brochure {
		display: none;
	}

	/* Scale logo image based on screen size */
	#logo img {
		clear: both;
		display: block;
		margin: 0;
		width: 90%;
		max-width: 300px;
	}

	/* Convert navigation menu to a vertical list */
	#dropdown-menu {
		clear: both;
		display: block;
		float: left !important;
		margin: 10px 0;
	} 

	/* Stack columns and content on top of one another  */
	#dropdown-menu li,
	#content,
	.col-220,
	.col-520,
	.col-700 {
		clear: both;
		width: 80%;
	}

	/* Prevent Gravity Form fields from appearing side-by-side */
	.ginput_left,
	.ginput_right,
	.gf_left_half,
	.gf_right_half {
		clear: both !important;
		float: left !important;
		width: 80% !important;
	}

}
</pre>
<p>And that&#8217;s it!</p>
<p>We identified the IDs and classes that needed to be changed, wrote new CSS rules for them, and enclosed them in a <a href="http://www.w3.org/TR/css3-mediaqueries/#media0">media query</a>. Easy peasy.</p>
<h2>See It In Action</h2>
<p>Check it out:</p>
<p><a href="http://seaportvet.com/">www.seaportvet.com</a></p>
<p>Even if you don&#8217;t have a mobile device with a small screen, you can see what the website looks like by re-sizing your browser window.</p>
<p>Once the width hits 320px, the site automatically adjusts to fit the screen.</p>
<h2>Discussion</h2>
<p>Have you done anything cool with responsive web design? Share a link and tell us about it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://mynewsitepreview.com/1144/designing-the-dreaded-mobile-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Write a Simple Shortcode Plugin for WordPress</title>
		<link>http://mynewsitepreview.com/1047/how-to-write-a-simple-shortcode-plugin-for-wordpress/</link>
		<comments>http://mynewsitepreview.com/1047/how-to-write-a-simple-shortcode-plugin-for-wordpress/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 14:30:23 +0000</pubDate>
		<dc:creator>Shaun Scovil</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://mynewsitepreview.com/?p=1047</guid>
		<description><![CDATA[Shortcodes are, in my opinion, one of the coolest features of WordPress. Many plugins use them to allow you to insert a chunk of code (like a web form) into a post or page, but shortcodes can also be used as macros to display frequently-used words and phrases. That comes in handy if you ever<a href="http://mynewsitepreview.com/1047/how-to-write-a-simple-shortcode-plugin-for-wordpress/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://mynewsitepreview.com/wp-content/uploads/2012/02/wordpress-shortcode-plugin.jpg" alt="WordPress Shortcode Plugin" title="WordPress Shortcode Plugin" width="300" height="210" class="alignright size-full wp-image-1081" />Shortcodes are, in my opinion, one of the coolest features of WordPress. Many <a href="http://mynewsitepreview.com/wordpress-plugins/">plugins</a> use them to allow you to insert a chunk of code (like a web form) into a post or page, but shortcodes can also be used as macros to display frequently-used words and phrases. That comes in handy if you ever need to change something like your telephone number, because you can update it in just one place and the change will occur site-wide.</p>
<p><span id="more-1047"></span></p>
<p>This article is intended to quickly teach WordPress users with a basic understanding of HTML how to create a WordPress plugin and generate custom shortcodes&#8230;</p>
<h2>Overview</h2>
<p>Here is a shortcode plugin I wrote for a client, followed by an explanation of the code.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/*
Plugin Name: Kirby's Custom Shortcodes
Plugin URI: http://mnsp.co/
Description: Custom shortcodes for Kirby's Kitchen
Version: 1.0
Author: Shaun Scovil
Author URI: http://shaunscovil.com
License: GPLv2
*/

function kirbys_address_block() {

	$location = array(
		'business_name' =&gt; 'Kirby\'s Kitchen',
		'street_address' =&gt; '440 Broadway',
		'city_state_zip' =&gt; 'Everett, MA 02149',
		'telephone' =&gt; '(617) 294-4135',
		'directions' =&gt; '&lt;a href=&quot;http://bit.ly/wRidj7&quot;&gt;Directions&lt;/a&gt;'
	);

	ob_start();

	echo '&lt;div&gt;';
	foreach( $location as $line ) { echo $line . '&lt;br /&gt;'; }
	echo '&lt;/div&gt;';

	$content = ob_get_contents();
	ob_end_clean();
	return $content;

}
add_shortcode( 'address', 'kirbys_address_block' );

?&gt;
</pre>
<p>Got all that? Good. Now let&#8217;s break it down&#8230;</p>
<h2>Part 1: Getting Started</h2>
<p>All you need to write a WordPress plugin, or any PHP file, is a text editor like Notepad. But a much better program to use is <a href="http://notepad-plus-plus.org/download/v5.9.8.html">Notepad++</a>, because it highlights syntax the way you see it above and makes it easier to spot mistakes.</p>
<p>So to get started, open your text editor and copy/paste the following:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/*
Plugin Name: My Custom Shortcodes
Plugin URI: http://mnsp.co/
Description: Custom shortcodes for my website
Version: 1.0
Author: Shaun Scovil
Author URI: http://shaunscovil.com
License: GPLv2
*/

// YOUR FUNCTION GOES HERE

?&gt;
</pre>
<p>This is known as the plugin header, which tells WordPress (and the person using it) a little bit about your plugin.</p>
<p>The very first and last lines (with the question marks) are PHP open- and close tags. They identify everything in between as PHP code, so the computer knows what to do with it.</p>
<h2>Part 2: Writing a Function</h2>
<p>Now we&#8217;re ready to write the function that will generate the output of our shortcode.</p>
<p>Delete the line that says &#8220;// YOUR FUNCTION GOES HERE&#8221; and replace it with this:</p>
<pre class="brush: php; title: ; notranslate">
function my_address_block() {

	$location = array(
		'business_name' =&gt; 'YOUR BUSINESS NAME',
		'street_address' =&gt; 'YOUR STREET ADDRESS',
		'city_state_zip' =&gt; 'CITY, STATE ZIP',
		'telephone' =&gt; 'YOUR PHONE NUMBER',
		'directions' =&gt; '&lt;a href=&quot;YOUR LINK TO GOOGLE MAPS&quot;&gt;Directions&lt;/a&gt;'
	);

	// YOUR OUTPUT CODE GOES HERE

}
// REGISTER YOUR SHORTCODE FUNCTION HERE
</pre>
<p>What we have done here is created an array of string variables, each containing one line of text that our shortcode will output. Just after:</p>
<pre class="brush: plain; title: ; notranslate"> $location = array( </pre>
<p>&#8230;you&#8217;ll see a series of <strong>key =&gt; value</strong> pairs. The first part, or the &#8216;key&#8217;, is a variable name. It can be anything, but should be something that tells you what information will be stored in the variable.</p>
<p>The second part, or the &#8216;value&#8217;, is the text you want to display. You can use HTML tags in a value, like you see in the &#8216;directions&#8217; value above. Just be sure you use single quotes at the beginning and end, and double quotes within the HTML.</p>
<p>Go ahead and replace all of the &#8216;values&#8217; with your business info, being sure to contain them with single quotes. If your business name contains a single quote, like &#8216;Kirby&#8217;s Kitchen&#8217;, put a \ before it (ex: &#8216;Kirby\&#8217;s Kitchen&#8217;).</p>
<h2>Part 3: Generating Output</h2>
<p>Now that we have an array containing the text and HTML we want to display, we need to tell the computer to actually send it to the screen.</p>
<p>Delete the line that says &#8220;// YOUR OUTPUT CODE GOES HERE&#8221; and replace it with this:</p>
<pre class="brush: php; title: ; notranslate">
	ob_start();

	echo '&lt;div&gt;';
	foreach( $location as $line ) { echo $line . '&lt;br /&gt;'; }
	echo '&lt;/div&gt;';

	$content = ob_get_contents();
	ob_end_clean();
	return $content;
</pre>
<p>First, we tell the computer to buffer our output, or store it in memory, using the function:</p>
<pre class="brush: plain; title: ; notranslate"> ob_start(); </pre>
<p>Think of this as hitting the record button on a video camera. If we don&#8217;t buffer our output, it will appear at the top of our page or post rather than in the exact spot we place our shortcode.</p>
<p>Next, we use <strong>echo</strong> commands to display our HTML. Each echo command should be followed by a &#8216;value&#8217; and end with a semicolon. So you see the first and last echo contains an opening- and closing <strong>div</strong> tag, respectively.</p>
<p>Between the div tags, we could just write something like:</p>
<pre class="brush: php; title: ; notranslate">
echo 'My Business Name&lt;br /&gt;Address&lt;br /&gt;City, State, Zip&lt;br /&gt;Telephone&lt;br /&gt;&lt;a href=&quot;http://maps.google.com/&quot;&gt;Directions&lt;/a&gt;';
</pre>
<p>&#8230;but that&#8217;s just messy and will be more difficult to update later on, if you need to make a change.</p>
<p>So instead we assign a new variable (called <strong>$line</strong> in this example) a value that is equal to each value in our array (which we called <strong>$location</strong> when we defined it in Step 2) using a loop.</p>
<p>In the loop, we echo each variable in sequence and add a <strong>line break</strong> HTML tag to the end of it.</p>
<p>After echoing our output, which has been buffered (or &#8216;recorded&#8217;), we save the final product by storing it in a new variable called <strong>$content</strong> using the function:</p>
<pre class="brush: plain; title: ; notranslate"> ob_get_contents(); </pre>
<p>Then we stop recording and clear out the memory (waste not, want not) using the function:</p>
<pre class="brush: plain; title: ; notranslate"> ob_end_clean(); </pre>
<p>And finally, we return the <strong>$content</strong> variable that contains our output.</p>
<h2>Last Step: Register Your Shortcode</h2>
<p>The last easy step is to tell WordPress that, whenever a specific word appears between two brackets (ex: <strong>[address]</strong>), it should run the function you just wrote.</p>
<p>Delete the line that says &#8220;// REGISTER YOUR SHORTCODE FUNCTION HERE&#8221; and replace it with this:</p>
<pre class="brush: php; title: ; notranslate">
add_shortcode( 'address', 'my_address_block' );
</pre>
<p>The first value in the parenthesis is the word that, when placed between brackets, will trigger your shortcode. And the second is the name of the function you just created.</p>
<p>Congratulations! You just wrote a shortcode plugin for WordPress. Pretty simple, yeah?</p>
<p>Now just log into your WordPress admin page, go to <strong>Plugins &gt; Add New</strong>, click the &#8216;Upload&#8217; link at the top, and install it.</p>
<h2>Any Questions?</h2>
<p>Post your questions as comments below and I&#8217;ll do my best to answer them.</p>
]]></content:encoded>
			<wfw:commentRss>http://mynewsitepreview.com/1047/how-to-write-a-simple-shortcode-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PHP: Converting URLs and Email Addresses into HTML Links</title>
		<link>http://mynewsitepreview.com/750/php-converting-urls-and-email-addresses-into-html-links/</link>
		<comments>http://mynewsitepreview.com/750/php-converting-urls-and-email-addresses-into-html-links/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 02:32:32 +0000</pubDate>
		<dc:creator>Shaun Scovil</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://mynewsitepreview.com/?p=750</guid>
		<description><![CDATA[Recently, I needed to find a way to search a text string and convert any URLs and/or email addresses contained within that string (including plain old &#8216;www&#8217; web addresses) into proper HTML links. This was surprisingly difficult, because I don&#8217;t have a clue when it comes to Regular Expressions (aka: &#8216;Regex&#8217;). A quick Google search<a href="http://mynewsitepreview.com/750/php-converting-urls-and-email-addresses-into-html-links/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://mynewsitepreview.com/wp-content/uploads/2011/11/regex.jpg" alt="Using RegEx to convert URLs &amp; email addresses into HTML links" title="Using RegEx to convert URLs &amp; email addresses into HTML links" width="300" height="179" class="alignright size-full wp-image-760" />Recently, I needed to find a way to search a text string and convert any URLs and/or email addresses contained within that string (including plain old &#8216;www&#8217; web addresses) into proper HTML links.</p>
<p>This was surprisingly difficult, because I don&#8217;t have a clue when it comes to Regular Expressions (aka: &#8216;Regex&#8217;). A quick Google search turned up plenty of different Regex patterns for detecting URLs, and at least one for spotting email addresses, but nothing that covered both&#8230;</p>
<p><span id="more-750"></span></p>
<h2>My Solution</h2>
<p>After some Frankenstein-like experimentation, this was the best solution I came up with: <a href="http://pastebin.com/t5md1FEG" target="blank">http://pastebin.com/t5md1FEG</a></p>
<p>Using this code, if you start with a text string:</p>
<pre class="brush: php; title: ; notranslate">
$text = &quot;Visit use online at: www.MyNewSitePreview.com or contact us at: info@mynewsitepreview.com&quot;
</pre>
<p>&#8230;you end up with a converted text string:</p>
<pre class="brush: php; title: ; notranslate">
$text = 'Visit use online at: &lt;a href=&quot;http://www.MyNewSitePreview.com&quot;&gt;www.MyNewSitePreview.com&lt;/a&gt; or contact us at: &lt;a href=&quot;mailto:info@mynewsitepreview.com&quot;&gt;info@mynewsitepreview.com&lt;/a&gt;'
</pre>
<h2>Challenge</h2>
<p>Think you can do better? Leave a comment below, and use <a href="http://pastebin.com/">PasteBin</a> to share your code!</p>
]]></content:encoded>
			<wfw:commentRss>http://mynewsitepreview.com/750/php-converting-urls-and-email-addresses-into-html-links/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A Business Owner&#8217;s Guide to Social Media</title>
		<link>http://mynewsitepreview.com/266/a-business-owners-guide-to-social-media-part-one/</link>
		<comments>http://mynewsitepreview.com/266/a-business-owners-guide-to-social-media-part-one/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 21:58:13 +0000</pubDate>
		<dc:creator>Shaun Scovil</dc:creator>
				<category><![CDATA[Social Media]]></category>

		<guid isPermaLink="false">http://mynewsitepreview.com/?p=266</guid>
		<description><![CDATA[While developing websites for clients, I&#8217;m often asked about social media and how it can be used effectively to promote a business&#8230; Everyone knows social media can be a powerful marketing tool, but a lot of business owners are unsure where to begin. To them, I say start with these three steps: Identify your audience<a href="http://mynewsitepreview.com/266/a-business-owners-guide-to-social-media-part-one/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p><iframe width="300" height="182" src="http://www.youtube.com/embed/qp0HIF3SfI4?rel=0&#038;autoplay=0&#038;start=142" frameborder="0" allowfullscreen></iframe>While developing websites for clients, I&#8217;m often asked about social media and how it can be used effectively to promote a business&#8230;</p>
<p>Everyone knows social media can be a powerful marketing tool, but a lot of business owners are unsure where to begin. To them, I say start with these three steps:</p>
<ol>
<li>Identify your audience</li>
<li>Decide what to share</li>
<li>Create a publishing schedule</li>
</ol>
<p><span id="more-266"></span></p>
<h2>Step 1: Identify Your Audience</h2>
<p>More than anything, the purpose of social media marketing should be to <strong>compel others to spread your message for you</strong>. And the people who are most likely to do that are those who already share your core beliefs and principles. They should be your target audience.</p>
<p>In the attached video above, <a href="http://www.startwithwhy.com/" rel="nofollow">Simon Sinek</a> gives a brilliant lecture on creating messages that inspire action by clearly identifying <em>why</em> an organization does what it does, rather than just stating <em>what</em> it does and <em>how</em> it does it.</p>
<p>During his lecture, Simon makes three key points:</p>
<ul>
<li>&#8220;People don&#8217;t buy what you do; they buy <em>why you do it</em>.&#8221;</li>
<li>&#8220;If you talk about what you believe, you will attract people who <em>believe</em> what you believe.&#8221;</li>
<li>&#8220;The goal is not to sell to people who need what you have; the goal is to sell to people who believe what you believe.&#8221;</li>
</ul>
<p>In terms of social media, I would translate this as:</p>
<ul>
<li>&#8220;People don&#8217;t share what you post; they share <em>what they think</em> about what you post.&#8221;</li>
<li>&#8220;If you tweet about what you believe, you will attract followers who believe what you tweet.&#8221;</li>
<li>&#8220;The goal is not to friend people who need what you have; the goal is to friend people who will share what you share.&#8221;</li>
</ul>
<p>Social media marketing is not <em>advertising</em>. It&#8217;s <em>recruiting</em>. Your target audience should consist of people who are likely to endorse your brand because they share your core beliefs.</p>
<h2>Step 2: Decide What to Share</h2>
<p>Now that you know who your target audience is, you need to decide what sorts of useful information you can regularly share with them. This is called <strong>Content Marketing</strong> and is a crucial ingredient that many social media campaigns lack. </p>
<p>For example, if your business is an insurance agency it would make sense to share information about <em>risk management</em>. You could break this information into categories, such as:</p>
<ul>
<li><strong>News</strong> about government regulations that could impact insurance costs or coverage;</li>
<li><strong>Cases</strong> in which disaster struck and those with insurance came out on top;</li>
<li><strong>Ideas</strong> about new risks that may stem from economic, political or technological changes.</li>
</ul>
<p>Once you have your content, you can post it on your blog and then syndicate it on sites like Facebook and Twitter. If your website doesn&#8217;t have a blog you can create one using <a href="http://www.blogger.com/" rel="nofollow">Blogger</a> or <a href="http://wordpress.com/" rel="nofollow">WordPress</a>, but you&#8217;ll miss out on the organic search benefits of hosting it on your own website.</p>
<p>Writing original content is great, but most small business owners don&#8217;t have enough time in the day as it is. Luckily, corporate blogging doesn&#8217;t have to be that time-consuming. In fact, 80-90% of what you share could be articles and news found elsewhere on the web.</p>
<p>Use resources like <a href="http://news.yahoo.com/" rel="nofollow">Yahoo! News</a> and <a href="http://www.google.com/alerts" rel="nofollow">Google Alerts</a> to find interesting content to share. Then link to an article, discuss it briefly on your blog, and pose a question to your readers. This can lead to more sharing, as well as audience participation (if you allow comments).</p>
<div class="warnbox"><strong>IMPORTANT:</strong> When sharing other people&#8217;s content, be sure to take a firm stance on the issue being discussed. If you don&#8217;t have anything meaningful to add to the conversation, you&#8217;ll only succeed in driving traffic to other websites!
</div>
<h2>Step 3: Create a Publishing Schedule</h2>
<p><img src="http://mynewsitepreview.com/wp-content/uploads/2011/07/social-schedule.jpg" alt="Social Media Publishing Schedule" title="Social Media Publishing Schedule" width="300" height="300" class="alignright size-full wp-image-564" style="border: 0px;" /> A well-thought-out publishing schedule can be the difference between success and failure for a social media campaign. Without discipline and regimen, you are likely to spend too much time online achieving too few results.</p>
<p>Start by identifying certain times of day when your target audience is likely to be slacking off. Folks who work 9-5 are probably easiest to reach at <strong>9am</strong> (just settling in), <strong>12pm</strong> (lunch time) and <strong>3pm</strong> (break time). Get in the habit of being social every day around those times.</p>
<p>Then figure out what sort of information you will share at each time, each day of the week. Using the insurance example above, you might decide to share <strong>News</strong> in the morning, <strong>Cases</strong> at lunch time, and <strong>Ideas</strong> in the afternoon.</p>
<p>Finally, set <strong>specific</strong> and <strong>measurable</strong> goals for your social activities. For example, attempt to drive traffic to one of your web pages every Tuesday and Friday, or make a personal connection with one new fan or follower every day of the week.</p>
<h2>The Bottom Line</h2>
<p>Social media marketing takes time and effort, but mostly effort. Your goal should be to build a fan base that shares your organization&#8217;s core beliefs. Put some thought into it, find relevant ways to add value, and use discipline to stay productive while being social.</p>
<p>I&#8217;d love to hear what you think! Post your questions, comments, and social media wisdom below&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://mynewsitepreview.com/266/a-business-owners-guide-to-social-media-part-one/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google+ for Businesses</title>
		<link>http://mynewsitepreview.com/512/google-for-businesses-other-non-user-entities/</link>
		<comments>http://mynewsitepreview.com/512/google-for-businesses-other-non-user-entities/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 15:10:46 +0000</pubDate>
		<dc:creator>Shaun Scovil</dc:creator>
				<category><![CDATA[Social Media]]></category>

		<guid isPermaLink="false">http://mynewsitepreview.com/?p=512</guid>
		<description><![CDATA[I&#8217;ve been using Google+ in its beta phase for about a week now, and already it is abundantly clear that this new social network will forever change the Web. The big question for social media marketers is: When can we start using G+ to promote our business or brand? While Google has clearly stated that<a href="http://mynewsitepreview.com/512/google-for-businesses-other-non-user-entities/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://mynewsitepreview.com/wp-content/uploads/2011/07/google-plus-for-business.jpg" alt="Google Plus for Business" title="Google Plus for Business" width="300" height="170" class="alignright size-full wp-image-514" />I&#8217;ve been using <a href="https://plus.google.com/" title="Google Plus" rel="nofollow">Google+</a> in its beta phase for about a week now, and already it is abundantly clear that this new social network will forever change the Web. The big question for social media marketers is: When can we start using G+ to promote our business or brand?</p>
<p>While Google has clearly stated that it will delete profiles for &#8220;non-user entities&#8221;, there is hope in sight&#8230;</p>
<p><span id="more-512"></span></p>
<div class="infobox"><strong>Update:</strong> This article was written back in July of 2011, but it turns up in a lot of search results so I feel compelled to let you know that Google does, in fact, now allow business pages. You can create one here: <a href="http://www.google.com/+/business/">http://www.google.com/+/business/</a></div>
<h2>No G+ Business Profiles Allowed Just Yet</h2>
<p>On July 6th, Christian Oestlien &#8211; Group Product Manager at Google &#8211; said: &#8220;We have a great team of engineers actively building an amazing Google+ experience for businesses, and we will have something to show the world later this year.&#8221; However, he also warned that Google is &#8220;discouraging businesses from using regular profiles to connect with Google+ users,&#8221; and they will &#8220;actively work with profile owners to shut down non-user profiles.&#8221; (Read the <a href="http://bit.ly/oxZLpA" rel="nofollow">full article here</a>.)</p>
<p>So for now, there is no way to create a business page on G+. However, if you want to be involved in the testing phase of G+ for businesses (and other non-user entities, such as a places and brands) you can submit an application here: <a href="http://goo.gl/zq95C ">http://goo.gl/zq95C</a></p>
<p>In the meantime, I highly recommend signing up for a personal G+ user account as soon as possible. This will allow you to check out the interface and offer feedback to the development team.</p>
<h2>What G+ Marketing Features Do You Want?</h2>
<p>What features could G+ offer that would benefit your business or organization? And what would you like to see Google <em>avoid</em> doing to prevent spam and over-commercialization?</p>
]]></content:encoded>
			<wfw:commentRss>http://mynewsitepreview.com/512/google-for-businesses-other-non-user-entities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Tools and WordPress 3.2</title>
		<link>http://mynewsitepreview.com/501/jquery-tools-and-wordpress-3-2/</link>
		<comments>http://mynewsitepreview.com/501/jquery-tools-and-wordpress-3-2/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 20:13:51 +0000</pubDate>
		<dc:creator>Shaun Scovil</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://mynewsitepreview.com/?p=501</guid>
		<description><![CDATA[For anyone using jQuery Tools in conjunction with a WordPress website, you&#8217;ll notice that WP 3.2 causes problems. This is because WP 3.2 automatically loads jQuery 1.6.1, whereas WP 3.1 loaded jQuery 1.4.4. If you&#8217;ve upgraded to WP 3.2 and need a quick fix, try this&#8230; The Quick Fix Go to your wp-admin page and<a href="http://mynewsitepreview.com/501/jquery-tools-and-wordpress-3-2/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://mynewsitepreview.com/wp-content/uploads/2011/07/jquery-tools.jpg" alt="jQuery Tools - The missing UI library for the Web" title="jQuery Tools - The missing UI library for the Web" width="300" height="163" class="alignright size-full wp-image-502" />For anyone using <a href="http://flowplayer.org/tools/index.html" rel="nofollow">jQuery Tools</a> in conjunction with a WordPress website, you&#8217;ll notice that WP 3.2 causes problems. This is because WP 3.2 automatically loads jQuery 1.6.1, whereas WP 3.1 loaded jQuery 1.4.4.</p>
<p>If you&#8217;ve upgraded to WP 3.2 and need a quick fix, try this&#8230;</p>
<p><span id="more-501"></span></p>
<h2>The Quick Fix</h2>
<p>Go to your <strong>wp-admin</strong> page and navigate to <strong>Appearance</strong> > <strong>Editor</strong>. Along the right side of the screen you&#8217;ll see a list of theme files. Click on <strong>Theme Functions (functions.php)</strong>.</p>
<p>Insert the following code on its own line, just after the opening <code>&lt;?php</code> tag:</p>
<pre class="brush: php; title: ; notranslate">
// Downgrade to jQuery 1.4.4 in order to support jQuery Tools
function downgrade_jquery() {
        global $wp_scripts;

        // We want to use version 1.4.4 of jQuery, but it may break something in the admin so we only load it on the actual site.
        if ( !is_admin() ) :
                wp_deregister_script('jquery');
                wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js', false, '1.4.4');
        endif;
}
add_action( 'wp_head', downgrade_jquery() );
</pre>
<p>Keep in mind that this is a patch, not a solution. Going forward, other WordPress plugins, themes, etc. may require a newer version of jQuery.</p>
<p>Hopefully jQuery Tools will be compatible with jQuery 1.6.1 soon&#8230;</p>
<h2>Questions?</h2>
<p>Post them here as comments, along with a link to your site.</p>
]]></content:encoded>
			<wfw:commentRss>http://mynewsitepreview.com/501/jquery-tools-and-wordpress-3-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Make Your Sidebar Stay Visible When Scrolling</title>
		<link>http://mynewsitepreview.com/133/how-to-make-your-sidebar-stay-visible-on-scroll/</link>
		<comments>http://mynewsitepreview.com/133/how-to-make-your-sidebar-stay-visible-on-scroll/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 11:00:36 +0000</pubDate>
		<dc:creator>Shaun Scovil</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://mynewsitepreview.com/?p=133</guid>
		<description><![CDATA[You&#8217;ll notice as you read the rest of this post that the sidebar follows you as you scroll down the page. I first spotted that effect being used in the Sharebar widget (also seen here), and was surprised to discover how easy it is to do. It took a bit of research, but I found<a href="http://mynewsitepreview.com/133/how-to-make-your-sidebar-stay-visible-on-scroll/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-207" title="How To Make Your Sidebar Stay Visible on Scroll" src="http://mynewsitepreview.com/wp-content/uploads/2011/06/deniro.jpg" alt="How To Make Your Sidebar Stay Visible on Scroll" width="300" height="210" /><del datetime="2012-02-17T05:26:11+00:00">You&#8217;ll notice as you read the rest of this post that the sidebar follows you as you scroll down the page.</del> I first spotted that effect being used in the <a href="http://wordpress.org/extend/plugins/sharebar/" rel="nofollow">Sharebar</a> widget <del datetime="2012-02-17T05:23:13+00:00">(also seen here)</del>, and was surprised to discover how easy it is to do.</p>
<p>It took a bit of research, but I found the necessary code <a href="http://stackoverflow.com/questions/5273453/using-jquery-to-keep-scrolling-object-within-visible-window" rel="nofollow">here</a>. However, the example on that forum was for a shopping cart and, for non-technical WordPress users jQuery can be confusing, so I thought I&#8217;d give you my Nerd-to-English translation and explain how to easily make your WordPress sidebar stay visible when you scroll&#8230;</p>
<p><span id="more-133"></span></p>
<h2>Getting Started</h2>
<p>To keep things simple, I&#8217;m going to start with some <strong>Basic Instructions</strong> that <em>should</em> work for most WordPress themes. Then I&#8217;ll touch on <strong>Troubleshooting</strong> for themes that don&#8217;t cooperate right away, and finally I&#8217;ll open up the Comments section to your questions.</p>
<div class="warnbox"><strong>WARNING:</strong> If you are using <em>TwentyTen</em> (the default WP theme) and you modify it, your changes will be lost next time you upgrade WordPress. With any other theme, changes will be lost if you upgrade to a newer version of that theme. For this reason, you should first take the time to learn how to create a <a href="http://codex.wordpress.org/Child_Themes" rel="nofollow">child theme</a>.</div>
<h2>Basic Instructions</h2>
<p>First, go to your <strong>wp-admin</strong> page and navigate to <strong>Appearance</strong> &gt; <strong>Editor</strong>. Along the right side of the screen you&#8217;ll see a list of theme files. The file <strong>Stylesheet (style.css)</strong> should be highlighted; if not, click it.</p>
<p>Scroll all the way to the end of your <strong>style.css</strong> and add this code:</p>
<pre class="brush: css; title: ; notranslate">
.fixed { position: fixed; top: 20px; }
</pre>
<p>Click <strong>Update File</strong> to save your changes, then click <strong>Header (header.php)</strong> in your list of theme files.</p>
<p>In <strong>header.php</strong>, search for this line of code:</p>
<pre class="brush: php; title: ; notranslate">
&lt;php wp_head(); ?&gt;
</pre>
<p>If it&#8217;s not there, find this instead: <strong></head></strong></p>
<p>Right above it, insert the following code:</p>
<pre class="brush: jscript; title: ; notranslate">
jQuery(document).ready(function($) {
	$(function() {
		if( !(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod') ) { // check where the sidebar div is
			var offset = $('#sidebar').offset();
			$(window).scroll(function () {
				var scrollTop = $(window).scrollTop(); // check the visible top of the browser
				if (offset.top &lt; scrollTop) $('#sidebar').addClass('fixed'); else $('#sidebar').removeClass('fixed');
			});
		});
	});
});
</pre>
<p>Click <strong>Update File</strong> to save your changes, and you <em>should</em> be done! Check out your website and see if it worked. If not, continue reading&#8230;</p>
<div class="infobox"><strong>UPDATE:</strong> I have added a conditional statement to the jQuery above, in order to prevent the effect from occurring when your site is viewed on mobile devices. The reason is that, on a mobile device, it is not uncommon for visitors to zoom in on the content body and, when they do, the sidebar would have overlapped the content otherwise.</div>
<h2>Troubleshooting</h2>
<p>Didn&#8217;t work, eh? Not a problem. There are a couple of obvious reasons this won&#8217;t work with some themes&#8230;</p>
<ol>
<li>Your sidebar is not identified by the ID <strong>#sidebar</strong>. This can be solved by editing the jQuery code above and replacing <strong>#sidebar</strong> with your theme&#8217;s sidebar ID (e.g. <strong>#widget-container</strong>). Note that you need to change it in three places within the jQuery code.</li>
<li>Your theme has jQuery disabled for some reason. Edit your <strong>function.php</strong> and <strong>header.php</strong> and search for this: <strong>wp_deregister_script(&#8216;jquery&#8217;);</strong>. If you find it in either place, kill it.</li>
<li>Your sidebar is on the left and your page content is not styled to float right, causing an overlap. Try adding <strong>#content { float: right; }</strong> to the end of your <strong>style.css</strong>.</li>
</ol>
<p>If you still can&#8217;t get it working, leave a comment with a link to your site and I&#8217;ll try to point you in the right direction.</p>
<h2>Questions?</h2>
<p>Post them here as comments, along with a link to your site.</p>
]]></content:encoded>
			<wfw:commentRss>http://mynewsitepreview.com/133/how-to-make-your-sidebar-stay-visible-on-scroll/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>The Universal Rule of Three</title>
		<link>http://mynewsitepreview.com/46/the-universal-rule-of-three/</link>
		<comments>http://mynewsitepreview.com/46/the-universal-rule-of-three/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 12:34:11 +0000</pubDate>
		<dc:creator>Shaun Scovil</dc:creator>
				<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://mynewsitepreview.com/?p=46</guid>
		<description><![CDATA[I first learned about the &#8216;Rule of Three&#8217; while studying Tae Kwon Do in my early twenties. After throwing two front-leg roundhouse kicks at my opponent, I went for a third and caught a spinning back kick to the chest that knocked my soul through my spine and onto the floor behind me. The lesson<a href="http://mynewsitepreview.com/46/the-universal-rule-of-three/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p><iframe width="300" height="203" src="http://www.youtube.com/embed/xOrgLj9lOwk?rel=0&#038;autoplay=0&#038;start=83" frameborder="0" allowfullscreen></iframe>I first learned about the <strong>&#8216;Rule of Three&#8217;</strong> while studying Tae Kwon Do in my early twenties. After throwing two front-leg roundhouse kicks at my opponent, I went for a third and caught a spinning back kick to the chest that knocked my soul through my spine and onto the floor behind me.</p>
<p>The lesson was simple: When things come in three, people remember. In the case of martial arts, doing things in groups of three is a bad habit because the idea is to remain unpredictable. However, in most other situations the third time is a charm&#8230;</p>
<p><span id="more-46"></span></p>
<h2>Omne Trium Perfectum</h2>
<p>Over the years, I&#8217;ve come to realize that the &#8216;Rule of Three&#8217; applies to just about everything in life. We talk about time in terms of past, present and future. We describe the size of things as small, medium or large. We even categorize matter as either gas, liquid or solid.</p>
<p>In terms of religion, the holy trinity and the three wise men come to mind&#8230;as does the &#8216;Holy Hand Grenade of Antioch&#8217; bit from <em>Monty Python and the Holy Grail</em> (see attached video clip).</p>
<p>Just about every anecdotal joke ever written involves three people of varying races, religions or hair colors (see what I just did there?).</p>
<p>There&#8217;s even a Latin phrase, <strong>omne trium perfectum</strong>, which means: <strong>everything that comes in three is perfect</strong>.</p>
<p>So what does this have to do with building websites? Three things, actually&#8230;</p>
<ol>
<li>Your website should <em>immediately</em> answer three questions: &#8220;Who are you?&#8221;, &#8220;What do you do?&#8221; and &#8220;Who do you do it for?&#8221;.</li>
<li>Information on your website should be presented in groups of three whenever possible, so people remember what you have to say.</li>
<li>It takes three people (or one person wearing three hats) to build a great website: A graphic designer, a copy writer, and a web developer to handle the coding.</li>
</ol>
<p>Whether you&#8217;re building a website on your own, or hiring someone like me (wink, wink) to do it for you, this universal rule will come in handy throughout the process.</p>
<h2>Discussion</h2>
<p>How does the &#8216;Rule of Three&#8217; apply to your work, or your everyday life?</p>
]]></content:encoded>
			<wfw:commentRss>http://mynewsitepreview.com/46/the-universal-rule-of-three/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
