<?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>Curtis Blackwell &#187; Tutorials</title>
	<atom:link href="http://curtisblackwell.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://curtisblackwell.com</link>
	<description>Curtis Blackwell&#039;s portfolio of web &#38; graphic design, accompanied by a design blog..</description>
	<lastBuildDate>Mon, 22 Mar 2010 21:43:18 +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>How to Clear Your Old Database Tables</title>
		<link>http://curtisblackwell.com/how-to-clear-your-old-database-tables/</link>
		<comments>http://curtisblackwell.com/how-to-clear-your-old-database-tables/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 06:37:06 +0000</pubDate>
		<dc:creator>Curtis</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://curtisblackwell.com/?p=444</guid>
		<description><![CDATA[Oh noz!

To someone who hasn&#8217;t dealt with this problem before, this issue probably seems pretty intimidating (at least I think it did to me when I first got it). However, this is most likely a simple fix.

Arriving at the Problem
First, let&#8217;s talk about how I came about this problem today so you can avoid it [...]]]></description>
			<content:encoded><![CDATA[<h3>Oh noz!</h3>
<p><img src="http://curtisblackwell.com/ajhngvbng/wp-content/uploads/2010/02/already-installed.png" alt="" title="already-installed" width="653" height="199" class="aligncenter size-full wp-image-445" /></p>
<p>To someone who hasn&#8217;t dealt with this problem before, this issue probably seems pretty intimidating (at least I think it did to me when I first got it). However, this is most likely a simple fix.</p>
<p><span id="more-444"></span></p>
<h3>Arriving at the Problem</h3>
<p>First, let&#8217;s talk about how I came about this problem today so you can avoid it in the future.</p>
<p>To speed things up, I like to keep a copy of the most recent version of WordPress on my computer with a few modifications. One thing I modify is the wp-config.php file; here are some of the changes:</p>
<pre class="php">
<code>
<span class="comment">/** MY CHANGES **/

// creates fewer database queries, thus improving performance</span>
<span class="php-function">define</span>(<span class="php-string">'WP_HOME'</span>, <span class="php-string">'http://URL.com'</span>);
<span class="php-function">define</span>(<span class="php-string">'WP_SITEURL'</span>, <span class="php-string">'http://URL.com'</span>);
</code>
</pre>
<p>This will screw things up if I don&#8217;t replace <code><span class="php-string">'http://URL.com'</span></code> with the correct URL. More specifically, I get the &#8220;clear your old database tables first&#8221; message from WordPress. This is what happened today when I transferred a theme from my server to a client&#8217;s.</p>
<h3>The Solution</h3>
<p><span class="html-comment">&lt;!&#45;&#45; EDIT &#45;&#45;&gt;</span><br />
<a href="#comment-135">Quickest and easiest way</a> in the comments. I haven&#8217;t tested it yet, but I know and trust the source.</p>
<ol>
<li>
<p>Log in to phpMyAdmin (or other database management tool).</p>
<p><small>You should be able to find phpMyAdmin in the control panel of your hosting account.</p>
<p>With <a href="http://www.lunarpages.com/id/curtisblackwellcom" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.lunarpages.com/id/curtisblackwellcom?referer=');">lunarpages</a>, you need to click on MySQL Databases and scroll to the very bottom and click the phpMyAdmin link.</p>
<p>With AT&#038;T, you get to the control panel by adding /ControlPanel/ to the end of your URL.</p>
<ol>
<li>Once you log in, click on databases in the left column.</li>
<li>If you haven&#8217;t already enabled MySQL, click MySQL under databases,</li>
<li>create a password,</li>
<li>and click the enable button on the right.</li>
<li>Right beneath MySQL, click phpMyAdmin</li>
<li>and enable it by clicking the button on the right.</li>
<li>Then click the link that reads &#8220;Administer MySQL with phpMyAdmin.&#8221; Log in and you&#8217;ll be in phpMyAdmin.</li>
</ol>
<p></small><br />
<img src="http://curtisblackwell.com/ajhngvbng/wp-content/uploads/2010/02/att-MySQL.png" alt="" title="at&amp;t-MySQL" width="653" height="129" class="size-full wp-image-464" /><br />
<img src="http://curtisblackwell.com/ajhngvbng/wp-content/uploads/2010/02/att-phpMyAdmin.png" alt="" title="at&amp;t-phpMyAdmin" width="653" height="129" class="size-full wp-image-465" /></p>
<p><small>I haven&#8217;t had to do this with any other hosts so if you need help, contact your host, leave a comment, or send me an email and I&#8217;ll do my best to help you figure it out.</small></p>
</li>
<li>After logging in, you should be on a page that has a sidebar on the left with a list of all your databases. Click on the name of the database from which you need to clear tables.</li>
<p><img src="http://curtisblackwell.com/ajhngvbng/wp-content/uploads/2010/02/sidebar.png" alt="" title="sidebar" width="100" height="187" class="aligncenter wp-image-473" /></p>
<p><span class="html-comment">&lt;!&#45;&#45; I&#8217;m pretty sure this next step is irreversible, so make sure you&#8217;re on the right database &#45;&#45;&gt;</span></p>
<li>Now you just need to select all the tables that begin with the &#8220;wp_&#8221; prefix and choose &#8220;Drop&#8221; from the drop-down menu.</li>
<li>Make sure your wp-config.php file has all the correct information in it, and go to http://example.com/wp-admin/install.php/.</li>
</ol>
<p>You should be good to go now. If you&#8217;re still having trouble, leave a comment and I&#8217;ll see what I can do. Also, if you have anything to add, feel free to do so in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://curtisblackwell.com/how-to-clear-your-old-database-tables/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Finding the Page ID Numbers in WordPress</title>
		<link>http://curtisblackwell.com/finding-the-page-id-numbers-in-wordpress/</link>
		<comments>http://curtisblackwell.com/finding-the-page-id-numbers-in-wordpress/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 23:21:02 +0000</pubDate>
		<dc:creator>Curtis</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[exclude pages]]></category>
		<category><![CDATA[page id]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress theme development]]></category>
		<category><![CDATA[wp list pages]]></category>
		<category><![CDATA[wp_list_pages]]></category>

		<guid isPermaLink="false">http://curtisblackwell.com/?p=269</guid>
		<description><![CDATA[When developing a WordPress theme, it&#8217;s helpful to know a specific page&#8217;s ID number at times.
For instance, I&#8217;m working on a site now where I want to display some pages in the sidebar, but not all, so I use the template tag &#8220;wp list pages&#8221; and the parameter &#8220;exclude.&#8221; 
Here&#8217;s how the code looks:
&#60;?php wp_list_pages(&#8216;title_li=&#038;exclude=PAGE_ID&#8217;); [...]]]></description>
			<content:encoded><![CDATA[<p>When developing a WordPress theme, it&#8217;s helpful to know a specific page&#8217;s ID number at times.</p>
<p>For instance, I&#8217;m working on a site now where I want to display some pages in the sidebar, but not all, so I use the template tag &#8220;wp list pages&#8221; and the parameter &#8220;exclude.&#8221; </p>
<p>Here&#8217;s how the code looks:<br />
<code><span class="php-delimiter">&lt;?php</span> <span class="php-function-call">wp_list_pages</span>(<span class="php-string">&lsquo;title_li=&#038;exclude=PAGE_ID&rsquo;</span>);<span class="php-delimiter"> ?&gt;</span></code></p>
<p>Problem is, I don&#8217;t know the page IDs and it&#8217;s not listed anywhere in Pages > Edit. However if you choose a specific page to edit, the URL in the navigation bar will end in &#8220;post=PAGE_ID&#8221;.</p>
<p>If you need multiple page IDs, go to Pages > Edit. The URL that titles point to ends in the page ID. In Firefox you can just hover over the link and look in the status bar at the bottom of the screen.</p>
<p>My code ended up looking like this:<br />
<code><span class="php-delimiter">&lt;?php</span> <span class="php-function-call">wp_list_pages</span>(<span class="php-string">&lsquo;title_li=&#038;exclude=2, 308, 310, 312&rsquo;</span>);<span class="php-delimiter"> ?&gt;</span></code></p>
]]></content:encoded>
			<wfw:commentRss>http://curtisblackwell.com/finding-the-page-id-numbers-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Local Copy of Your WordPress Site Using MAMP</title>
		<link>http://curtisblackwell.com/creating-a-local-copy-of-your-wordpress-site-using-mamp/</link>
		<comments>http://curtisblackwell.com/creating-a-local-copy-of-your-wordpress-site-using-mamp/#comments</comments>
		<pubDate>Wed, 20 May 2009 18:38:50 +0000</pubDate>
		<dc:creator>Curtis</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://curtisblackwell.com/?p=147</guid>
		<description><![CDATA[I presented my portfolio on May 11th using a local copy in case there were any problems connecting to the internet and because our campus network is slooooooooow.
I found a few tutorials on how to create a local copy of an existing WordPress installation, but they were all very slightly off for someone using MAMP. [...]]]></description>
			<content:encoded><![CDATA[<p>I presented my portfolio on May 11<sup>th</sup> using a local copy in case there were any problems connecting to the internet and because our campus network is slooooooooow.</p>
<p>I found a few tutorials on how to create a local copy of an existing WordPress installation, but they were all <em>very slightly</em> off for someone using <acronym title="Macintosh, Apache, Mysql and PHP">MAMP</acronym>. I first got MAMP when I was learning how to install WordPress locally and since it works great, I didn&#8217;t want to install another local server environment.</p>
<p><span id="more-147"></span></p>
<p>Anyway, on to the instructions:</p>
<h3 class="alt">Exporting Your WordPress Database</h3>
<ol>
<li>Log in to phpMyAdmin through your host (usually in the cPanel). I use <a href="http://www.lunarpages.com/id/curtisblackwellcom" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.lunarpages.com/id/curtisblackwellcom?referer=');">lunarpages</a> so I&#8217;ll tell you how to get there on their site:<br />
<span class="html-comment">&lt;!&ndash;&ndash; <a href="http://iamdavidhubler.com/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/iamdavidhubler.com/?referer=');">Dave Hubler</a> kindly left a <a href="#comment-113">comment</a> on a slight difference for those using limedomains as their host. Thanks, broseph. &ndash;&ndash;&gt;</span></p>
<ol>
<li>Log in by clicking the link in the header.</li>
<li>Make sure you have the right hosting account selected in the drop-down menu and click Control Panel. If you have more than one hosting account, you&#8217;ll have to click the &#8220;Go to cPanel&#8221; button.</li>
<li>Click on MySQL Databases among all the icons and scroll all the way to the bottom and click on the &#8220;phpMyAdmin&#8221; link.</li>
</ol>
</li>
<li>Select the WordPress database from the sidebar on the left. Remember this database name for a future step.</li>
<p><img src="http://curtisblackwell.com/ajhngvbng/wp-content/uploads/2009/05/sidebar.png" alt="sidebar" title="sidebar" width="382" height="212" class="alignleft size-full wp-image-228" /></p>
<div class="clear"></div>
<li>Click the Export tab at the top, make sure everything is selected in the box on the left, the SQL radio button is selected, and the Data checkbox to the right is checked. Select the Save as file checkbox and click Go.</li>
<p><img src="http://curtisblackwell.com/ajhngvbng/wp-content/uploads/2009/05/export.png" alt="export" title="export" width="382" height="38" class="alignleft size-full wp-image-216" />
</ol>
<div class="clear"></div>
<h3 class="alt">Importing Your WP Database into Your Local Copy</h3>
<ol>
<li>Download, install, and open <a href="http://www.mamp.info/en/mamp/index.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.mamp.info/en/mamp/index.html?referer=');">MAMP</a> if you haven&#8217;t already.</li>
<li>Using your <acronym title="File Transfer Protocol">FTP</acronym> client, copy your site&#8217;s root folder to /Applications/MAMP/htdocs/</li>
<li>Go to the MAMP Start Page and click on phpMyAdmin.<br />
<span class="html-comment">&lt;!&#45;&#45; NOTE &#45;&#45;&gt;</span><br />
<em>If for some reason MAMP didn&#8217;t start the servers and open the start page upon launch, do so now by clicking the buttons in the <acronym title="User Interface">UI</acronym>.</em>
	</li>
<li>On the phpMyAdmin homepage there is an option to create a new database. Enter the database name from step 2 in <span class="blue">Exporting Your WordPress Database</span> and click Create.</li>
<li>Click on the new database in the sidebar on the left then choose the Import tab at the top.</li>
<p><img src="http://curtisblackwell.com/ajhngvbng/wp-content/uploads/2009/05/import.png" alt="import" title="import" width="382" height="38" class="alignleft size-full wp-image-220" /></p>
<div class="clear"></div>
<li>Click Browse and select the database file you downloaded earlier. Click Go in the bottom left.</li>
</ol>
<h3 class="alt">Setting Up Your Username and Password for Your Local Database</h3>
<ol>
<li>Go to the homepage of your local phpMyAdmin and choose Privileges from the MySQL column on the left.</li>
<li>Click Add a new User under the list of existing users.</li>
<li>Enter your username and password from the remote database.<br />
<span class="html-comment">&lt;!&#45;&#45; NOTE &#45;&#45;&gt;</span><br />
<em>If you don&#8217;t remember your username and password, open your wp-config file and get the info there.</em></li>
<li>For Host, choose Local if the host in your wp-config file is localhost. Otherwise, choose Any.</li>
<li>Click Check All under Global privileges and click Go.</li>
</ol>
<h3 class="alt">Setting the Proper URL</h3>
<ol>
<li>Go to the homepage of your local phpMyAdmin and choose your database from the column on the left.</li>
<li>Select Browse next to the table wp_options.</li>
<p><img src="http://curtisblackwell.com/ajhngvbng/wp-content/uploads/2009/05/wp_options.png" alt="wp_options" title="wp_options" width="382" height="23" class="alignleft size-full wp-image-218" /></p>
<div class="clear"></div>
<li>Find the option_name siteurl and click the corresponding edit link. Change the option_value to http://localhost:8888/root_folder_name and click Go.<br />
<span class="html-comment">&lt;!&#45;&#45; NOTE &#45;&#45;&gt;</span><br />
<em>If using something other than MAMP, you&#8217;ll probably have to type http://localhost/root_folder_name</em></li>
<p><img src="http://curtisblackwell.com/ajhngvbng/wp-content/uploads/2009/05/edit.png" alt="edit" title="edit" width="382" height="39" class="alignleft size-full wp-image-222" /></p>
<div class="clear"></div>
<li>Find the option_name home and set the option_value to the same as you did for siteurl.</li>
</ol>
<p>That should be it!</p>
<p>Make sure MAMP is running and check http://localhost:8888/root_folder_name (or http://localhost/root_folder_name) to see your local site.</p>
]]></content:encoded>
			<wfw:commentRss>http://curtisblackwell.com/creating-a-local-copy-of-your-wordpress-site-using-mamp/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Properly Using Multiple jQuery Functions</title>
		<link>http://curtisblackwell.com/properly-using-multiple-jquery-functions/</link>
		<comments>http://curtisblackwell.com/properly-using-multiple-jquery-functions/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 15:21:30 +0000</pubDate>
		<dc:creator>Curtis</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[portfolio]]></category>

		<guid isPermaLink="false">http://curtisblackwell.com/?p=51</guid>
		<description><![CDATA[Each time I design/develop a new website, I try to learn at least one new thing.
I&#8217;m using LightWindow to display some of my work in my portfolio. LightWindow uses JavaScript, as does the method I used to display my latest tweet. I don&#8217;t really understand why, but whichever of the .js files was linked to [...]]]></description>
			<content:encoded><![CDATA[<p>Each time I design/develop a new website, I try to learn at least one new thing.</p>
<p>I&#8217;m using <a href="http://www.stickmanlabs.com/lightwindow/" onclick="pageTracker._trackPageview('/outgoing/www.stickmanlabs.com/lightwindow/?referer=');">LightWindow</a> to display some of my work in my portfolio. LightWindow uses JavaScript, as does the method I used to display my latest tweet. I don&#8217;t really understand why, but whichever of the .js files was linked to last was the only one that would work. Speaking with my friend <a href="http://joel.thegoodmanblog.com/" onclick="pageTracker._trackPageview('/outgoing/joel.thegoodmanblog.com/?referer=');">Joel</a> led me to the <a href="http://docs.jquery.com/Core/jQuery.noConflict" onclick="pageTracker._trackPageview('/outgoing/docs.jquery.com/Core/jQuery.noConflict?referer=');">solution</a>.</p>
<p>I had to run the function <code>jQuery.<span class="js-function-call">noConflict</span>()</code> and replace each <code>$</code> with <code>jQuery</code>. It&#8217;s explained in more detail on the <a href="http://docs.jquery.com/Core/jQuery.noConflict" onclick="pageTracker._trackPageview('/outgoing/docs.jquery.com/Core/jQuery.noConflict?referer=');">jQuery site</a>, so if you&#8217;re still having trouble, I suggest looking there.</p>
<p><span id="more-51"></span></p>
<p>Here&#8217;s how my code looks now:</p>
<pre class="javascript"><code>
<span class="html-tag">&lt;script </span><span class="html-attribute">src=</span><span class="html-string">"http://curtisblackwell.com/js/jquery-1.3.2.js"</span> <span class="html-attribute">type=</span><span class="html-string">"text/javascript"</span><span class="html-tag">&gt;&lt;/script&gt;</span>

<span class="html-tag">&lt;script </span><span class="html-attribute">type=</span><span class="html-string">"text/javascript"</span><span class="html-tag">&gt;</span>

	jQuery.<span class="js-function-call">noConflict</span>();
		<span class="js-function-call">jQuery</span>(<span class="js-keyword">function</span>(){
			jQuery.<span class="js-function-call">getJSON</span>(<span class="js-string">'http://twitter.com/status/user_timeline/curtisblackwell.json?count=1&#038;callback=?'</span>, <span class="js-keyword">function</span>(data){
				jQuery.<span class="js-function-call">each</span>(data, <span class="js-keyword">function</span>(index, item){
					<span class="js-function-call">jQuery</span>(<span class="js-string">'#tweetscreen'</span>).<span class="js-function-call">append</span>(<span class="js-string">'&lt;div id="tweetz"&gt;&lt;p id="last-tweet"&gt;'</span> + item.text + <span class="js-string">'&lt;span id="blink"&gt;'</span> + <span class="js-string">'|'</span> + <span class="js-string">'&lt;/span&gt;'</span> + <span class="js-string">'&lt;/p&gt;&lt;/div&gt;'</span>);
				});
			});
		});

<span class="html-tag">&lt;/script&gt;</span>

<span class="html-tag">&lt;script </span><span class="html-attribute">type=</span><span class="html-string">"text/javascript"</span> <span class="html-attribute">src=</span><span class="html-string">"/lightwindow/javascript/prototype.js"</span><span class="html-tag">&gt;</span><span class="html-tag">&lt;/script&gt;</span>
<span class="html-tag">&lt;script </span><span class="html-attribute">type=</span><span class="html-string">"text/javascript"</span> <span class="html-attribute">src=</span><span class="html-string">"/lightwindow/javascript/scriptaculous.js?load=effects"</span><span class="html-tag">&gt;</span><span class="html-tag">&lt;/script&gt;</span>
<span class="html-tag">&lt;script </span><span class="html-attribute">type=</span><span class="html-string">"text/javascript"</span> <span class="html-attribute">src=</span><span class="html-string">"/lightwindow/javascript/lightwindow.js"</span><span class="html-tag">&gt;</span><span class="html-tag">&lt;/script&gt;</span>
<span class="html-tag">&lt;link </span><span class="html-attribute">rel=</span><span class="html-string">"stylesheet"</span> <span class="html-attribute">href=</span><span class="html-string">"/lightwindow/css/lightwindow.css"</span> <span class="html-attribute">type=</span><span class="html-string">"text/css"</span> <span class="html-attribute">media=</span><span class="html-string">"screen"</span> <span class="html-tag">/&gt;</span>
</code></pre>
<p><span class="html-comment">&lt;!&#45;&#45; EDIT &#45;&#45;&gt;</span><br />
I have since linked to a javascript file so that my page validates, but the code is the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://curtisblackwell.com/properly-using-multiple-jquery-functions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
