<?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>Refreshingly Blue &#187; Web Development</title>
	<atom:link href="http://www.refreshinglyblue.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.refreshinglyblue.com</link>
	<description>Notes by Lee Blue</description>
	<lastBuildDate>Sun, 29 Aug 2010 03:50:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sending Email With Postfix And MAMP Pro</title>
		<link>http://www.refreshinglyblue.com/2010/08/28/sending-email-with-postfix-and-mamp-pro/</link>
		<comments>http://www.refreshinglyblue.com/2010/08/28/sending-email-with-postfix-and-mamp-pro/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 03:50:13 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=233</guid>
		<description><![CDATA[MAMP Pro makes it very easy to set up a PHP development environment. It even makes configuring your Postfix mail server configured most of the way. If you are using Postfix as a smart host to send mail through your ISP or your business mail server and your mac username (shortname) is not the same [...]]]></description>
			<content:encoded><![CDATA[<p>MAMP Pro makes it very easy to set up a PHP development environment. It even makes configuring your Postfix mail server configured most of the way. If you are using Postfix as a smart host to send mail through your ISP or your business mail server and your mac username (shortname) is not the same as the username part of your email address then you have to set up the correct sender address in your Postfix configuration. Here is how you do it.</p>
<p><span id="more-233"></span></p>
<h2 id="setting_the_correct_sender_address_in_postfix">Setting The Correct Sender Address In Postfix</h2>
<p>My mac (work computer) is set up with usernames in the format of first inital, last name (lblue). We use Rackspace Email for our company email and our email addresses are set up as just FirstName@domain.com (Lee@domain.com). So, the problem with the default Postfix configuration is that it attempts to send mail based on the username on my mac. So when postfix attempts to send mail from lblue@domain.com our Rackspace Email server complains with a &#8220;Sender address rejected&#8221; error message. Fortunately, the solution is pretty easy. </p>
<p>Step 1: Edit your /etc/postfix/main.cf and add following line to your configuration.</p>
<pre><code>sender_canonical_maps = hash:/etc/postfix/sender_canonical</code></pre>
<p>Step 2: Create the sender canonical file /etc/postfix/sender_canonical and set up the username / email address associations</p>
<pre><code>
lblue    Lee@domain.com
</code></pre>
<p>Step 3: Run postmap on your new sender canonical file</p>
<pre><code>sudo postmap /etc/postfix/sender_canonical</code></pre>
<p>Step 4: Reload Postfix</p>
<pre><code>sudo postfix reload</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2010/08/28/sending-email-with-postfix-and-mamp-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Fix The Warning: This Page Contains Both Secure and Non-Secure Items</title>
		<link>http://www.refreshinglyblue.com/2010/05/06/unauthenticated-content/</link>
		<comments>http://www.refreshinglyblue.com/2010/05/06/unauthenticated-content/#comments</comments>
		<pubDate>Thu, 06 May 2010 14:06:48 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Everyday Tips]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=213</guid>
		<description><![CDATA[You installed an SSL certificate and you keep getting that pesky warning about how some of the content on the page is not secure or unauthenticated.  Here&#8217;s what you do to find the offending content.

Visit the page in your web browser
View the source code for the page
Search the source code for src

Click through all the [...]]]></description>
			<content:encoded><![CDATA[<p>You installed an SSL certificate and you keep getting that pesky warning about how some of the content on the page is not secure or unauthenticated.  Here&#8217;s what you do to find the offending content.</p>
<ol>
<li>Visit the page in your web browser</li>
<li>View the source code for the page</li>
<li>Search the source code for <em>src</em></li>
</ol>
<p>Click through all the instances of <em>src</em> and look for items that are sourced through http:// rather than https://. Look at all your images, javascripts, stylesheets, etc. They all need to be pulled through https:// in order for your page to be totally secure and for that warning to go away. Internet Explorer is particularly finicky about this message so be sure to check your site in IE to make sure you don&#8217;t get this message: &#8216;<strong>This Page Contains Both Secure and Non-Secure Items</strong>&#8216; The FireFox message that means the same thing is &#8216;<strong>Warning: Contains Unauthenticated Content</strong>&#8216; this is the same problem. Just make sure your page is pulling all it&#8217;s resources through https:// and that is how you fix the error about &#8217;secure and non-secure&#8217; items on your SSL pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2010/05/06/unauthenticated-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git Archive Like SVN Export But Better</title>
		<link>http://www.refreshinglyblue.com/2010/03/05/git-archive-like-svn-export-but-better/</link>
		<comments>http://www.refreshinglyblue.com/2010/03/05/git-archive-like-svn-export-but-better/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 16:16:58 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=206</guid>
		<description><![CDATA[If you are switching from Subversion to Git and want to know the best way to export your code similar to svn export then here is a great command to know about.
git archive -o ~/Desktop/project.zip HEAD
That will extract your most recent stuff in your current branch, zip it up, and drop it on your desktop. [...]]]></description>
			<content:encoded><![CDATA[<p>If you are switching from Subversion to Git and want to know the best way to export your code similar to svn export then here is a great command to know about.</p>
<pre>git archive -o ~/Desktop/project.zip HEAD</pre>
<p>That will extract your most recent stuff in your current branch, zip it up, and drop it on your desktop. We do a lot of WordPress plugin development and with this single command we can get our plugin code ready for installation extremely quickly. Here is more information about <a href="http://ftp.sunet.se/pub/Linux/kernel.org/software/scm/git/docs/git-archive.html">git archive</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2010/03/05/git-archive-like-svn-export-but-better/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Custom Query To Select Posts From A Category</title>
		<link>http://www.refreshinglyblue.com/2010/02/26/wordpress-custom-query-to-select-posts-from-a-category/</link>
		<comments>http://www.refreshinglyblue.com/2010/02/26/wordpress-custom-query-to-select-posts-from-a-category/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 19:37:55 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=197</guid>
		<description><![CDATA[A friend asked how he could pull the three most recent WordPress posts from a particular category on a non-WordPress site. He has the ability to connect to the WordPress database. So here is the code you need to pull this off.


mysql_connect("localhost","username","password");
mysql_select_db("database");

// Change the category name to whatever category you want to use
$categoryName = 'Music';

$query [...]]]></description>
			<content:encoded><![CDATA[<p>A friend asked how he could pull the three most recent WordPress posts from a particular category on a non-WordPress site. He has the ability to connect to the WordPress database. So here is the code you need to pull this off.</p>
<p><span id="more-197"></span></p>
<pre name="code" class="php">
mysql_connect("localhost","username","password");
mysql_select_db("database");

// Change the category name to whatever category you want to use
$categoryName = 'Music';

$query = "SELECT post_title, guid
  FROM
    wp_posts,
    wp_terms,
    wp_term_taxonomy,
    wp_term_relationships
  WHERE
   wp_terms.name = '$categoryName' and
   wp_terms.term_id = wp_term_taxonomy.term_id and
   wp_term_relationships.term_taxonomy_id
      = wp_term_taxonomy.term_taxonomy_id and
   wp_term_relationships.term_taxonomy_id
      = wp_term_taxonomy.term_taxonomy_id and
   wp_term_relationships.object_id = wp_posts.ID
  ORDER BY post_date DESC LIMIT 3";

$q = mysql_query($query);
while ($row = mysql_fetch_assoc($q)) {
    echo "
<li><a href=\"";
    echo "{$row['guid']}";
    echo "\">";
    echo "{$row['post_title']}";
    echo "</a></li>

";
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2010/02/26/wordpress-custom-query-to-select-posts-from-a-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top Ten WordPress Plugins</title>
		<link>http://www.refreshinglyblue.com/2009/12/05/top-ten-wordpress-plugins/</link>
		<comments>http://www.refreshinglyblue.com/2009/12/05/top-ten-wordpress-plugins/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 01:14:38 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Everyday Tips]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=175</guid>
		<description><![CDATA[We&#8217;ve been asked what WordPress plugins we use most often and what we recommend that other people use on their sites. There are quite a few great plugins out there, but here is our top 10 list of WordPress plugins that we have found the most useful and that we use the most often.

10. Wickett [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been asked what WordPress plugins we use most often and what we recommend that other people use on their sites. There are quite a few great plugins out there, but here is our top 10 list of WordPress plugins that we have found the most useful and that we use the most often.</p>
<p><span id="more-175"></span></p>
<h2>10. Wickett Twitter Widget</h2>
<p>To help build up a following on Twitter, one thing you want to do is broadcast your tweets in as many ways as possible. The Wickett Twitter Widget is an awesomely simple way to get your most recent tweets on your WordPress site. It installs as a sidebar widget and you can specify the number of tweets to display and whether or not you want to hide &#8220;reply&#8221; tweets. There are several other Twitter related plugins, but this one makes the top ten list because of it simplicity and elegance. You go to alot of trouble to find interesting links and comments and so it is great to be able to share your tweets on your blog.</p>
<p><a href="http://wordpress.org/extend/plugins/wickett-twitter-widget/">Visit Wickett Twitter Widget</a></p>
<h2>9. WP Logic</h2>
<p>Perhaps a tad technical, but well worth mentioning, the WP Logic plugin gives every widget an extra control field called &#8220;Widget logic&#8221; that lets you control the pages that the widget will appear on. Suppose you have a WordPress site that acts as both your main website as well as your blog and you only want to show your blog categories on your &#8220;posts&#8221; and not on your &#8220;pages&#8221; &#8211; it&#8217;s easy to do with this plugin. This is one of those plugins where your friends will be saying, &#8220;Wow! How did you do that?&#8221;</p>
<p><a href="http://freakytrigger.co.uk/wordpress-setup/">Visit Widget Logic</a></p>
<h2>8. Page Mash</h2>
<p>This is a simple WordPress page management plugin. The Ajax interface allows you to drag-and-drop the pages into the order you like, modify the page structure by dragging a page to become a child or parent and toggle the page to be hidden from output. You can also see the id of the page which is often helpful for theme developers. If you have a WordPress site with more than just a handful of pages, PageMash is extremely helpful.</p>
<p><a href="http://joelstarnes.co.uk/blog/pagemash/">Visit PageMash simple WordPress page order management.</a></p>
<h2>7. All in One SEO Pack</h2>
<p>The All in One SEO Pack plugin automatically optimizes your Wordpress blog for Search Engine by allowing you to fine tune things like your page title and meta tags. This plugin is extremely easy to use as it works great straight out of the box. If you are an advanced user, you can customize virtually everything. And if you are a developer, this plugin has an API so your themes can access and extend the functionality of the plugin.</p>
<p><a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/">Visit All in One SEO Pack</a></p>
<h2>6. Google XML Sitemaps</h2>
<p>Perhaps the most downloaded WordPress plugin, the Google XML Sitemaps plugin not only automatically creates a site map linking to all your pages and posts, it also notifies Google, Bing, Yahoo, and Ask.com when you make changes to you site. If you want to include pages that are part of your site but not part of you WordPress managed content, you can do that to./p></p>
<p><a href="http://www.arnebrachhold.de/projects/wordpress-plugins/google-xml-sitemaps-generator/">Visit Google XML Sitemaps Generator</a></p>
<h2>5. WP Super Cache</h2>
<p>If you have a popular WordPress website you should seriously consider running WordPress Super Cache to improve the performance of your website. If you are not caching your pages, then every time a visitor comes to your site, WordPress has to pull together various pieces of information out of a database to put your page together. If you have a high traffic site, this is can really become a problem. WP Super Cache will store a copy of each of the pages on your website so that after the page has been assembled from the database once, WordPress can rest and just keep serving the static html copy of the page. This might be a bit techy, but the idea is you can dramatically speed up your site and reduce the load on your server by using WP Super Cache. If for no other reason, use this plugin so you don&#8217;t have to panic when your friend says, &#8220;I just Dugg your site.&#8221;</p>
<p><a href="http://ocaoimh.ie/wp-super-cache/">Visit WP Super Cache to make WordPress faster</a></p>
<h2>4. NextGEN Image Gallery</h2>
<p>If you want to display a photo gallery, show a series of product images, or just publish a slide show from your most recent vacation, the NextGEN image gallery is the plugin for you. NextGEN Gallery is a full integrated Image Gallery plugin for WordPress with a Flash slideshow option. Among the many features, NextGEN Gallery includes a thumbnail generator, sortable albums, and a water mark function. There are also plenty of add-ons as well including the <a href="http://wordpress.org/extend/plugins/nextgen-flashviewer/">NextGEN FlashViewer</a> and <a href="http://wordpress.org/extend/plugins/nextgen-imageflow/">NextGEN ImageFlow</a>.</p>
<p><a href="http://wordpress.org/extend/plugins/nextgen-gallery/">Visit NextGEN Image Gallery</a></p>
<h2>3. cformsII Form Plugin</h2>
<p>If your looking for a free form management plugin, cformsII is an extremely powerful plugin for setting up contact forms on your WordPress site. You don&#8217;t need to know any PHP or write any code. You can visually build forms in the WordPress admin panel. Then, navigate to the page or post where you want to use the form and there is a button in the WYSIWYG editor that you click and up pops a list of forms that you have made. Simply click on the one you want and your form is inserted into your page. Update your page and you the form is live. You can specify required fields, default values, and there are plenty of styles to make your form blend in perfectly with your site.</p>
<p><a href="http://www.deliciousdays.com/cforms-plugin">Visit cformsII WordPress Form Plugin</a></p>
<h2>2. Gravity Forms</h2>
<p>If you want the best forms plugin WordPress has to offer, you need Gravity Forms. Gravity Forms is an amazing plugin for managing online forms. Some of the incredibly useful features include conditional form fields which means you can show or hide a field or entire sections of the form based on a value selected in another field. You can pre-populate form fields using querystring, shortcode, function or hooks.You can even schedule when forms are available by assigning a start date and end date for when your form is live on your site. Supposed you want to run a contest where the first 50 people that fill out the form win a prize. Gravity Forms lets you set a limit on the number of entries a form can receive. Pretty much anything you ever wanted a form to do, Gravity Forms can do it.</p>
<p><a href="https://www.e-junkie.com/ecom/gb.php?cl=54585&#038;c=ib&#038;aff=45747">Visit Gravity Forms</a></p>
<h2>1. PHPurchase The WordPress Ecommerce Shopping Cart Plugin</h2>
<p>Since this plugin can actually make you money, it get&#8217;s the #1 spot. PHPurchase let&#8217;s you sell anything you want, digital products or physical products. It is incredibly simple to use and the support and documentation is great. There are screencast tutorials to help you get set up and if you run into any trouble, the developers are very responsive and often available via live chat. PHPurchase stands out from the other ecommerce plugins because it let&#8217;s you use WordPress, and all of the other plugins on this list, to configure your online store exactly the way you want it. PHPurchase is very easy to use and extremely flexible WordPress e-commerce shopping cart.</p>
<p><a href="http://www.phpurchase.com">Visit PHPurchase the WordPress Ecommerce Shopping Cart Plugin</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2009/12/05/top-ten-wordpress-plugins/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHPurchase Affiliate Program</title>
		<link>http://www.refreshinglyblue.com/2009/11/28/phpurchase-affiliate-program/</link>
		<comments>http://www.refreshinglyblue.com/2009/11/28/phpurchase-affiliate-program/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 19:00:11 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=166</guid>
		<description><![CDATA[
The PHPurchase affiliate program is now live. You earn 25% of every sale you send our way. PHPurchase is a WordPress e-commerce plugin that we developed at PHPoet. We&#8217;ve been using it on several of our own clients sites and have now decided to offer the plugin publicly.
PHPurchase stands out for several reasons. First, the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.phpurchase.com/phpoet/affiliates"><img src="http://www.phpurchase.com/phpoet/wp-content/uploads/dollar-sign-sm.jpg" class="float-right" /></a><br />
The <a href="http://www.phpurchase.com/phpoet/affiliates/">PHPurchase affiliate program</a> is now live. You earn 25% of every sale you send our way. PHPurchase is a WordPress e-commerce plugin that we developed at PHPoet. We&#8217;ve been using it on several of our own clients sites and have now decided to offer the plugin publicly.</p>
<p><a href="http://www.phpurchase.com">PHPurchase</a> stands out for several reasons. First, the approach we took to implementing the plugin was to let WordPress manage all aspects of the page layout. There are plenty of ways to implement photo galleries, embed videos, etc. already available for WordPress. PHPurchase simply adds e-commerce functionality. Second, we have placed a strong emphasis on documentation and support by providing screencast tutorials, help articles, and even live chat support embedded in the the &#8220;Help&#8221; page of the PHPurchase admin panel as well as on the PHPurchase website. Our developers, of which I am one, are also available to help troubleshoot problems, build out an entire WordPress store, or anything in between. Lastly, PHPurchase is fully compatible with the <a href="http://www.tipsandtricks-hq.com/infinity-remix-premium-wordpress-theme-1318?ap_id=phpoet" target="_blank">WordPress Affiliate Platform plugin</a> if you wanted to run an affiliate program for your WordPress store. No additional configuration is needed to start running your own affiliate program.</p>
<p>We look forward to seeing how you use PHPurchase. Please send us links to your PHPurchase stores and we&#8217;ll tweet them and/or link to them from our website. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2009/11/28/phpurchase-affiliate-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Count Rows With Zend_Db_Table</title>
		<link>http://www.refreshinglyblue.com/2009/11/18/how-to-count-rows-with-zend_db_table/</link>
		<comments>http://www.refreshinglyblue.com/2009/11/18/how-to-count-rows-with-zend_db_table/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 20:53:05 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=160</guid>
		<description><![CDATA[This is just a quick tip but seems to stump a lot of people, probably because it is not at all clear in the Zend Reference how to do this. So if you want to count the number of rows in a table using SQL you would write something like:
SELECT count(*) FROM myTableName WHERE someColumn='someValue';
But [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a quick tip but seems to stump a lot of people, probably because it is not at all clear in the Zend Reference how to do this. So if you want to count the number of rows in a table using SQL you would write something like:</p>
<pre name="code" class="sql">SELECT count(*) FROM myTableName WHERE someColumn='someValue';</pre>
<p>But when you are using a Zend_Db_Table it&#8217;s a little confusing how to get the &#8220;count(*)&#8221; part to work because Zend_Db_Table likes to throw errors saying that it can&#8217;t be joined with other tables. So, in your Zend_Db_Table class, here is the syntax you can use:</p>
<pre name="code" class="php">
$sql = $this->select()
       ->from($this, 'COUNT(*)')
       ->where('parent_id=?', $this->id);
echo $this->fetchRow($sql)->num;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2009/11/18/how-to-count-rows-with-zend_db_table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHPurchase, Ecommerce For WordPress</title>
		<link>http://www.refreshinglyblue.com/2009/11/13/phpurchase-ecommerce-for-wordpress/</link>
		<comments>http://www.refreshinglyblue.com/2009/11/13/phpurchase-ecommerce-for-wordpress/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 18:44:59 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=153</guid>
		<description><![CDATA[Your Own Online Store Using WordPress and PHPurchase

At PHPoet, we have developed an e-commerce plugin for WordPress called PHPurchase. PHPurchase adds e-commerce functionality to the popular WordPress platform. So now you can sell products from your blog or you can run your entire website on WordPress and create your own online store. To see PHPurchase [...]]]></description>
			<content:encoded><![CDATA[<h1>Your Own Online Store Using WordPress and PHPurchase</h1>
<p><a href="http://www.phpurchase.com"><img style="float: right; padding: 0px 0px 0px 10px;" src="http://www.phpurchase.com/banners/phpurchase-shopping-cart.jpg" alt="" /></a></p>
<p>At PHPoet, we have developed an <a href="http://www.phpurchase.com">e-commerce plugin for WordPress</a> called PHPurchase. PHPurchase adds e-commerce functionality to the popular WordPress platform. So now you can sell products from your blog or you can run your entire website on WordPress and create your own online store. To see PHPurchase in action, take a look at <a href="http://www.QuietHeadphones.com">QuietHeadphones.com</a>, an online store selling headphones.</p>
<p>You can use WordPress and PHPurchase to easily set up your own online store. By now, most people have heard about WordPress. If not, WordPress is free web software that you install on a web server and it lets non-programmers manage their own website. You can run your own blog, add/edit pages of your own website, and now you can even run your own e-commerce store.</p>
<p>There are many web hosting companies out there where you can install WordPress with just a couple clicks from the control panel of your hosting account. If you happen to have a web hosting account that does not offer WordPress, you can very easily download WordPress for free and install it on your own. You basically just upload the WordPress folder that you can <a href="http://wordpress.org/download/">download from WordPress.org</a>, enter in a couple configuration settings and you can be up and running in about 5 minutes. Once you have the initial installation of WordPress running you may want to customize the look of your website by downloading a theme. WordPress themes let you change the entire look of your website very easily. There are tons of free themes available. There are also &#8220;premium&#8221; themes that generally cost around $50 &#8211; $100. Or you could hire my company <a href="http://www.phpoet.com">WordPress development company</a> to develop the site for you. Then, once the site is developed, we will train you how to manage the entire site on your own.</p>
<p>By default, WordPress does not have any functionality for e-commerce so you will want to get the <a href="http://www.phpurchase.com">WordPress e-commerce plugin</a>. PHPurchase let&#8217;s you sell digital products like music files, or other types of digital documents as well as physical products that you would ship to your customers. You can also sell services. For example, if you wanted to offer freelance writing services, logo design, or basically anything, you can easily set that up with PHPurchase. PHPurchase will work with PayPal or you can set it up to take credit cards directly on your own website. PHPurchase is very secure and doesn&#8217;t store credit card information so you don&#8217;t need to worry about hackers or anything.</p>
<p>There are several other e-commerce plugins out there for WordPress, but we were never able to find one that satisfied our needs. They either force you to use fancy grid layouts or organize your products by brand or category. If you are only selling a small number of products then you don&#8217;t want to be forced into a layout designed for large stores with lots of products. We designed PHPurchase to let you use WordPress to configure your entire store and use PHPurchase to handle the e-commerce. PHPurchase may be the only WordPress e-commerce plugin with professional level support. It is easy to set up and even comes with some videos showing you how to configure all the aspects of your online store like shipping prices, promotions, etc. If you run into any trouble. PHPurchase is supported by <a href="http://www.phpoet.com">PHPoet a web development company specializing in WordPress</a>. So you can quickly get answers to your questions. We are also available to build your site for you and train you how to manage it once it&#8217;s online. So if you are looking for a way to make some extra income or if you want to start your own home based business, WordPress and PHPurchase are certainly worth looking at.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2009/11/13/phpurchase-ecommerce-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great Use For Javascript Closures</title>
		<link>http://www.refreshinglyblue.com/2009/06/24/great-use-for-javascript-closures/</link>
		<comments>http://www.refreshinglyblue.com/2009/06/24/great-use-for-javascript-closures/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 01:28:17 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Everyday Tips]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=138</guid>
		<description><![CDATA[setTimeout() with a paramter
If you need to use the setTimeout() function to call a javascript function that accepts a parameter you might be tempted to use syntax like
setTimeout('functionName()', 1500, param1, param2, etc); 
And you would probably have success until you went to test your site in Internet Explorer. Firefox seems to be able to handle [...]]]></description>
			<content:encoded><![CDATA[<h1>setTimeout() with a paramter</h1>
<p>If you need to use the setTimeout() function to call a javascript function that accepts a parameter you might be tempted to use syntax like</p>
<pre name="code" class="javascript">setTimeout('functionName()', 1500, param1, param2, etc); </pre>
<p>And you would probably have success until you went to test your site in Internet Explorer. Firefox seems to be able to handle the extra parameters on the end of the setTimeout() call but IE simply sends undefined variables to the function you are calling and your script dies.</p>
<p>Here is the solution &#8211; use closures! They are a little tricky to understand if you are new to the idea but, in a nutshell, you are assign a function to a variable. Normally you assign numbers, or strings to variables &#8211; well you can assign functions to variables too. Here&#8217;s how:</p>
<pre name="code" class="javascript">setTimeout(function() { delayedFunctionName(param1); }, 1500); </pre>
<p>This causes the function delayedFunctionName(p1) to be called with a 1.5 second delay AND the p1 parameter actually gets a value!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2009/06/24/great-use-for-javascript-closures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Uploaded Images &#8211; How To Change Absolute URL</title>
		<link>http://www.refreshinglyblue.com/2009/03/29/wordpress-uploaded-images-how-to-change-absolute-url/</link>
		<comments>http://www.refreshinglyblue.com/2009/03/29/wordpress-uploaded-images-how-to-change-absolute-url/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 00:30:50 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=128</guid>
		<description><![CDATA[When working with WordPress, you may develop a site on a development server with a different domain than the live server where you intend to deploy the site. When you upload images in a post or a page, WordPress assigns an absolute link as the source of the image. Here is a quick SQL query [...]]]></description>
			<content:encoded><![CDATA[<p>When working with WordPress, you may develop a site on a development server with a different domain than the live server where you intend to deploy the site. When you upload images in a post or a page, WordPress assigns an absolute link as the source of the image. Here is a quick SQL query to run  after you migrate your site to the live server so that the absolute URL is updated to reflect the changed domain name.</p>
<pre name="code" class="sql">
UPDATE wp_posts set post_content=REPLACE(post_content, 'www.devServer.com/', 'www.liveServer.com/');
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2009/03/29/wordpress-uploaded-images-how-to-change-absolute-url/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
