<?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"
	>

<channel>
	<title>John McAlester</title>
	<atom:link href="http://www.johnmcalester.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnmcalester.com</link>
	<description>Web design, writing, and travel</description>
	<pubDate>Sun, 30 Nov 2008 22:31:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Working with MySpace for a cleaner layout</title>
		<link>http://www.johnmcalester.com/working-with-myspace-for-a-cleaner-layout/</link>
		<comments>http://www.johnmcalester.com/working-with-myspace-for-a-cleaner-layout/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 07:01:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Web Design]]></category>

		<category><![CDATA[myspace]]></category>

		<guid isPermaLink="false">http://www.johnmcalester.com/?p=90</guid>
		<description><![CDATA[Wow!  MySpace is one clunky interface.  Especially if want to clean up the wonky layout and add some sophistication to how it looks.  There are however some great sites out there which show you just the right code to insert into the profile.  I found what I think is the best [...]]]></description>
			<content:encoded><![CDATA[<p>Wow!  MySpace is one clunky interface.  Especially if want to clean up the wonky layout and add some sophistication to how it looks.  There are however some great sites out there which show you just the right code to insert into the profile.  I found what I think is the best one at <a href="http://www.mikeindustries.com/blog/archive/2006/04/hacking-myspace-layouts">mikeindustries.com </a>.  The code that Mike has given up for this tutorial is nicely commented so that you can actually make sense of which tables and divs to target in order to whip this bear into shape.  It still took me a couple of hours of trial and error to get things just how I wanted them for a friends MySpace music site <a href="http://myspace.com/joelstreeter">myspace.com/joelstreeter</a>.  But the code at mikeindustries.com saved me hours of frustration.  I hope it can do the same for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnmcalester.com/working-with-myspace-for-a-cleaner-layout/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WP-shoppingcart plugin with godaddy.com Shared Hosting</title>
		<link>http://www.johnmcalester.com/curl-sessions-with-godaddycom-shared-hosting/</link>
		<comments>http://www.johnmcalester.com/curl-sessions-with-godaddycom-shared-hosting/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 05:47:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Web Design]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[authorize.net]]></category>

		<category><![CDATA[godaddy.com]]></category>

		<category><![CDATA[wp-shoppingcart]]></category>

		<guid isPermaLink="false">http://www.johnmcalester.com/?p=50</guid>
		<description><![CDATA[Godaddy.com shared hosting uses a secure proxy server for cURL sessions.  This is fine but it requires that you change a little bit of the code in a PHP file if you would like to get that to work with the wp-shopping cart plugin and authorize.net as your payment gateway. 

You will need to purchase the [...]]]></description>
			<content:encoded><![CDATA[<p>Godaddy.com shared hosting uses a secure proxy server for cURL sessions.  This is fine but it requires that you change a little bit of the code in a PHP file if you would like to get that to work with the wp-shopping cart plugin and authorize.net as your payment gateway. <br />
<span id="more-50"></span><br />
You will need to purchase the <a href="http://www.instinct.co.nz/e-commerce/shop/">Gold-Cart upgrade</a> for wp-shopping cart if you would like to be able to use authorize.net as your payment gateway.  After setting up the plugin and adding my products I was extremely frustrated to find out that my shopping cart transactions were not going through correctly.  I had entered my API information correctly and I was sure that the plugin was set up in the right way but I was getting a blank page returned every time I tried to submit a transaction.  </p>
<p>The solution is that the cURL session has to be written so that the call goes through godaddy&#8217;s secure proxy server.  The first clue came from this page: <a href="http://davidwalsh.name/godaddy-hosting-tip-using-curl-on-godaddy-shared-hosting">http://davidwalsh.name/godaddy-hosting-tip-using-curl-on-godaddy-shared-hosting</a> which alerted me to how godaddy shared hosting handles cURL calls.  I then went to the help page at godaddy.com which gave me the correct code for a cURL call to their proxy servers.  That page is: <a href="http://help.godaddy.com/article.php?article_id=289&#038;topic_id=435">http://help.godaddy.com/article.php?article_id=289&#038;topic_id=435</a></p>
<p>The authorize.php file located in gold_cart_files/merchants is the file with the code that actually sends the data that the shopper enters into your shopping cart to authorize.net.  This file normally sends the data through a regular http:// address but godaddy shared hosting only uses a secure https:// protocol to do cURL sessions.  So you have to add a few lines of code to your authorize.php file.</p>
<p>These are the 3 lines of code that you need to copy:<br />
<code><br />
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);<br />
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);<br />
curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");<br />
</code></p>
<p>Paste those 3 lines of code into your authorize.php file just after the lines of code below (should be about line 190):<br />
<code><br />
  #<br />
  # Start CURL session<br />
  #<br />
  $user_agent = "WP eCommerce plugin for Wordpress";<br />
  $referrer = get_option('transact_url');<br />
  $ch=curl_init();<br />
</code></p>
<p>The final cURL session code looks like this:<br />
<code><br />
 #<br />
  # Start CURL session<br />
  #<br />
  $user_agent = "WP eCommerce plugin for Wordpress";<br />
  $referrer = get_option('transact_url');<br />
  $ch=curl_init();<br />
  curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);<br />
  curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);<br />
  curl_setopt($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");<br />
  curl_setopt($ch, CURLOPT_URL, "https://secure.authorize.net/gateway/transact.dll");<br />
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);<br />
  curl_setopt($ch, CURLOPT_NOPROGRESS, 1);<br />
  curl_setopt($ch, CURLOPT_VERBOSE, 1);<br />
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION,0);<br />
  curl_setopt($ch, CURLOPT_POST, 1);<br />
  curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);<br />
  curl_setopt($ch, CURLOPT_TIMEOUT, 120);<br />
  curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);<br />
  curl_setopt($ch, CURLOPT_REFERER, $referrer);<br />
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
  $buffer = curl_exec($ch);<br />
  curl_close($ch);<br />
</code></p>
<p>Then save the file and your shopping cart should be able to do cURL sessions through godaddy shared hosting to authorize.net</p>
<p>You can download a complete authorize.php file with the new code inserted <a href="http://p3books.com/authorize.zip">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnmcalester.com/curl-sessions-with-godaddycom-shared-hosting/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordCamp SF 2008</title>
		<link>http://www.johnmcalester.com/wordcamp-sf-2008/</link>
		<comments>http://www.johnmcalester.com/wordcamp-sf-2008/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 20:04:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.johnmcalester.com/?p=35</guid>
		<description><![CDATA[I attended the WordCamp 2008 San Francisco this weekend and I have to say, it was a great event.  I&#8217;m a bit of a noob when it comes to conferences so it was all fresh to me.  One thing that I enjoyed about the mini-sessions was that they were often focused on what I would [...]]]></description>
			<content:encoded><![CDATA[<p>I attended the <a title="WordCamp Link" href="http://2008.sf.wordcamp.org/">WordCamp 2008 San Francisco</a> this weekend and I have to say, it was a great event.  I&#8217;m a bit of a noob when it comes to conferences so it was all fresh to me.  One thing that I enjoyed about the mini-sessions was that they were often focused on what I would call meta-thinking or pattern recognition.  The speakers talked about how to seek out ways of creating more useful content and websites rather than just how to tweak the software.  This was great because it creates a process whereby you are designing sites and content that are contextualy relevant not just full of bells and whistles.  Anyway, I had a blast and would recommend it to anyone who is into WordPress or thinking about creating a WordPress site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnmcalester.com/wordcamp-sf-2008/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New Theme for johnmcalester.com</title>
		<link>http://www.johnmcalester.com/new-theme-for-johnmcalestercom/</link>
		<comments>http://www.johnmcalester.com/new-theme-for-johnmcalestercom/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 20:17:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General News]]></category>

		<guid isPermaLink="false">http://www.johnmcalester.com/?p=9</guid>
		<description><![CDATA[I have been working with WordPress for about a year now.  At first just learning the structure of a WordPress site and then branching out to modifying themes and using WordPress as a CMS.  It was rewarding work but often very frustrating.  I recently came across and really nice tutorial by Chris Coyier [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working with WordPress for about a year now.  At first just learning the structure of a WordPress site and then branching out to modifying themes and using WordPress as a CMS.  It was rewarding work but often very frustrating.  I recently came across and really nice <a title="chriscoyier.net" href="http://chriscoyier.net/how-i-built-this-custom-wordpress-theme/">tutorial</a> by Chris Coyier of <a title="css-tricks.com" href="http://css-tricks.com">css-tricks.com</a> which outlines how to create a WordPress theme from scratch.</p>
<p>The tutorials cover creating a theme from start to finish in an easy to follow way and they helped me to clear out some bad habits that I have acquired over the last year.  The best part of the tutorial, I think, is that Chris shows how to design your theme from a blank theme.  This really helps to start things off on the right foot and create a solid foundation for your theme minus a lot of the frustration.  From the tutorial I created the new theme for this site.  Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnmcalester.com/new-theme-for-johnmcalestercom/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
