<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>OwenKelly.net &#187; templates</title>
	<atom:link href="http://www.owenkelly.net/tag/templates/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.owenkelly.net</link>
	<description>culture, synthetics and the web</description>
	<lastBuildDate>Wed, 08 Sep 2010 11:28:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Comments that pop up!</title>
		<link>http://www.owenkelly.net/516/comments-that-pop-up/</link>
		<comments>http://www.owenkelly.net/516/comments-that-pop-up/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 11:34:30 +0000</pubDate>
		<dc:creator>Owen</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.owenkelly.net/2007/12/20/comments-that-pop-up/</guid>
		<description><![CDATA[I spent two or three hours this morning turning my comments into pop-ups. This is not the first time I have tried. It is the first time that I have succeeded.


Related posts:<ol><li><a href='http://www.owenkelly.net/357/clean-archives/' rel='bookmark' title='Permanent Link: Clean Archives'>Clean Archives</a> <small>A couple of weeks ago, in one of my periodic...</small></li>
<li><a href='http://www.owenkelly.net/250/how-can-i-find-what-im-looking-for/' rel='bookmark' title='Permanent Link: How can I find what I&#8217;m looking for?'>How can I find what I&#8217;m looking for?</a> <small>Developing the idea of the memi involves juggling several concepts...</small></li>
<li><a href='http://www.owenkelly.net/235/validation-and-ie7/' rel='bookmark' title='Permanent Link: Validation and IE7'>Validation and IE7</a> <small>Today the students in the Managing Information course told me...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I spent two or three hours this morning turning my comments into pop-ups. This is not the first time I have tried. It is the first time that I have succeeded.</p>
<p>I had been meaning to do this for some time but the last few times I tried it simply didn&#8217;t work. I gave up because I had better things to do, and put it on the back burner. It finally cooked, because last night I woke up and decided that the comments were astoundingly ugly the way they were, and they had to be a priority in making the next version of the site.</p>
<p>This morning they still didn&#8217;t work. Nor did they work when I followed the step-by-step instructions to set them up in the classic and default themes. I hunted around and eventally found answer to the problem in <a href="http://wordpress.org/support/topic/126217" title="Link to comment pop up from single.php">the WordPress forums</a>.</p>
<p>The problem, simply put, is a difference between the conceptual thinking of the <a href="http://www.wordpress.org" class="ubernym uttReplace">WordPress</a> development team and me. They think of a blog as an endless roll of entries, and I think of this site has having a range of discrete separate entries. From their perspective comments will not normally appear on a page showing the details of a single entry. From my perspective that is the only place they <em>should </em>appear.</p>
<p>The answer turned out to be a single line of code that would have taken months to figure out on my own. Here it is:</p>
<p><code>&lt;?php is_single = false; ?&gt;</code></p>
<p>You add this before the comments pop up link on whatever <code>single.php</code> template you are using. Why? Because the script that tests to see if it should display pop-up comments checks to see if the page is a single page or not. So after you have established that it <em>is </em>a single page, in order to load in the right templates, you then switch the variable to fool the comments script.</p>
<p>The result is that the comments pop up. The comment from me is: <em>sheesh</em>!</p>
<h3>Window size</h3>
<p>I also wanted to change the size of the window. I discovered that you can do it like this:</p>
<p><code>&lt;?php comments_popup_script(400, 500); ?&gt;</code></p>
<p>This goes in the <code>header.php</code> file. The first number represents the width of the window, and the second is the height.</p>

<p>Related posts:<ol><li><a href='http://www.owenkelly.net/357/clean-archives/' rel='bookmark' title='Permanent Link: Clean Archives'>Clean Archives</a> <small>A couple of weeks ago, in one of my periodic...</small></li>
<li><a href='http://www.owenkelly.net/250/how-can-i-find-what-im-looking-for/' rel='bookmark' title='Permanent Link: How can I find what I&#8217;m looking for?'>How can I find what I&#8217;m looking for?</a> <small>Developing the idea of the memi involves juggling several concepts...</small></li>
<li><a href='http://www.owenkelly.net/235/validation-and-ie7/' rel='bookmark' title='Permanent Link: Validation and IE7'>Validation and IE7</a> <small>Today the students in the Managing Information course told me...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.owenkelly.net/516/comments-that-pop-up/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
