<?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>CaptainCodeMonkey.com - All Your Booty Are Belong To Us! &#187; Web Design</title>
	<atom:link href="http://www.captaincodemonkey.com/blog/category/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.captaincodemonkey.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 01 May 2010 22:43:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PHP Code Get Most Recent WordPress Post</title>
		<link>http://www.captaincodemonkey.com/blog/2010/01/24/php-code-get-most-recent-wordpress-post/</link>
		<comments>http://www.captaincodemonkey.com/blog/2010/01/24/php-code-get-most-recent-wordpress-post/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 03:25:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[Programming - General]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.captaincodemonkey.com/blog/?p=420</guid>
		<description><![CDATA[PHP Code Get Most Recent WordPress Post﻿ This is a quick example using only vanilla PHP.  There are more dynamic ways to do this using RSS classes built into PHP addons, which I won&#8217;t go into detail here.  Instead, we will just use vanilla PHP, and parse the XML by hand. On to the code, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>PHP Code Get Most Recent WordPress Post﻿</strong></p>
<p>This is a quick example using only vanilla PHP.  There are more dynamic ways to do this using RSS classes built into PHP addons, which I won&#8217;t go into detail here.  Instead, we will just use vanilla PHP, and parse the XML by hand.</p>
<p>On to the code, I take 3 arguments here, number of posts to return, the RSS URL, and an optional max number of characters to return.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p420code3'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4203"><td class="code" id="p420code3"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//get most recent rss</span>
<span style="color: #666666; font-style: italic;">//get most recent rss</span>
<span style="color: #000000; font-weight: bold;">function</span> recent_rss<span style="color: #009900;">&#40;</span><span style="color: #000088;">$display</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #000088;">$url</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$description_limit</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$itemArr</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$doc</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DOMDocument<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'item'</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$node</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$display</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000088;">$description</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$node</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">item</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nodeValue</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">//if limit passed in, truncate string</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$description_limit</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$description</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$description</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$description_limit</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;...&quot;</span><span style="color: #339933;">;</span> 	
	<span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #000088;">$itemRSS</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span>
            <span style="color: #0000ff;">'title'</span>       <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$node</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">item</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nodeValue</span><span style="color: #339933;">,</span>
            <span style="color: #0000ff;">'description'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$description</span><span style="color: #339933;">,</span>
            <span style="color: #0000ff;">'link'</span>        <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$node</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'link'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">item</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nodeValue</span><span style="color: #339933;">,</span>
            <span style="color: #0000ff;">'pubdate'</span>     <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$node</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pubDate'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">item</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nodeValue</span>
        <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
         <a href="http://www.php.net/array_push"><span style="color: #990000;">array_push</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$itemArr</span><span style="color: #339933;">,</span> <span style="color: #000088;">$itemRSS</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000088;">$display</span><span style="color: #339933;">--;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$itemArr</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//example use</span>
<span style="color: #000088;">$recent_post</span> <span style="color: #339933;">=</span> recent_rss<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://houseplansblog.nelsondesigngroup.com/index.php/feed/'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/var_dump"><span style="color: #990000;">var_dump</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$recent_post</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Now, Here is a quick and dirty XHTML example showing how you might implement this on a page. (Note the use of the preg_replace to get rid of weird characters that get into the RSS sometimes)</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p420code4'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4204"><td class="code" id="p420code4"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;rss_container&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;width:250px;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;rss_title&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">'&lt;?php echo $recent_post[0][&quot;link&quot;]; ?&gt;'</span><span style="color: #339933;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span>  <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/[^(\x20-\x7F)]*/'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$recent_post</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;title&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
		<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;rss_pub_date&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$recent_post</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;pubdate&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;rss_description&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$recent_post</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;description&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.captaincodemonkey.com/blog/2010/01/24/php-code-get-most-recent-wordpress-post/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New fluid, near image-less WordPress theme for CCM</title>
		<link>http://www.captaincodemonkey.com/blog/2009/11/11/new-fluid-near-image-less-wordpress-theme-for-ccm/</link>
		<comments>http://www.captaincodemonkey.com/blog/2009/11/11/new-fluid-near-image-less-wordpress-theme-for-ccm/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 04:34:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[ccm]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[wodpress theme]]></category>

		<guid isPermaLink="false">http://www.captaincodemonkey.com/blog/?p=280</guid>
		<description><![CDATA[First Draft I thought it would be neat to explain my thought process and show my progress as I went through creating the new CCM theme. I knew I wanted to make the theme have a console feel to it, but still be modern.  I am NOT a designer, but I tried ;(.Things I knew [...]]]></description>
			<content:encoded><![CDATA[<div style="margin-bottom:20px;"><strong>First Draft</strong><br />
I thought it would be neat to explain my thought process and show my progress as I went through creating the new CCM theme. I knew I wanted to make the theme have a console feel to it, but still be modern.  I am NOT a designer, but I tried ;(.Things I knew from the start, I wanted to use ASCII art, I wanted MINIMAL graphics, and I wanted a fluid layout.</div>
<div style="margin-bottom:20px;"><strong>Second Draft</strong><br />
Sample data is in, I have a twitter feed pulled in the top, and I am getting the CSS set in place to be able to modify all the links and hx tags.</div>
<div style="margin-bottom:20px;"><strong>Third Draft</strong><br />
I felt like the solid green color was too.. well.. too terminal.  Too much green.. I wanted to have a little bit of color.  I tried an orange&#8230;</div>
<div style="margin-bottom:20px;"><strong>Fourth Draft</strong><br />
I tried more colors.. I just threw everything I had on there and went to ask @steventrotter what insight he could give me into choosing some colors that worked with what I wanted.</div>
<div style="margin-bottom:20px;"><strong>Fifth Draft</strong><br />
This is where I got my first thought of layering a low 5-10% transparent color on top of the 70-80% transparent black that I was using.. You can see this on the comments background.  Still have a long way to go here&#8230;.</div>
<div style="margin-bottom:20px;"><strong>Sixth Draft</strong><br />
I was beginning to mellow out the colors a little more&#8230;. I felt like this is where I started to move in the right direction.. but I just wasn&#8217;t quite there yet.</div>
<div style="margin-bottom:20px;"><strong>Final Draft</strong><br />
This was where I really felt like I took the colors in the right direction, and I also used the layered transparent PNG files to their fullest here.</div>
<div style="margin-bottom:20px;"><strong>Beta</strong><br />
Added the footer in, cleaned up the markup, added a few links here and there&#8230; tested live on the blog and fixed a few things.  I really like the look at this point and am happy enough with it to replace the old theme.</div>
<div style="margin-bottom:20px;"><strong>Beyond Beta</strong><br />
This turned out great so far.. it is really fluid.. scales out really well, it only has one real image (the background) and 5 or so 10x10px transparent png files. It loads quickly, it looks good for something a programmer made, more importantly it was what I WANTED it to be.</div>
<div style="clear:left;">I need to look at adding a few extras in, blockquotes, and changing up some of the hx tags.  I also see it breaks when you make it too small.. though it does scale out really well.</div>
<table width:100%;">
<tr>
<td>
<a href="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/earlyproto.jpg"><img class="size-thumbnail wp-image-279 alignnone" style="border: 0px none; padding-right: 10px;" title="earlyproto" src="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/earlyproto-150x150.jpg" alt="earlyproto" width="150" height="150" /></a><br />
First Draft
</td>
<td>
<a href="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/theme.jpg"><img class="size-medium wp-image-282 alignnone" style="border: 0px none; padding-right: 10px;" title="theme" src="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/theme-300x240.jpg" alt="theme" width="150" height="150" /></a><br />
Second Draft
</td>
<td>
<a href="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/themeo.jpg"><img class="alignnone size-thumbnail wp-image-294" title="themeo" src="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/themeo-150x150.jpg" alt="themeo" width="150" height="150" /></a><br />
Third Draft
</td>
</tr>
<tr>
<td>
<a href="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/mixed.jpg"><img class="alignnone size-thumbnail wp-image-296" title="mixed" src="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/mixed-150x150.jpg" alt="mixed" width="150" height="150" /></a><br />
Fourth Draft
</td>
<td>
<a href="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/proof1.jpg"><img class="alignnone size-thumbnail wp-image-293" title="proof1" src="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/proof1-150x150.jpg" alt="proof1" width="150" height="150" /></a><br />
Fifth Draft
</td>
<td>
<a href="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/proof2.jpg"><img class="alignnone size-thumbnail wp-image-297" title="proof2" src="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/proof2-150x150.jpg" alt="proof2" width="150" height="150" /></a><br />
Final Draft
</td>
<td>
<a href="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/proof3.jpg"><img class="alignnone size-thumbnail wp-image-298" title="proof3" src="http://www.captaincodemonkey.com/blog/wp-content/uploads/2009/11/proof3-150x150.jpg" alt="proof3" width="150" height="150" /></a><br />
RC1</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.captaincodemonkey.com/blog/2009/11/11/new-fluid-near-image-less-wordpress-theme-for-ccm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ie6 non-secured elements on thickbox modal window</title>
		<link>http://www.captaincodemonkey.com/blog/2009/08/13/ie6-non-secured-elements-on-thickbox-modal-window/</link>
		<comments>http://www.captaincodemonkey.com/blog/2009/08/13/ie6-non-secured-elements-on-thickbox-modal-window/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 01:58:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[thickbox]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.captaincodemonkey.com/blog/?p=249</guid>
		<description><![CDATA[I recently had a chance to use thickbox, and I have to say it did exactly what I need to do: created a modal window with jquery and make a simple ajax call.  I spent quite a bit of time trying to track down why ie6 was giving a security warning when pulling in ajax [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had a chance to use <a href="http://jquery.com/demo/thickbox/">thickbox</a>, and I have to say it did exactly what I need to do: created a modal window with jquery and make a simple ajax call.  I spent quite a bit of time trying to track down why ie6 was giving a security warning when pulling in ajax content.  I had all the links relative.</p>
<p>I decided to give <a title="Fiddler, debug tool" href="http://www.fiddler2.com/fiddler2/">fiddler</a> a try, and as I thought, I was not making a single non-https request. Everything was on 443.</p>
<p>After testing and retesting and checking code, I finally got the right google query in and came to this lovely page:</p>
<p><a href="https://issues.apache.org/jira/browse/WICKET-855">https://issues.apache.org/jira/browse/WICKET-855</a></p>
<p>The really important part of the whole page was this little section:</p>
<blockquote><p>Internet Explorer shows this warning because ModalWindow uses an &lt;iframe&gt; tag without an &#8216;src=&#8217; attribute.</p></blockquote>
<p>So, I went out to the thickbox javascript code, and did a search for &lt;iframe&#8230; sure enough, on line 36, there was an iframe tag without a src attribute.  I stuck src=&#8217;://0&#8242; and voila no more security warning in ie6!!!</p>
<p>This was such a hassle that I hope anyone else looking around for this problem finds this page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.captaincodemonkey.com/blog/2009/08/13/ie6-non-secured-elements-on-thickbox-modal-window/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>mod_rewrite to move one domain to another</title>
		<link>http://www.captaincodemonkey.com/blog/2009/08/10/mod_rewrite-to-move-one-domain-to-another/</link>
		<comments>http://www.captaincodemonkey.com/blog/2009/08/10/mod_rewrite-to-move-one-domain-to-another/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 00:07:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://www.captaincodemonkey.com/blog/?p=231</guid>
		<description><![CDATA[There may come a day when you need to move one domain&#8217;s content to another. This can easily be done with a little mod rewrite trickery in apache. Note the ^/ on the RewriteRule line, I have that because my server automatically adds the trailing slash, and if I don&#8217;t put this it will add [...]]]></description>
			<content:encoded><![CDATA[<p>There may come a day when you need to move one domain&#8217;s content to another.  This can easily be done with a little mod rewrite trickery in apache.</p>
<p>Note the ^/ on the RewriteRule line, I have that because my server automatically adds the trailing slash, and if I don&#8217;t put this it will add two slashes on the rewrite.  This just says, take everything after the first slash.  If your server dosen&#8217;t do this, then you can omit the /  and make it like: RewriteRule ^(.*).</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p231code6'); return false;">View Code</a> LANGUAGE</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2316"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p231code6"><pre class="language" style="font-family:monospace;">RewriteEngine On
RewriteRule ^/(.*)$ http://www.newdomain.com/$1 [R=301]</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.captaincodemonkey.com/blog/2009/08/10/mod_rewrite-to-move-one-domain-to-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mod_Rewrite Canonicalization Avoids Duplicate Content</title>
		<link>http://www.captaincodemonkey.com/blog/2009/08/09/mod_rewrite-canonicalization/</link>
		<comments>http://www.captaincodemonkey.com/blog/2009/08/09/mod_rewrite-canonicalization/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 23:42:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://www.captaincodemonkey.com/blog/?p=217</guid>
		<description><![CDATA[Apache&#8217;s mod_rewrite has been the bane of many. I think it is mostly the use of regular expressions that is the bane of many instead, but you get the idea. I want you to take a look at the following URLS: domain.com domain.com/ www.domain.com/ www.domain.com domain.com/index.html www.domain.com/index.html Do they all look the same to you? [...]]]></description>
			<content:encoded><![CDATA[<p>Apache&#8217;s mod_rewrite has been the bane of many.  I think it is mostly the use of regular expressions that is the bane of many instead, but you get the idea.</p>
<p>I want you to take a look at the following URLS:</p>
<p>domain.com<br />
domain.com/<br />
www.domain.com/<br />
www.domain.com<br />
domain.com/index.html<br />
www.domain.com/index.html</p>
<p>Do they all look the same to you? Well they are not the same to big G.  In fact, big G may just decide that you have duplicate content because it can see content on domain.com and domain.com/.</p>
<p>Now I don&#8217;t want to get into the dub dub dub vs non dub dub dub (also titled <a href="http://www.codinghorror.com/blog/archives/001109.html">The Great Dub Dub Dub Debate</a> by Jeff Atwood).</p>
<p>But what I will tell you is to pick one, and stick to it.</p>
<p>I found a great set of examples and want to pass them along, I have the basic gist of everything listed below, if this link ever goes down, but It is also worth reading the rest of the info on the page as well.</p>
<p>You can find the examples <a href="http://groups.google.com/group/only-validation/web/fix-canonical-issues-www-vs-non-www-and-more-on-apache-server?pli=1">here</a>:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p217code8'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2178"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
</pre></td><td class="code" id="p217code8"><pre class="html" style="font-family:monospace;">Options +FollowSymlinks
RewriteEngine on
RewriteBase /
&nbsp;
### re-direct index.html to root / ###
RewriteCond %{THE_REQUEST} ^.*\/index\.html\ HTTP/
RewriteRule ^(.*)index\.html$ /$1 [R=301,L]
&nbsp;
### re-direct index.htm to root / ###
RewriteCond %{THE_REQUEST} ^.*\/index\.htm\ HTTP/
RewriteRule ^(.*)index\.htm$ /$1 [R=301,L]
&nbsp;
### re-direct index.php to root / ###
RewriteCond %{THE_REQUEST} ^.*\/index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]
&nbsp;
### re-direct default.html to root / ###
RewriteCond %{THE_REQUEST} ^.*\/default\.html\ HTTP/
RewriteRule ^(.*)default\.html$ /$1 [R=301,L]
&nbsp;
### re-direct home.html to root / ###
RewriteCond %{THE_REQUEST} ^.*\/home\.html\ HTTP/
RewriteRule ^(.*)home\.html$ /$1 [R=301,L]
&nbsp;
### re-direct IP address to www
&nbsp;
### re-direct non-www to www
&nbsp;
### re-direct any parked domain to www of main domain
RewriteCond %{http_host} !^www.example.com$ [nc]
RewriteRule ^(.*)$ http://www.example.com/$1 [r=301,nc,L]
####
&nbsp;
############################ from here ########################################
&nbsp;
###### This group will not be needed by most websites - try without it first
### add a missing trailing slash to end of domain name or folder name
### ONLY in case the server does not compensate for it
### ONLY use it if needed - othewise remove this block of directives.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://www.example.com/$1/ [L,R=301]
&nbsp;
############################# to here ##########################################</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.captaincodemonkey.com/blog/2009/08/09/mod_rewrite-canonicalization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
