<?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>Money-Code &#187; wordpress</title>
	<atom:link href="http://www.money-code.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.money-code.com</link>
	<description>Coding For Online Success</description>
	<lastBuildDate>Fri, 12 Feb 2010 18:27:01 +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>Issues with CJNiche WordPress Plugin</title>
		<link>http://www.money-code.com/2010/01/issues-with-cjniche-wordpress-plugin/</link>
		<comments>http://www.money-code.com/2010/01/issues-with-cjniche-wordpress-plugin/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 02:36:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Affiliate Marketing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[cj]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[niche]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.money-code.com/?p=602</guid>
		<description><![CDATA[So I&#8217;ve been working with the cjniche plugin. Overall, it&#8217;s a pretty good plugin, but I definitely have some issues with it. I noticed that a few of my requests were getting the dreaded PHP warning:
Warning: Invalid argument supplied for foreach() in
/var/www/wouldnt/you/like/to/know/wp-content/
plugins/cjniche/cjniche.php on line 79
Want to see if it&#8217;s a wide spread problem on the [...]


Related posts:<ol><li><a href='http://www.money-code.com/2009/10/simple-modification-to-fd-feedburner-plugin/' rel='bookmark' title='Permanent Link: Simple modification to FD Feedburner Plugin'>Simple modification to FD Feedburner Plugin</a></li>
<li><a href='http://www.money-code.com/2007/09/bans-security-issues-are-being-addressed/' rel='bookmark' title='Permanent Link: BANS &#8211; security issues are being addressed'>BANS &#8211; security issues are being addressed</a></li>
<li><a href='http://www.money-code.com/2007/10/cj-web-service-issues-unable-to-access-wsdl-update/' rel='bookmark' title='Permanent Link: CJ web service issues &#8211; unable to access WSDL (UPDATE)'>CJ web service issues &#8211; unable to access WSDL (UPDATE)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2010%2F01%2Fissues-with-cjniche-wordpress-plugin%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2010%2F01%2Fissues-with-cjniche-wordpress-plugin%2F" height="61" width="51" /></a></div><p>So I&#8217;ve been working with the<a href="http://wpnicheground.com/2009/11/cjniche-commission-junction-wordpress-plugin-2/" target="_blank"> cjniche plugin</a>. Overall, it&#8217;s a pretty good plugin, but I definitely have some issues with it. I noticed that a few of my requests were getting the dreaded PHP warning:</p>
<pre>Warning: Invalid argument supplied for foreach() in
/var/www/wouldnt/you/like/to/know/wp-content/
plugins/cjniche/cjniche.php on line 79</pre>
<p>Want to see if it&#8217;s a wide spread problem on the interwebby? Check out this <a href="http://www.google.com/#hl=en&amp;source=hp&amp;q=cjniche+%22Warning%3A+Invalid+argument+supplied+for+foreach%28%29%22&amp;aq=f&amp;aql=&amp;aqi=&amp;oq=&amp;fp=4787d6a9aecc9114" target="_blank">Google search on the topic</a>.</p>
<p>The line number may vary with yours, I added some extra special customizations to the plugin. Googling around on this, I see constant references to this error relating to this plugin. I also see crazy recommendations like deactivating and reactivating the plugin. Reminds me of the &#8216;did you reboot your computer&#8217; and if the answer it &#8216;yes&#8217;, you follow up with &#8216;how many times&#8217;. Odd how some things just go away. Well, I wasn&#8217;t buying it.</p>
<p>It is true if you add a space to the advertiserIds or dork up your CJ Key you&#8217;ll get the same error, but I was experiencing intermittent errors. It would work a few of the times, then not work the other times. That would have NOTHING to do with variable values stored in the database. I did some digging (which is hard with this particular plugin since they encode everything.. really?).  I was able to get to the root of the problem.</p>
<p>If you&#8217;re getting this error every time, the plugin is not receiving a proper XML response CJ and that is why the foreach is blowing up. Unfortunately, the plugin is not checking for a good product set return from CJ and just explodes. Now, if you&#8217;re getting this error some of the times, the problem is very similar. I was able to echo the XML returning during a failure and this is what I saw:</p>
<pre>[error-message] =&gt;; The server is currently at
capacity or down for maintenance. Please try again later.</pre>
<p>Wow, now that helps shed some light on the problem for sure. Looks like CJ is having problems. This is my biggest irritation dealing with CJ&#8217;s datafeed. I&#8217;ve mentioned that in the past that it&#8217;s just not reliable. This plugin is nice for something quick and if you&#8217;re working with small data sets or small merchants, this probably works really well. If you&#8217;re dealing with larger product catalogs, the keyword filtering is obviously going to take longer and probably cause issues with many requests. Now this is an assumption. I&#8217;m not sure if yesterday and today are the only two days having problems.. who knows. What I wanted to do with this post was shed some light with the PHP error and this plugin. I definitely see mention of it in many places.</p>
<p>I&#8217;ve written some error handling in the plugin to catch vs. explode when this occurs, but I might need to work on a caching solution to fall back on a stored data set if it has trouble.</p>


<p>Related posts:<ol><li><a href='http://www.money-code.com/2009/10/simple-modification-to-fd-feedburner-plugin/' rel='bookmark' title='Permanent Link: Simple modification to FD Feedburner Plugin'>Simple modification to FD Feedburner Plugin</a></li>
<li><a href='http://www.money-code.com/2007/09/bans-security-issues-are-being-addressed/' rel='bookmark' title='Permanent Link: BANS &#8211; security issues are being addressed'>BANS &#8211; security issues are being addressed</a></li>
<li><a href='http://www.money-code.com/2007/10/cj-web-service-issues-unable-to-access-wsdl-update/' rel='bookmark' title='Permanent Link: CJ web service issues &#8211; unable to access WSDL (UPDATE)'>CJ web service issues &#8211; unable to access WSDL (UPDATE)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2010/01/issues-with-cjniche-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Simple modification to FD Feedburner Plugin</title>
		<link>http://www.money-code.com/2009/10/simple-modification-to-fd-feedburner-plugin/</link>
		<comments>http://www.money-code.com/2009/10/simple-modification-to-fd-feedburner-plugin/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 18:38:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[feedburner]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.money-code.com/?p=596</guid>
		<description><![CDATA[Today for one of my sites, I needed to populate a Facebook page with a feed, but I didn&#8217;t want the entire post as the &#8216;note&#8217;. I found a great plugin called Feed Facebook, Leave Facebook that leaves a partial feed with a link to &#8216;leave Facebook&#8217; to your site. This is EXACTLY what I [...]


Related posts:<ol><li><a href='http://www.money-code.com/2010/01/issues-with-cjniche-wordpress-plugin/' rel='bookmark' title='Permanent Link: Issues with CJNiche WordPress Plugin'>Issues with CJNiche WordPress Plugin</a></li>
<li><a href='http://www.money-code.com/2007/09/simple-script-for-connecting-to-commission-junctions-product-web-service-and-populating-a-local-database/' rel='bookmark' title='Permanent Link: Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database'>Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database</a></li>
<li><a href='http://www.money-code.com/2009/08/including-your-wordpress-blogs-to-a-external-website/' rel='bookmark' title='Permanent Link: Including your WordPress blogs to a external website'>Including your WordPress blogs to a external website</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F10%2Fsimple-modification-to-fd-feedburner-plugin%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F10%2Fsimple-modification-to-fd-feedburner-plugin%2F" height="61" width="51" /></a></div><p>Today for one of my sites, I needed to populate a Facebook page with a feed, but I didn&#8217;t want the entire post as the &#8216;note&#8217;. I found a great plugin called <a href="http://www.keyvan.net/code/feed-facebook-leave-facebook/" target="_blank">Feed Facebook, Leave Facebook</a> that leaves a partial feed with a link to &#8216;leave Facebook&#8217; to your site. This is EXACTLY what I needed, but I was having problem with my <a href="http://flagrantdisregard.com/feedburner/" target="_blank">FD Feedburner Plugin</a> which auto-magically converts my RSS feeds to feedburner feeds. In this particular case, I needed to exclude a single feed from this. Unfortunately, this is not a configuration option.</p>
<p>So I&#8217;m posting this mainly for myself in case there is a plugin update and I need to know how I did this the first time, but I can see that few might find this useful.</p>
<p>Basically in the feedburner_redirect() function, we need to add a conditional:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$feed_url</span> != <span class="kw2">null</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Redirect the feed</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/header"><span class="kw3">header</span></a><span class="br0">&#40;</span><span class="st0">&quot;Location: &quot;</span>.<span class="re0">$feed_url</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/die"><span class="kw3">die</span></a>;<br />
<span class="br0">&#125;</span></div>
<p>Needs to be changed to this:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$feed_url</span> != <span class="kw2">null</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Redirect the feed</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>!<a href="http://www.php.net/eregi"><span class="kw3">eregi</span></a><span class="br0">&#40;</span><span class="st0">&#8216;facebook&#8217;</span>,<span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&#8216;REQUEST_URI&#8217;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/header"><span class="kw3">header</span></a><span class="br0">&#40;</span><span class="st0">&quot;Location: &quot;</span>.<span class="re0">$feed_url</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/die"><span class="kw3">die</span></a>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div>
<p>The feed url that Facebook will be using looks similar to this : http://www.yourdomain.com/feed?feedfacebook, if we detect this in the REQUEST_URI, we do nothing with the redirect. Now Facebook will be happy with our new feed, while any other requests to our site&#8217;s feed will be directed to Feedburner.</p>


<p>Related posts:<ol><li><a href='http://www.money-code.com/2010/01/issues-with-cjniche-wordpress-plugin/' rel='bookmark' title='Permanent Link: Issues with CJNiche WordPress Plugin'>Issues with CJNiche WordPress Plugin</a></li>
<li><a href='http://www.money-code.com/2007/09/simple-script-for-connecting-to-commission-junctions-product-web-service-and-populating-a-local-database/' rel='bookmark' title='Permanent Link: Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database'>Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database</a></li>
<li><a href='http://www.money-code.com/2009/08/including-your-wordpress-blogs-to-a-external-website/' rel='bookmark' title='Permanent Link: Including your WordPress blogs to a external website'>Including your WordPress blogs to a external website</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/10/simple-modification-to-fd-feedburner-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update WordPress!</title>
		<link>http://www.money-code.com/2009/10/update-wordpress/</link>
		<comments>http://www.money-code.com/2009/10/update-wordpress/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 15:37:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Affiliate Marketing]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.money-code.com/?p=592</guid>
		<description><![CDATA[Okay, looks like WordPress released a &#8216;hardened&#8217; release for 2.8 which will jack your release version to 2.8.5. It&#8217;s very important to stay upgraded to ensure that your sites will run properly, but more importantly to maintain security. You don&#8217;t want your money-making sites to go down, or to have your account suspended due to [...]


Related posts:<ol><li><a href='http://www.money-code.com/2009/07/thinking-about-security-for-affiliate-marketing/' rel='bookmark' title='Permanent Link: Thinking about security for Affiliate Marketing'>Thinking about security for Affiliate Marketing</a></li>
<li><a href='http://www.money-code.com/2009/08/twitter-troubles/' rel='bookmark' title='Permanent Link: Twitter troubles'>Twitter troubles</a></li>
<li><a href='http://www.money-code.com/2007/10/cj-web-service-issues-unable-to-access-wsdl-update/' rel='bookmark' title='Permanent Link: CJ web service issues &#8211; unable to access WSDL (UPDATE)'>CJ web service issues &#8211; unable to access WSDL (UPDATE)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F10%2Fupdate-wordpress%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F10%2Fupdate-wordpress%2F" height="61" width="51" /></a></div><p><img class="alignleft size-full wp-image-351" title="icon_big" src="http://www.money-code.com/wp-content/uploads/2009/06/icon_big.jpg" alt="icon_big" width="150" height="151" />Okay, looks like WordPress released a &#8216;hardened&#8217; release for 2.8 which will jack your release version to 2.8.5. It&#8217;s very important to stay upgraded to ensure that your sites will run properly, but more importantly to maintain security. You don&#8217;t want your money-making sites to go down, or to have your account suspended due to your site being compromised. As they say, &#8220;A ounce of prevention is worth a pound of cure&#8221;.</p>
<p>Details of the release can be found here: <a href="http://wordpress.org/development/2009/10/wordpress-2-8-5-hardening-release/" target="_blank">http://wordpress.org/development/2009/10/wordpress-2-8-5-hardening-release/</a></p>
<p>The headline changes in this release are:</p>
<ul>
<li>A fix for the Trackback Denial-of-Service attack that is currently being seen.</li>
<li>Removal of areas within the code where php code in variables was evaluated.</li>
<li>Switched the file upload functionality to be whitelisted for all users including Admins.</li>
<li>Retiring of the two importers of Tag data from old plugins.</li>
</ul>


<p>Related posts:<ol><li><a href='http://www.money-code.com/2009/07/thinking-about-security-for-affiliate-marketing/' rel='bookmark' title='Permanent Link: Thinking about security for Affiliate Marketing'>Thinking about security for Affiliate Marketing</a></li>
<li><a href='http://www.money-code.com/2009/08/twitter-troubles/' rel='bookmark' title='Permanent Link: Twitter troubles'>Twitter troubles</a></li>
<li><a href='http://www.money-code.com/2007/10/cj-web-service-issues-unable-to-access-wsdl-update/' rel='bookmark' title='Permanent Link: CJ web service issues &#8211; unable to access WSDL (UPDATE)'>CJ web service issues &#8211; unable to access WSDL (UPDATE)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/10/update-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Review of ReviewAZON</title>
		<link>http://www.money-code.com/2009/08/review-of-reviewazon/</link>
		<comments>http://www.money-code.com/2009/08/review-of-reviewazon/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 20:19:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Affiliate Marketing]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[EPN]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[reviewazon]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.money-code.com/?p=539</guid>
		<description><![CDATA[If you&#8217;ve been following this blog for some time, you would know I sort of have a love-hate relationship with Amazon&#8217;s affiliate program (Amazon Associates).
First of all, I love their site. I buy many things from Amazon, and it&#8217;s hard to beat the name trust you get with Amazon. I love that you can buy [...]


Related posts:<ol><li><a href='http://www.money-code.com/2009/08/understanding-the-amazon-product-advertising-api/' rel='bookmark' title='Permanent Link: Understanding the Amazon Product Advertising API'>Understanding the Amazon Product Advertising API</a></li>
<li><a href='http://www.money-code.com/2009/09/thinking-out-load-about-epn-quality-click-pricing-qcp/' rel='bookmark' title='Permanent Link: Thinking out loud about EPN Quality Click Pricing (QCP)'>Thinking out loud about EPN Quality Click Pricing (QCP)</a></li>
<li><a href='http://www.money-code.com/2009/05/ideas-to-improve-epn-sites/' rel='bookmark' title='Permanent Link: Ideas to improve EPN sites'>Ideas to improve EPN sites</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F08%2Freview-of-reviewazon%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F08%2Freview-of-reviewazon%2F" height="61" width="51" /></a></div><p><a href="http://www.money-code.com/target/reviewazon.php" target="_blank"><img class="alignleft" title="ReviewAZON" src="http://reviewazon.com/wp-content/uploads/affiliate/ReviewAZON_Box.jpg" alt="" width="250" height="308" /></a>If you&#8217;ve been following this blog for some time, you would know I sort of have a love-hate relationship with Amazon&#8217;s affiliate program (Amazon Associates).</p>
<p>First of all, I love their site. I buy many things from Amazon, and it&#8217;s hard to beat the name trust you get with Amazon. I love that you can buy SO much stuff from there. Basically if you can think of it, it&#8217;s on Amazon. I love their affiliate management interface (except it updates every 24 hours), but getting reports, and tools is a snap. I love their API for pulling products (even though I was having <a href="http://www.money-code.com/2009/08/amazon-product-api-signaturedoesnotmatch-error-response/" target="_self">trouble after their recent change for signed authentication</a>). So that&#8217;s a lot of love&#8230;.</p>
<p>The bad? Well, their cookie life is brutal. They only offer a one day cookie for earnings. That potential customer can&#8217;t &#8220;sleep on it&#8221;, and if they do, you get nadda. So it&#8217;s strictly related to impulse purchases only or you&#8217;re relying on them doing the research and are ready to buy when they go to your blog or store front. Tough. Their commission percentage is pretty low as well, and especially compared to other networks. You&#8217;ll hear arguments that you&#8217;ll make it up on the name trust, and that will convert to more sales, etc.</p>
<p>Bottom line is that I&#8217;ve tried promoting Amazon multiple times and have not had good luck. Is this Amazon&#8217;s fault? Is their network that bad? No. I&#8217;m definitely the weak link on this one. For whatever reason, I have not tapped into the proper targeted crowd for Amazon. I feel like I have a good feeling about EPN, but Amazon, I&#8217;m still reaching out in the dark.</p>
<p>Clearly, there are many individuals making excellent earnings with Amazon, so where did I gone wrong? I believe it was my approach. First of all, I&#8217;ve always intermixed Amazon with EPN sites, heavily promoting EPN, while loosely promoting Amazon. Also, I was working in niches that worked good with EPN. These niches may be producing naturally poorly with Amazon. I&#8217;ve also pursued store front style sites using Amazon&#8217;s API pulling &#8216;related&#8217; products. Talking with few people that do well with Amazon (People, it&#8217;s important to talk to others and learn), and they seem to be having excellent results with blog / review type sites. Working the SEO organic long tail, etc. This was never my strategy with Amazon or EPN for that matter.</p>
<p>Today, I created two new WordPress blogs focusing on product review/blog angle related to products. This time, my focus in on Amazon with a small focus on EPN (only showing 2-3 auctions), etc.</p>
<p>To do this, I discovered a fantastic WordPress plugin called <a href="http://www.money-code.com/target/reviewazon.php" target="_blank">ReviewAZON</a>. I cannot believe how cool this plugin is. First off, it&#8217;s already up-to-date with new Amazon authentication structure, so it&#8217;s good to go there. Below is a listing of product features advertised on their site.</p>
<ul>
<li><strong>Get Lifetime updates</strong> &#8211; Pay once and get lifetime updates and product enhancements for the life of the product.</li>
<li><strong>Use ReviewAZON on UNLIMITED Domains!</strong> Buy it and use it on some or all of your domains.</li>
<li><strong>Access to the ReviewAZON Support Forum</strong>: Join our community of ReviewAZON users and get the latest product updates, support information as well as user tips and tricks to make your blog a success!</li>
<li>ReviewAZON allows you to <strong>display over 25 different pieces of product content</strong> such as average customer rating, product description, customer reviews, pricing, brand, manufacturer, product details and more!</li>
<li><strong>Detailed product user guide</strong> helps you every step of the way when it comes to installing, configuring and using the ReviewAZON Wordpress plug-in. Also learn how to make your own custom templates quickly and easily.</li>
<li><strong>Build complete blogs in a matter of hours</strong> instead of days or weeks allowing you to focus on other things such as promotion and creating additional blogs.</li>
<li><strong>Easy to use</strong> and intuitive administrative tools make configuring ReviewAZON a snap!</li>
<li><strong>Ajax driven product search dialog </strong>screen allows you to search by product category, custom sort parameter and product keywords to find just the products you are looking for quickly to add quality content to your blog in just minutes.</li>
<li><strong>Support for all the Amazon Affiliate programs</strong> including Canada, United States, United Kingdom, France, Germany and Japan.</li>
<li><strong>Flexible HTML templates</strong> let you control the output of Amazon data to your users with virtually unlimited ways to display pertinent and meaningful content to your blog readers.</li>
<li><strong>Custom YouTube video search screen</strong> allows you to search for YouTube product reviews and add them to your blog to enhance the reader experience.</li>
<li><strong>Display Product Accessories and Similar Product listings</strong> along side your product post pages by showing them in-line or by using the custom sidebar widgets that come out of the box with ReviewAZON.</li>
<li>Use the built in Custom Template Manager interface to make custom template changes on the fly and <strong>update all your blog posts with a single save</strong>!</li>
<li><strong>Custom Template Token Reference tool</strong> allows you to see exactly what tokens are available for use with that particular template without having to reference the manual each time you make a change.</li>
<li><strong>eBay integration</strong> with PhpBayLite or PhpBayPro enables you to display eBay listings along side the products you are promoting to help increase your ROI and affiliate commissions.</li>
<li><strong>Built in custom Sidebar Widgets</strong> helps you to display information such as product Brands, Price Ranges and Featured Products to your customers to better help them find the information they need on your blog.</li>
<li>Use the built in <strong>Tabbed product listing interface</strong> to display product information to your users in a tab layout instead of the normal vertical layout.</li>
<li><strong>SEO friendly image and product URLs</strong> can be configured to display human readable links that not only help your readers but also boost on page SEO for your blog.</li>
<li><strong>Output Caching </strong>allows you to speed up the rendering of product content to your blog readers by reducing the load time and the number of calls to the Amazon web service.</li>
<li>Make your blog product content stand out by providing your readers with timely and informative <strong>customer reviews on the products you are promoting</strong>.</li>
<li><strong>Continuously add product posts to your blog by “Drip Feeding”</strong> them over a defined set of time by using the Bulk Product Post feature of ReviewAZON. You can have products automatically post to your blog over the course of days, weeks and even months allowing you to focus on promotion rather than content creation.</li>
</ul>
<p>What I particularily like is the buld search and post of Amazon products. Here you can create many blog entries (inserted in random times) to your blog (this is what they refer to as &#8220;Drip Feeding&#8221;). They also provide a YouTube review feature where you can search YouTube for related videos and include them with your post. Very cool. Also the ability to include actual Amazon reviews fills content quite nicely. You can edit content surrounding your Amazon fed posts as well to create a more personal review.</p>
<p>The eBay integration is great. I went with PHPBay Lite version for now, which provides more than enough control for what I&#8221;m trying to. Remember, I&#8217;m trying to focus on Amazon vs. EPN on these particular blogs.</p>
<p>If you&#8217;re looking for some quality <a href="http://www.money-code.com/target/reviewazon.php" target="_blank">Amazon integration for your WordPress blog</a>, this could be the <a href="http://www.money-code.com/target/reviewazon.php" target="_blank">plugin</a> for you! How effective has it been for me? Too soon to tell, but I&#8217;m very optimistic. I&#8217;ve changed my niches to more &#8216;commercial&#8217; products and plan on working the long tail. The content definitely supplies a lot of keywords. My big concern is duplicate content penalties. My goal is to break up the content and insert as much as I can to help avoid this.</p>


<p>Related posts:<ol><li><a href='http://www.money-code.com/2009/08/understanding-the-amazon-product-advertising-api/' rel='bookmark' title='Permanent Link: Understanding the Amazon Product Advertising API'>Understanding the Amazon Product Advertising API</a></li>
<li><a href='http://www.money-code.com/2009/09/thinking-out-load-about-epn-quality-click-pricing-qcp/' rel='bookmark' title='Permanent Link: Thinking out loud about EPN Quality Click Pricing (QCP)'>Thinking out loud about EPN Quality Click Pricing (QCP)</a></li>
<li><a href='http://www.money-code.com/2009/05/ideas-to-improve-epn-sites/' rel='bookmark' title='Permanent Link: Ideas to improve EPN sites'>Ideas to improve EPN sites</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/08/review-of-reviewazon/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Including your WordPress blogs to a external website</title>
		<link>http://www.money-code.com/2009/08/including-your-wordpress-blogs-to-a-external-website/</link>
		<comments>http://www.money-code.com/2009/08/including-your-wordpress-blogs-to-a-external-website/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 22:47:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.money-code.com/?p=522</guid>
		<description><![CDATA[I&#8217;ve been working on various CJ and EPN store fronts lately. Not creating new ones but working SEO and fattening them up with more reasons to visit. One of my popular ones I thought it would be cool to introduce a blog where I can promote more CJ items and promote other sites (treating it [...]


Related posts:<ol><li><a href='http://www.money-code.com/2007/09/simple-script-for-connecting-to-commission-junctions-product-web-service-and-populating-a-local-database/' rel='bookmark' title='Permanent Link: Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database'>Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database</a></li>
<li><a href='http://www.money-code.com/2009/07/including-twitter-updates-in-your-site/' rel='bookmark' title='Permanent Link: Including Twitter updates in your site'>Including Twitter updates in your site</a></li>
<li><a href='http://www.money-code.com/2007/09/capture-search-data-on-your-site/' rel='bookmark' title='Permanent Link: Capture search data on your site'>Capture search data on your site</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F08%2Fincluding-your-wordpress-blogs-to-a-external-website%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F08%2Fincluding-your-wordpress-blogs-to-a-external-website%2F" height="61" width="51" /></a></div><p>I&#8217;ve been working on various CJ and EPN store fronts lately. Not creating new ones but working SEO and fattening them up with more reasons to visit. One of my popular ones I thought it would be cool to introduce a blog where I can promote more CJ items and promote other sites (treating it like a hub blog of sorts). I did not want to include the WordPress blog in a subdirectory, but wanted it as a sub domain (http://blog.test.com). This is located on another server (complicated circumstances), but I wanted to include recent posts within the home page of the store front.</p>
<p>I thought this over. I was originally just going to suck in the RSS feed from the blog, but I didn&#8217;t want the blog to impact performance in anyway. Performance can be impacted with slow delivery of the RSS (I&#8217;m already sucking in a eBay RSS feed there as well), or worse the RSS times out or has issues. I didn&#8217;t want that impression left to the potential customer.</p>
<p>I thought it might be cool to create a cron job to suck in the recent posts every hour via direct connection to the database on the remote server and populate a local database (the storefront). This way the &#8216;fetch&#8217; process is outside the performance of the site, and the presentation of the feed would be handled by the local mysql database (very quick). Plus.. it sounded like a nerdy thing to do this morning.</p>
<p>To do this, I created a local wp_posts table in the local database (this is not the WordPress database). I&#8217;m only needing a few things: date, title, comments, etc.</p>
<p>Here is the schema:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw1">CREATE</span> <span class="kw1">TABLE</span> <span class="kw1">IF</span> <span class="kw1">NOT</span> <span class="kw1">EXISTS</span> <span class="st0">`wp_posts`</span> <span class="br0">&#40;</span><br />
<span class="st0">`ID`</span> bigint<span class="br0">&#40;</span><span class="nu0">20</span><span class="br0">&#41;</span> <span class="kw1">UNSIGNED</span> <span class="kw1">NOT</span> <span class="kw1">NULL</span> <span class="kw1">AUTO_INCREMENT</span>,<br />
<span class="st0">`post_date`</span> datetime <span class="kw1">NOT</span> <span class="kw1">NULL</span> <span class="kw1">DEFAULT</span> <span class="st0">&#8216;0000-00-00 00:00:00&#8242;</span>,<br />
<span class="st0">`post_title`</span> text <span class="kw1">NOT</span> <span class="kw1">NULL</span>,<br />
<span class="st0">`post_name`</span> varchar<span class="br0">&#40;</span><span class="nu0">200</span><span class="br0">&#41;</span> <span class="kw1">NOT</span> <span class="kw1">NULL</span> <span class="kw1">DEFAULT</span> <span class="st0">&#8221;</span>,<br />
<span class="st0">`post_type`</span> varchar<span class="br0">&#40;</span><span class="nu0">20</span><span class="br0">&#41;</span> <span class="kw1">NOT</span> <span class="kw1">NULL</span> <span class="kw1">DEFAULT</span> <span class="st0">&#8216;post&#8217;</span>,<br />
<span class="st0">`comment_count`</span> bigint<span class="br0">&#40;</span><span class="nu0">20</span><span class="br0">&#41;</span> <span class="kw1">NOT</span> <span class="kw1">NULL</span> <span class="kw1">DEFAULT</span> <span class="st0">&#8216;0&#8242;</span>,<br />
<span class="kw1">PRIMARY</span> <span class="kw1">KEY</span>  <span class="br0">&#40;</span><span class="st0">`ID`</span><span class="br0">&#41;</span><br />
<span class="br0">&#41;</span> ENGINE=MyISAM  <span class="kw1">DEFAULT</span> CHARSET=utf8 <span class="kw1">AUTO_INCREMENT</span>=<span class="nu0">1</span></div>
<p>Next, I made the &#8216;worker&#8217; PHP CLI script that will run on the linux server in the background. This is not executed via a browser but using the PHP executable to parse it. It basically connects to the remote (WordPress) database and queries the latest 10 records. It then truncates my local database and repopulates it with new info.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="co2">#!/usr/bin/php</span><br />
<span class="kw2">&lt;?php</span><br />
<a href="http://www.php.net/define"><span class="kw3">define</span></a><span class="br0">&#40;</span><span class="st0">&#8216;DB_NAME&#8217;</span>, <span class="st0">&#8216;test&#8217;</span><span class="br0">&#41;</span>;<br />
<a href="http://www.php.net/define"><span class="kw3">define</span></a><span class="br0">&#40;</span><span class="st0">&#8216;DB_USER&#8217;</span>, <span class="st0">&#8216;test&#8217;</span><span class="br0">&#41;</span>;<br />
<a href="http://www.php.net/define"><span class="kw3">define</span></a><span class="br0">&#40;</span><span class="st0">&#8216;DB_PASSWORD&#8217;</span>, <span class="st0">&#8216;test&#8217;</span><span class="br0">&#41;</span>;<br />
<a href="http://www.php.net/define"><span class="kw3">define</span></a><span class="br0">&#40;</span><span class="st0">&#8216;DB_HOST&#8217;</span>, <span class="st0">&#8216;mysql.test.com&#8217;</span><span class="br0">&#41;</span>;<br />
<a href="http://www.php.net/define"><span class="kw3">define</span></a><span class="br0">&#40;</span><span class="st0">&#8216;LOCAL_DB_NAME&#8217;</span>, <span class="st0">&#8216;test&#8217;</span><span class="br0">&#41;</span>;<br />
<a href="http://www.php.net/define"><span class="kw3">define</span></a><span class="br0">&#40;</span><span class="st0">&#8216;LOCAL_DB_USER&#8217;</span>, <span class="st0">&#8216;test&#8217;</span><span class="br0">&#41;</span>;<br />
<a href="http://www.php.net/define"><span class="kw3">define</span></a><span class="br0">&#40;</span><span class="st0">&#8216;LOCAL_DB_PASSWORD&#8217;</span>, <span class="st0">&#8216;test&#8217;</span><span class="br0">&#41;</span>;<br />
<a href="http://www.php.net/define"><span class="kw3">define</span></a><span class="br0">&#40;</span><span class="st0">&#8216;LOCAL_DB_HOST&#8217;</span>, <span class="st0">&#8216;localhost&#8217;</span><span class="br0">&#41;</span>;<br />
<a href="http://www.php.net/mysql_connect"><span class="kw3">mysql_connect</span></a><span class="br0">&#40;</span>DB_HOST, DB_USER, DB_PASSWORD<span class="br0">&#41;</span>;<br />
@<a href="http://www.php.net/mysql_select_db"><span class="kw3">mysql_select_db</span></a><span class="br0">&#40;</span>DB_NAME<span class="br0">&#41;</span> or <a href="http://www.php.net/die"><span class="kw3">die</span></a><span class="br0">&#40;</span><span class="st0">&quot;Unable to select database&quot;</span><span class="br0">&#41;</span>;<br />
<span class="re0">$sql</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span class="st0">&quot;SELECT post_date, post_type, comment_count, post_title, post_name<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM wp_8kzhbt_posts<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE post_type = &#8216;post&#8217;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ORDER BY post_date DESC<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LIMIT 10&quot;</span>;<br />
<span class="kw1">if</span><span class="br0">&#40;</span>!<span class="re0">$rs</span> = <a href="http://www.php.net/mysql_query"><span class="kw3">mysql_query</span></a><span class="br0">&#40;</span><span class="re0">$sql</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;Database Error<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <a href="http://www.php.net/mysql_error"><span class="kw3">mysql_error</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="st0">&quot;<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="re0">$sql</span>.<span class="st0">&quot;<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/exit"><span class="kw3">exit</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="re0">$postArr</span> &nbsp; &nbsp; &nbsp; &nbsp;= <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw1">if</span><span class="br0">&#40;</span><a href="http://www.php.net/mysql_num_rows"><span class="kw3">mysql_num_rows</span></a><span class="br0">&#40;</span><span class="re0">$rs</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$num</span> &nbsp; &nbsp;= <span class="nu0">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">while</span><span class="br0">&#40;</span><span class="re0">$row</span> = <a href="http://www.php.net/mysql_fetch_object"><span class="kw3">mysql_fetch_object</span></a><span class="br0">&#40;</span><span class="re0">$rs</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$postArr</span><span class="br0">&#91;</span><span class="re0">$num</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;post_date&#8217;</span><span class="br0">&#93;</span> &nbsp; &nbsp; = <span class="re0">$row</span>-&gt;<span class="me1">post_date</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$postArr</span><span class="br0">&#91;</span><span class="re0">$num</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;post_type&#8217;</span><span class="br0">&#93;</span> &nbsp; &nbsp; = <span class="re0">$row</span>-&gt;<span class="me1">post_type</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$postArr</span><span class="br0">&#91;</span><span class="re0">$num</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;comment_count&#8217;</span><span class="br0">&#93;</span> = <span class="re0">$row</span>-&gt;<span class="me1">comment_count</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$postArr</span><span class="br0">&#91;</span><span class="re0">$num</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;post_title&#8217;</span><span class="br0">&#93;</span> &nbsp; &nbsp;= <span class="re0">$row</span>-&gt;<span class="me1">post_title</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$postArr</span><span class="br0">&#91;</span><span class="re0">$num</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;post_name&#8217;</span><span class="br0">&#93;</span> &nbsp; &nbsp; = <span class="re0">$row</span>-&gt;<span class="me1">post_name</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$num</span>++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span><br />
<a href="http://www.php.net/mysql_free_result"><span class="kw3">mysql_free_result</span></a><span class="br0">&#40;</span><span class="re0">$rs</span><span class="br0">&#41;</span>;</p>
<p><span class="kw1">if</span><span class="br0">&#40;</span><a href="http://www.php.net/sizeof"><span class="kw3">sizeof</span></a><span class="br0">&#40;</span><span class="re0">$postArr</span><span class="br0">&#41;</span> &gt; <span class="nu0">0</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// connect to local db</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// clean the table</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// re-populate</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$localCon</span> = <a href="http://www.php.net/mysql_connect"><span class="kw3">mysql_connect</span></a><span class="br0">&#40;</span>LOCAL_DB_HOST, LOCAL_DB_USER, LOCAL_DB_PASSWORD<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; @<a href="http://www.php.net/mysql_select_db"><span class="kw3">mysql_select_db</span></a><span class="br0">&#40;</span>LOCAL_DB_NAME<span class="br0">&#41;</span> or <a href="http://www.php.net/die"><span class="kw3">die</span></a><span class="br0">&#40;</span><span class="st0">&quot;Unable to select database&quot;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$sql</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span class="st0">&quot;TRUNCATE TABLE `wp_posts`&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>!<a href="http://www.php.net/mysql_query"><span class="kw3">mysql_query</span></a><span class="br0">&#40;</span><span class="re0">$sql</span>,<span class="re0">$localCon</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;Database Error &#8211; Local Connection<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/exit"><span class="kw3">exit</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span><span class="br0">&#40;</span><span class="re0">$num</span> = <span class="nu0">0</span>; <span class="re0">$num</span> &lt; <a href="http://www.php.net/sizeof"><span class="kw3">sizeof</span></a><span class="br0">&#40;</span><span class="re0">$postArr</span><span class="br0">&#41;</span>; <span class="re0">$num</span>++<span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$sql</span> &nbsp; &nbsp;= <span class="st0">&quot;INSERT INTO wp_posts(post_date,post_type,comment_count,post_title,post_name)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUES(&#8216;&quot;</span>.<span class="re0">$postArr</span><span class="br0">&#91;</span><span class="re0">$num</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;post_date&#8217;</span><span class="br0">&#93;</span>.<span class="st0">&quot;&#8217;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8216;&quot;</span>.<span class="re0">$postArr</span><span class="br0">&#91;</span><span class="re0">$num</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;post_type&#8217;</span><span class="br0">&#93;</span>.<span class="st0">&quot;&#8217;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8216;&quot;</span>.<span class="re0">$postArr</span><span class="br0">&#91;</span><span class="re0">$num</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;comment_count&#8217;</span><span class="br0">&#93;</span>.<span class="st0">&quot;&#8217;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8216;&quot;</span>.<span class="re0">$postArr</span><span class="br0">&#91;</span><span class="re0">$num</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;post_title&#8217;</span><span class="br0">&#93;</span>.<span class="st0">&quot;&#8217;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8216;&quot;</span>.<span class="re0">$postArr</span><span class="br0">&#91;</span><span class="re0">$num</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;post_name&#8217;</span><span class="br0">&#93;</span>.<span class="st0">&quot;&#8217;)&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>!<a href="http://www.php.net/mysql_query"><span class="kw3">mysql_query</span></a><span class="br0">&#40;</span><span class="re0">$sql</span>,<span class="re0">$localCon</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;Database Error &#8211; Insert Local Connection<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/exit"><span class="kw3">exit</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span><br />
<a href="http://www.php.net/unset"><span class="kw3">unset</span></a><span class="br0">&#40;</span><span class="re0">$postArr</span><span class="br0">&#41;</span>;<br />
<span class="kw2">?&gt;</span></div>
<p>This script is added to the cron.hourly of the server is executed on a hourly basis. You could add this to crontab as well.</p>
<p>The next piece is on the storefront site itself. I query the local database and ask for the entries and reassembly my &#8216;permalink&#8217;. I could have used the guid field in the database, but it seems to convert a few of the URLs to permalinks. Not sure why, so I figured I would just create it. You may need to adjust it to fit your format.</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="kw2">&lt;?php</span><br />
<span class="re0">$sql</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="st0">&quot;SELECT *<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM wp_posts<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ORDER BY post_date DESC&quot;</span>;<br />
<span class="kw1">if</span><span class="br0">&#40;</span>!<span class="re0">$rs</span> = <a href="http://www.php.net/mysql_query"><span class="kw3">mysql_query</span></a><span class="br0">&#40;</span><span class="re0">$sql</span>,<span class="re0">$connect</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/trigger_error"><span class="kw3">trigger_error</span></a><span class="br0">&#40;</span><a href="http://www.php.net/sprintf"><span class="kw3">sprintf</span></a><span class="br0">&#40;</span><span class="st0">&quot;SQL Error: %d: %s<span class="es0">\n</span>&quot;</span> , <a href="http://www.php.net/mysql_errno"><span class="kw3">mysql_errno</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>, <a href="http://www.php.net/mysql_error"><span class="kw3">mysql_error</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>, <span class="kw2">E_USER_ERROR</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="kw1">if</span><span class="br0">&#40;</span><a href="http://www.php.net/mysql_num_rows"><span class="kw3">mysql_num_rows</span></a><span class="br0">&#40;</span><span class="re0">$rs</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><span class="kw2">?&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div <span class="kw2">class</span>=<span class="st0">&quot;header&quot;</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Recent Blog Posts<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;&lt;?<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">while</span><span class="br0">&#40;</span><span class="re0">$row</span> = <a href="http://www.php.net/mysql_fetch_object"><span class="kw3">mysql_fetch_object</span></a><span class="br0">&#40;</span><span class="re0">$rs</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$post_date</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="re0">$row</span>-&gt;<span class="me1">post_date</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$post_title</span>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; = <span class="re0">$row</span>-&gt;<span class="me1">post_title</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$post_name</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="re0">$row</span>-&gt;<span class="me1">post_name</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$comments</span>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; = <span class="re0">$row</span>-&gt;<span class="me1">comment_count</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// assemble the permalink</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// http://blog.test.com/year/mo/day/post-name/</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$dateArr</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <a href="http://www.php.net/explode"><span class="kw3">explode</span></a><span class="br0">&#40;</span><span class="st0">&#8216; &#8216;</span>,<span class="re0">$post_date</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$dateSeg</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <a href="http://www.php.net/explode"><span class="kw3">explode</span></a><span class="br0">&#40;</span><span class="st0">&#8216;-&#8217;</span>,<span class="re0">$dateArr</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$year</span>&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="re0">$dateSeg</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$month</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="re0">$dateSeg</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$day</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="re0">$dateSeg</span><span class="br0">&#91;</span><span class="nu0">2</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$formatDate</span>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; = showDate<span class="br0">&#40;</span><span class="re0">$post_date</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$url</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="st0">&#8216;http://blog.test.com/&#8217;</span>.<span class="re0">$year</span>.<span class="st0">&#8216;/&#8217;</span>.<span class="re0">$month</span>.<span class="st0">&#8216;/&#8217;</span>.<span class="re0">$day</span>.<span class="st0">&#8216;/&#8217;</span>.<span class="re0">$post_name</span>;?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=<span class="st0">&quot;margin-bottom: 8px&quot;</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=<span class="st0">&quot;&lt;?=$url?&gt;&quot;</span> target=<span class="st0">&quot;_blank&quot;</span> rel=<span class="st0">&quot;dofollow&quot;</span> style=<span class="st0">&quot;font-weight: bold;&quot;</span>&gt;&lt;?=<span class="re0">$post_title</span>?&gt;&lt;/a&gt; <span class="kw2">&lt;?</span>=<span class="re0">$formatDate</span>?&gt; <span class="br0">&#40;</span><span class="kw2">&lt;?</span>=<span class="re0">$comments</span>?&gt; comments<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;&lt;?<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span><br />
<a href="http://www.php.net/mysql_free_result"><span class="kw3">mysql_free_result</span></a><span class="br0">&#40;</span><span class="re0">$rs</span><span class="br0">&#41;</span>;?&gt;</div>
<p>Have fun with this.. hope it helps. There is literally a million ways you can do this. I would probably suck the RSS feed in directly via the worker script, then parse and insert that into the database if I was to do it again.</p>


<p>Related posts:<ol><li><a href='http://www.money-code.com/2007/09/simple-script-for-connecting-to-commission-junctions-product-web-service-and-populating-a-local-database/' rel='bookmark' title='Permanent Link: Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database'>Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database</a></li>
<li><a href='http://www.money-code.com/2009/07/including-twitter-updates-in-your-site/' rel='bookmark' title='Permanent Link: Including Twitter updates in your site'>Including Twitter updates in your site</a></li>
<li><a href='http://www.money-code.com/2007/09/capture-search-data-on-your-site/' rel='bookmark' title='Permanent Link: Capture search data on your site'>Capture search data on your site</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/08/including-your-wordpress-blogs-to-a-external-website/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Staying on top of your blog posts</title>
		<link>http://www.money-code.com/2009/07/staying-on-top-of-your-blog-posts/</link>
		<comments>http://www.money-code.com/2009/07/staying-on-top-of-your-blog-posts/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 18:13:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Affiliate Marketing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.money-code.com/?p=350</guid>
		<description><![CDATA[One of the great features for Word Press blogs is the ability to Schedule your posts. I recently converted this blog from Drupal to WordPress, and I&#8217;m very impressed with this feature. In Drupal, I was unable to schedule posts, I could date them &#8216;ahead&#8217;, but I wanted posts to just appear on a daily [...]


Related posts:<ol><li><a href='http://www.money-code.com/2009/06/migrating-money-code-from-drupal-to-wordpress/' rel='bookmark' title='Permanent Link: Migrating Money-Code from Drupal to WordPress'>Migrating Money-Code from Drupal to WordPress</a></li>
<li><a href='http://www.money-code.com/2009/06/good-adjustments-made-to-my-new-wordpress-blog/' rel='bookmark' title='Permanent Link: Good adjustments made to my new WordPress blog'>Good adjustments made to my new WordPress blog</a></li>
<li><a href='http://www.money-code.com/2009/07/guest-posts/' rel='bookmark' title='Permanent Link: Guest Posts'>Guest Posts</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F07%2Fstaying-on-top-of-your-blog-posts%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F07%2Fstaying-on-top-of-your-blog-posts%2F" height="61" width="51" /></a></div><p><img class="alignleft size-full wp-image-351" title="icon_big" src="http://www.money-code.com/wp-content/uploads/2009/06/icon_big.jpg" alt="icon_big" width="150" height="151" />One of the great features for Word Press blogs is the ability to Schedule your posts. I recently converted this blog from Drupal to WordPress, and I&#8217;m very impressed with this feature. In Drupal, I was unable to schedule posts, I could date them &#8216;ahead&#8217;, but I wanted posts to just appear on a daily basis. This could have been a Drupal plugin that I needed to install, but it was never pressing enough for me to spend some time to look for it. Now having this feature automatically in WordPress, I&#8217;m realizing what I&#8217;ve been missing.</p>
<p>The schedule piece is a great way to get your blog posting on a daily or semi daily basis. Now, when I have a few free moments, I look in my &#8216;idea&#8217; list for potential blog topics or tips and crank out a article or two and get myself ahead of the game. Again, this is another great opportunity to actual work while watching TV, etc.</p>
<p>If you haven&#8217;t switched to WordPress, you might want to give it a look. If you do, please remember to keep it up to date, since security vulnerabilities is a growing problem with this widely popular blogging platform.</p>


<p>Related posts:<ol><li><a href='http://www.money-code.com/2009/06/migrating-money-code-from-drupal-to-wordpress/' rel='bookmark' title='Permanent Link: Migrating Money-Code from Drupal to WordPress'>Migrating Money-Code from Drupal to WordPress</a></li>
<li><a href='http://www.money-code.com/2009/06/good-adjustments-made-to-my-new-wordpress-blog/' rel='bookmark' title='Permanent Link: Good adjustments made to my new WordPress blog'>Good adjustments made to my new WordPress blog</a></li>
<li><a href='http://www.money-code.com/2009/07/guest-posts/' rel='bookmark' title='Permanent Link: Guest Posts'>Guest Posts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/07/staying-on-top-of-your-blog-posts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Good adjustments made to my new WordPress blog</title>
		<link>http://www.money-code.com/2009/06/good-adjustments-made-to-my-new-wordpress-blog/</link>
		<comments>http://www.money-code.com/2009/06/good-adjustments-made-to-my-new-wordpress-blog/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 21:16:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.money-code.com/2009/06/265/</guid>
		<description><![CDATA[As I stated earlier today, I migrated Money-Code.com from a Drupal platform to the WordPress platform. The first steps were to move the data from their old tables to their new tables. Next was to configure tags, categories and add functional plugins. The other areas I wanted to make sure was working was getting my [...]


Related posts:<ol><li><a href='http://www.money-code.com/2007/10/url-masking-cloaking/' rel='bookmark' title='Permanent Link: URL Masking (cloaking)'>URL Masking (cloaking)</a></li>
<li><a href='http://www.money-code.com/2009/06/migrating-money-code-from-drupal-to-wordpress/' rel='bookmark' title='Permanent Link: Migrating Money-Code from Drupal to WordPress'>Migrating Money-Code from Drupal to WordPress</a></li>
<li><a href='http://www.money-code.com/2009/10/update-wordpress/' rel='bookmark' title='Permanent Link: Update WordPress!'>Update WordPress!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F06%2Fgood-adjustments-made-to-my-new-wordpress-blog%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F06%2Fgood-adjustments-made-to-my-new-wordpress-blog%2F" height="61" width="51" /></a></div><p>As I stated earlier today, I migrated Money-Code.com from a Drupal platform to the WordPress platform. The first steps were to move the data from their old tables to their new tables. Next was to configure tags, categories and add functional plugins. The other areas I wanted to make sure was working was getting my popular posts to be redirected to their new locations here. I went with SEO friendly URLs so had to do some redirects using my .htaccess file.</p>
<p>Along with rewrites, I made some security adjustment to them and thought it would be good talk about those as well.</p>
<p>First to do redirects you can use mod_rewrite or something simple like Redirect. Here is what I did for my redirects of my popular posts:</p>
<div class="dean_ch" style="white-space: wrap;">Redirect <span class="nu0">301</span> /node/<span class="nu0">46</span> http:<span class="co1">//www.money-code.com/2007/11/using-ffmpeg-to-create-youtube-clone-script/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">93</span> http:<span class="co1">//www.money-code.com/2008/09/epn-bannings-and-epc/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">32</span> http:<span class="co1">//www.money-code.com/2007/10/url-masking-cloaking/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">23</span> http:<span class="co1">//www.money-code.com/2007/09/simple-script-for-connecting-to-commission-junctions-product-web-service-and-populating-a-local-database/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">15</span> http:<span class="co1">//www.money-code.com/2007/09/using-ebays-api-to-search-auctions-and-return-results/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">61</span> http:<span class="co1">//www.money-code.com/2008/01/cj-apiwebservice-version-2/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">20</span> http:<span class="co1">//www.money-code.com/2007/09/build-a-niche-store-bans-unsatisfied-programmer/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">64</span> http:<span class="co1">//www.money-code.com/2008/01/how-to-search-amazons-catalog-with-amazons-associate-web-service/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">37</span> http:<span class="co1">//www.money-code.com/2007/10/ebay-rss-querystringvariable-definitions/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">56</span> http:<span class="co1">//www.money-code.com/2007/12/how-to-use-ppc-with-your-ebay-affiliate-store-fronts/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">77</span> http:<span class="co1">//www.money-code.com/2008/03/prepare-for-ebay-partner-network-cutover/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">14</span> http:<span class="co1">//www.money-code.com/2007/09/capture-search-data-on-your-site/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">98</span> http:<span class="co1">//www.money-code.com/2008/10/dynamic-xmlrss-feed-using-popshops/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">44</span> http:<span class="co1">//www.money-code.com/2007/11/shoemoneys-google-adsense-check/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">71</span> http:<span class="co1">//www.money-code.com/2008/02/popshops/</span></div>
<p>Here we&#8217;re using Redirect 301 which is &#8220;Moved Permanently&#8221;. It&#8217;s looking for the node variable with was Drupal&#8217;s page handling and redirecting to the new SEO friendly WordPress URLs.</p>
<p>The next item I always like to include is adding proper 403 and 404 handlers in .htaccess. Basically when a 403 (Client Denied) or 404 (File not found), I like to redirect the user back to the home page instead of giving them a crappy Apache message. You can get fancier by creating custom error pages, but redirect works find for me. Here is what you would add for this:</p>
<div class="dean_ch" style="white-space: wrap;">ErrorDocument <span class="nu0">403</span> http:<span class="co1">//www.money-code.com</span><br />
ErrorDocument <span class="nu0">404</span> http:<span class="co1">//www.money-code.com</span></div>
<p>The other piece that is really important, and often not used is turning OFF indexes. Basically if you go to a directory without a index page (ie: index.php), it will list out the contents of that directory. This is a potential security risk, it can show what items you have installed, or provide files for download that you did not want downloaded. By simply adding this, it will throw a 403 to the user that hits a page without a index file.</p>
<div class="dean_ch" style="white-space: wrap;">Options -Indexes</div>
<p>I primarily did this since I don&#8217;t want people seeing my wp-content/plugins directory, but I see as of 2.8, they&#8217;ve added a index.php with nothing in it, causing a white page. This is good, but I think it&#8217;s still good practice to prevent directory browsing like this.</p>
<p>The other piece I like to do is restrict administrative access to my IPs. I&#8217;m a freak this way. I have static IPs at my office, and I also have VPN access, so I like to restrict access to certain IPs on my network. Basically, I have to be at my office OR VPN&#8217;d to my office to edit my pages. This is a pain to many people, and I can understand people not into this, and that&#8217;s fine, but it really reduces the risk of brute force attacks to your admin area.  If you&#8217;re interested in this measure here is the code you would include in the .htaccess file residing wp-admin/:</p>
<div class="dean_ch" style="white-space: wrap;">order deny,allow<br />
<span class="re1">deny from all</span><br />
allow from xxx.xxx.xxx.xxx</div>
<p>Obvisouly, xxx.xxx.xxx.xxx would be your static IP or subnet xxx.xxx.xxx.xxx./16 for example.</p>
<p>I&#8217;ve always been uneasy with WordPress due to it&#8217;s history and potential damage it can cause on the server it lives on. The bottom line is to keep your install up to date, and that includes your plugins. I&#8217;ll also be setting a subdomain for testing purposes (only available to my IP) to handle large WP updates.</p>


<p>Related posts:<ol><li><a href='http://www.money-code.com/2007/10/url-masking-cloaking/' rel='bookmark' title='Permanent Link: URL Masking (cloaking)'>URL Masking (cloaking)</a></li>
<li><a href='http://www.money-code.com/2009/06/migrating-money-code-from-drupal-to-wordpress/' rel='bookmark' title='Permanent Link: Migrating Money-Code from Drupal to WordPress'>Migrating Money-Code from Drupal to WordPress</a></li>
<li><a href='http://www.money-code.com/2009/10/update-wordpress/' rel='bookmark' title='Permanent Link: Update WordPress!'>Update WordPress!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/06/good-adjustments-made-to-my-new-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Migrating Money-Code from Drupal to WordPress</title>
		<link>http://www.money-code.com/2009/06/migrating-money-code-from-drupal-to-wordpress/</link>
		<comments>http://www.money-code.com/2009/06/migrating-money-code-from-drupal-to-wordpress/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 18:24:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.money-code.com/?p=200</guid>
		<description><![CDATA[So I was really getting annoyed with Drupal and thought I would make the push to WordPress. Surprisingly, the migration went pretty easy for the most part (relating to posts and comments). This site was a great resource for the SQL updates:
http://www.darcynorman.net/2007/05/15/how-to-migrate-from-drupal-5-to-wordpress-2/
After I migrated to WordPress, I needed to update my posts that had code [...]


Related posts:<ol><li><a href='http://www.money-code.com/2009/10/simple-modification-to-fd-feedburner-plugin/' rel='bookmark' title='Permanent Link: Simple modification to FD Feedburner Plugin'>Simple modification to FD Feedburner Plugin</a></li>
<li><a href='http://www.money-code.com/2009/07/staying-on-top-of-your-blog-posts/' rel='bookmark' title='Permanent Link: Staying on top of your blog posts'>Staying on top of your blog posts</a></li>
<li><a href='http://www.money-code.com/2009/08/including-your-wordpress-blogs-to-a-external-website/' rel='bookmark' title='Permanent Link: Including your WordPress blogs to a external website'>Including your WordPress blogs to a external website</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F06%2Fmigrating-money-code-from-drupal-to-wordpress%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F06%2Fmigrating-money-code-from-drupal-to-wordpress%2F" height="61" width="51" /></a></div><p>So I was really getting annoyed with Drupal and thought I would make the push to WordPress. Surprisingly, the migration went pretty easy for the most part (relating to posts and comments). This site was a great resource for the SQL updates:</p>
<p><a href="http://www.darcynorman.net/2007/05/15/how-to-migrate-from-drupal-5-to-wordpress-2/" target="_blank">http://www.darcynorman.net/2007/05/15/how-to-migrate-from-drupal-5-to-wordpress-2/</a></p>
<p>After I migrated to WordPress, I needed to update my posts that had code blocks (example code). I went with &#8220;<a href="http://lud.icro.us/disable-wordpress-core-update/" target="_blank">Dean&#8217;s Code Highlighter</a>&#8220;, which appears to work fine. For now, I&#8217;m working with a temporary theme while I develop better theme. The other issue that I needed to address was updating my feed at Feedburner with the new WordPress feed address. After I did this, I thought about doing a mod_rewrite which would have eliminated that need. Oh well. I&#8217;m psyched that I can now post my latest post in my Digital Point profile. I was unable to do that with the Drupal RSS format.</p>
<p>I should be completely done adding tags and assigning categories later today. After that I&#8217;ll start posting a few new posts.</p>
<p>Thanks everyone!<br />
hanji</p>


<p>Related posts:<ol><li><a href='http://www.money-code.com/2009/10/simple-modification-to-fd-feedburner-plugin/' rel='bookmark' title='Permanent Link: Simple modification to FD Feedburner Plugin'>Simple modification to FD Feedburner Plugin</a></li>
<li><a href='http://www.money-code.com/2009/07/staying-on-top-of-your-blog-posts/' rel='bookmark' title='Permanent Link: Staying on top of your blog posts'>Staying on top of your blog posts</a></li>
<li><a href='http://www.money-code.com/2009/08/including-your-wordpress-blogs-to-a-external-website/' rel='bookmark' title='Permanent Link: Including your WordPress blogs to a external website'>Including your WordPress blogs to a external website</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/06/migrating-money-code-from-drupal-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->