<?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>CopperBot Media &#187; WebDesign</title>
	<atom:link href="http://www.copperbot.net/category/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.copperbot.net</link>
	<description>Web Design and Illustration portfolio for Jay Darnell</description>
	<lastBuildDate>Thu, 22 Apr 2010 18:14:57 +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>Dynamic Copyright Code</title>
		<link>http://www.copperbot.net/dynamic-copyright-code/</link>
		<comments>http://www.copperbot.net/dynamic-copyright-code/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 18:09:00 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[copyright]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.copperbot.net/?p=283</guid>
		<description><![CDATA[<p>Nowadays most, if not all, websites contain a small copyright blurb in their site footer. Take a look at the bottom of this site and you'll see the text: "Copyright &#169; 2009-2010 CopperBot Media" as an example. Even if you're fairly new to web design you're probably already savvy enough to know the ASCII character code for the copyright symbol and you might be thinking, "Creating a copyright blurb is pretty easy. Where are you going with this?" The problem with static copyright blurbs created in HTML is that they become obsolete at the end of the year. The purpose of this post is to provide you with a simple dynamic alternative (using php) that will update automatically and keep your copyright blurbs up to date.</p>]]></description>
			<content:encoded><![CDATA[<p>Nowadays most, if not all, websites contain a small copyright blurb in their site footer. Take a look at the bottom of this site and you&#8217;ll see the text: &#8220;Copyright &copy; 2009-2010 CopperBot Media&#8221; as an example. Even if you&#8217;re fairly new to web design you&#8217;re probably already savvy enough to know the ASCII character code for the copyright symbol and you might be thinking, &#8220;Creating a copyright blurb is pretty easy. Where are you going with this?&#8221; The problem with static copyright blurbs created in HTML is that they become obsolete at the end of the year. The purpose of this post is to provide you with a simple dynamic alternative (using php) that will update automatically and keep your copyright blurbs up to date.</p>
<h3>Code Snippet</h3>
<p>To begin simply copy and paste the code below into the footer of your website.</p>
<p><em>Note: You&#8217;ll need to remove the space in the line &#8220;< ?php". My code format plugin is misbehaving.</em></p>
<pre class="brush: php">&lt;span&gt;
&amp;copy;
&lt; ?php
    ini_set(&#039;date.timezone&#039;, &#039;America/Chicago&#039;);
    $startYear = 2010;
    $thisYear = date(&#039;Y&#039;);
    if ($startYear == $thisYear) {
        echo $startYear;
    }
    else {
        echo &quot;{$startYear}-{$thisYear}&quot;;
    }
?&gt;
Website Design, Development and Search Engine Optimization (SEO) by
&lt;a href=&quot;http://www.yourdomain.com&quot; class=&quot;_blank&quot;&gt;Your Domain Name&lt;/a&gt;
&lt;/span&gt;</pre>
<h3>Customize the Code for Your Site</h3>
<p>To customize the code for your site there are a couple items you&#8217;ll need to change:</p>
<ol>
<li>First off you&#8217;ll need to change the value for the $startYear to the current year. For example: If you were building out a site in 2011 the line would read $startYear = 2011; (Be sure you include the ; mark at the end of the line or the script will break)</li>
<li>The next thing to change is the timezone. Using this link: (<a href="http://www.php.net/manual/en/timezones.america.php" target="_blank">Valid American Timezones</a>) find the appropriate timezone for your client. In the code example I provided above my client was located in Dallas, Texas so I used the timezone &#8216;America/Chicago&#8217;. (Chicago and Dallas are both on Central Time)</li>
</ol>
<p>The most important thing to change is the $startYear. Changing the timezone isn&#8217;t as important since all of our clients are located in North America anyhow. Worst case scenario the script will update the copyright date for the site a couple hours early or late (depending on where the client is located) come New Years.</p>
<h3>Your .htaccess File</h3>
<p><em>(Only necessary for static sites)</em></p>
<p>When a web page is accessed, the server checks the extension to know how to handle the page.  Generally speaking if it sees a .htm or .html file, it sends it right to the browser because it doesn&#8217;t have anything to process on the server.  If it sees a .php extension (or .shtml, or .asp, etc), it knows that it needs to execute the appropriate code before passing it along to the browser.</p>
<p>Because page for static sites end in .htm or .html we need to take one final step to be sure the php code is processed and the copyright date displayed as intended. In dreamweaver, or the text editor of your choice, create a new blank file. Paste the following line of code into the file you just created:</p>
<p><em>AddType application/x-httpd-php .html</em></p>
<p>Save this file with the name .htaccess</p>
<p><em>If for whatever reason a .htaccess file already exists then simply add this line of code at the tail end of the existing .htaccess file.</em></p>
<p>Note: This will create a hidden text file. You may need to adjust your settings for your operating system, text editor and FTP program in order to see the file once it is created. I&#8217;ve included some brief guides for Windows XP, Dreamweaver, &#038; Filezilla below:</p>
<h3>Hidden Files in Dreamweaver</h3>
<ol>
<li>On the &#8220;Files&#8221; tab (the tab where the files and folders are displayed for your site) there is a little button that looks like a bullet list.</li>
<li>Click this button and select the menu option View -> Show Hidden Files</li>
</ol>
<h3>Hidden Files in Windows Explorer (XP)</h3>
<ol>
<li>Select the menu option Tools -> Folder Options</li>
<li>When the Folder Options Window is displayed select the &#8220;View&#8221; tab.</li>
<li>Scroll through the Advanced Settings until you find the option to &#8220;Show Hidden Files and Folders&#8221; Check this and hit Apply.</li>
</ol>
<h3>Hidden Files in Filezilla</h3>
<ol>
<li>Select the menu option Server -> Force Showing Hidden Files</li>
</ol>
<p>Note: Be sure to upload the .htaccess file with the rest of your site and you should be good to go. If you have any problems implementing this please let me know by leaving a comment and I&#8217;ll be happy to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.copperbot.net/dynamic-copyright-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Web Design Gallery Updated</title>
		<link>http://www.copperbot.net/webdesign-gallery-updated/</link>
		<comments>http://www.copperbot.net/webdesign-gallery-updated/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 20:19:29 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[WebDesign]]></category>
		<category><![CDATA[page1solutions]]></category>

		<guid isPermaLink="false">http://www.copperbot.net/?p=274</guid>
		<description><![CDATA[It's March! Valentines, St. Patty's &#38; Ground Hog Day have all come and gone and this is my first update since early January. My hopes and dreams of updating the site more frequently have been officially dashed but I have been absent with good reason! Today I am happy to finally update my <a href="http://www.copperbot.net/work/web-design/">Web Design Gallery</a> with three new sites. Of these sites only one has officially "gone live" but the other two should be finished and online within the coming month. Please take a moment to view the fruits of my labor and let me know what you think. Feedback is always appreciated! Thank you kindly for stopping by!]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s March! Valentines, St. Patty&#8217;s &amp; Ground Hog Day have all come and gone and this is my first update since early January. My hopes and dreams of updating the site more frequently have been officially dashed but I have been absent with good reason! Today I am happy to finally update my <a href="http://www.copperbot.net/work/web-design/">Web Design Gallery</a> with three new sites. Of these sites only one has officially &#8220;gone live&#8221; but the other two should be finished and online within the coming month. Please take a moment to view the fruits of my labor and let me know what you think. Feedback is always appreciated! Thank you kindly for stopping by!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.copperbot.net/webdesign-gallery-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress: My New Best Friend</title>
		<link>http://www.copperbot.net/wordpress-my-new-best-friend/</link>
		<comments>http://www.copperbot.net/wordpress-my-new-best-friend/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 18:58:20 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[WebDesign]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=135</guid>
		<description><![CDATA[Hello everyone and welcome to the CopperBot blog! Over the last few days I've been diligently working on getting the site ready for public viewing. It's been a long road getting CopperBot Media designed, cut and integrated but we're nearly there and I'm getting pretty excited! A word to the wise, don't decide to re-brand and thus redesign your website in the midst of an international move. Yes, because I love having more things on my plate than I could ever possibly hope to accomplish I decided to tackle this project just about the time my wife Vanessa and I decided it was time to move back to the United States from New Zealand. Why New Zealand in the first place? Why the move back? Those are questions to be answered at another time. What I want to talk about today is Wordpress.]]></description>
			<content:encoded><![CDATA[<p>Hello everyone and welcome to the CopperBot blog! Over the last few days I&#8217;ve been diligently working on getting the site ready for public viewing. It&#8217;s been a long road getting CopperBot Media designed, cut and integrated but we&#8217;re nearly there and I&#8217;m getting pretty excited! A word to the wise, don&#8217;t decide to re-brand and thus redesign your website in the midst of an international move. Yes, because I love having more things on my plate than I could ever possibly hope to accomplish I decided to tackle this project just about the time my wife Vanessa and I decided it was time to move back to the United States from New Zealand. Why New Zealand in the first place? Why the move back? Those are questions to be answered at another time. What I want to talk about today is Wordpress.</p>
<p>Looking around the site you may notice a few <strong>powered by Wordpress</strong> blurbs here and there. While I&#8217;m not one to put all my eggs into one basket I gotta tell ya, I&#8217;m really digging this CMS so far. Back in New Zealand while I was working for <a href="http://www.hairylemon.co.nz" target="_blank">hairyLemon</a> (yes that is the actual company name) we used Joomla! for a lot of our client web sites and another lesser known (and lesser liked) CMS that I won&#8217;t bother to name here. All in all Joomla! is pretty awesome if you ask me. It may have taken a little getting used to when I first peered under the hood and I admit to having my fair share of frustrations with it but overall I give Joomla! a gold star. I&#8217;m still working with Joomla! now that I&#8217;m stateside again and plan to continue doing so for some time.</p>
<p>Wordpress however has been phenomenally easier to setup, integrate, and customize from the starting line. I love how simple the administration area is compared to Joomla! and how easy it has been for me to find help online anytime I&#8217;ve had one of those &#8220;I wonder how you do that&#8221; moments. Now I&#8217;m not about to start a debate on Joomla! vs Wordpress here. As I said above, I&#8217;m still a Joomla! fan. I merely think for this specific site, and for some of the sites I plan on building in the coming months Wordpress will ultimately be a better fit. With time I&#8217;m sure both content management systems with find their respectable places in my heart as well as my project list. Until then, welcome to CopperBot Media. I&#8217;m extremely pleased that you&#8217;ve decided to join me for this creative ride! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.copperbot.net/wordpress-my-new-best-friend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

