<?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>Timeline-Studios Blog &#187; Wordpress</title>
	<atom:link href="http://www.timeline-studios.com/blogs/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.timeline-studios.com/blogs</link>
	<description>Timeline-Studios Blog</description>
	<lastBuildDate>Sun, 01 Jan 2012 22:50:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Getting inline comments on any WordPress Theme Homepage</title>
		<link>http://www.timeline-studios.com/blogs/2010/02/getting-inline-comments-on-any-wordpress-theme-homepage/</link>
		<comments>http://www.timeline-studios.com/blogs/2010/02/getting-inline-comments-on-any-wordpress-theme-homepage/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 17:29:01 +0000</pubDate>
		<dc:creator>Shubhodeep Das</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[homepage]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[inline]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://timeline-studios.com/blogs/?p=356</guid>
		<description><![CDATA[Just like this Blog&#8217;s homepage. The steps are easy. Here is a small description into how I got this done on this blog. Why I got this done is explained first. Over the years I have shied away from commenting on Blogs simply because one has to click and go to a comments popup form [...]]]></description>
			<content:encoded><![CDATA[<p>Just like this Blog&#8217;s homepage. The steps are easy. Here is a small description into how I got this done on this blog. Why I got this done is explained first. Over the years I have shied away from commenting on Blogs simply because one has to click and go to a comments popup form or a post page, not that works just fine on larger posts where there are tons of stuff to read, tons of Maps and Images and other stuff to go through, but for a very simple day to day blogging, that kind of comes across as a lose nut in the theme, and that&#8217;s how I got around to get this done.</p>
<p><strong>Here&#8217;s how.</strong></p>
<p><strong>Step 1.</strong> Open you index.php file in the theme and locate the loop. That should look like this. It should start with the following:</p>
<p><code>&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;</code></p>
<p>And end with the following:</p>
<p><code> &lt;?php endwhile; ?&gt;<br />
....<br />
&lt;?php endif; ?&gt;</code></p>
<p>Between these two parts is where your posts pop up and the whole thing is repeated over and over again depending on the amount of posts you would want to load up on the homepage, which can be set right there in the settings. We don&#8217;t want to touch that.</p>
<p><strong>Step 2:</strong> Now open your single.php file and find this small piece of code.</p>
<p><code>&lt;?php comments_template(); ?&gt;</code></p>
<p>Change that to:</p>
<p><code>&lt;?php  $withcomments = "1";  comments_template();?&gt;</code></p>
<p>Copy that and paste it right above the end of the loop, just before this:</p>
<p><code>&lt;?php endwhile; ?&gt;<br />
....<br />
&lt;?php endif; ?&gt;</code></p>
<p>This should result in the comments form and the comments to pop up right under each post. But that would also pop up a bunch of errors as each form field ID would get repeated over and over again, and that can&#8217;t be cool.</p>
<p><strong>Step 3:</strong> Now open the comments.php file in your theme directory. In that you will have to locate each ID identifying each field in the comments form. Either prefix or suffix them with the following code to make them unique. The code pulls out the post ID and adds a suffix to the already existing ID after a hyphen. Here&#8217;s how:</p>
<p><code>&lt;input type="text" name="author" id="author" value="&lt;?php echo esc_attr($comment_author); ?&gt;" size="40" tabindex="1" &lt;?php if ($req) echo "aria-required='true'"; ?&gt; /&gt;</code></p>
<p>Becomes:</p>
<p><code>&lt;input type="text" name="author" id="author-&lt;?php the_ID(); ?&gt;" value="&lt;?php echo esc_attr($comment_author); ?&gt;" size="40" tabindex="1" &lt;?php if ($req) echo "aria-required='true'"; ?&gt; /&gt;</code></p>
<p>Note the:</p>
<p><code>-&lt;?php the_ID(); ?&gt;</code></p>
<p>added right after the &#8220;author&#8221; in the ID of the Input Field. Do this for all the fields and submit buttons. Once you are done, you are error free for most of the part. But there still remains one problem, now when the page loads, you will see all the comments form and that cant be good, it would look cluttered and bad.</p>
<p><strong>Step 4:</strong> Add or Change the &#8220;Reply&#8221; button under the post, in most themes this button is linked to the post page.</p>
<p>Instead put this Hyperlink to the &#8220;Reply&#8221; button:</p>
<p><code>&lt;a href="javascript:toggleLayer('respond-&lt;?php the_ID(); ?&gt;');"&gt;Reply&lt;/a&gt;</code></p>
<p>By any luck, you would have already added the &#8220;Post ID&#8221; identifier to the &#8220;respond&#8221; ID in the comments.php. That leaves us with the Javascript. Copy the following code and place it within the &lt;head&gt; section of your header.php file.</p>
<p><code> &lt;script type="text/javascript"&gt;function toggleLayer( whichLayer )		{		var elem, vis;		if( document.getElementById ) // this is the way the standards work  			elem = document.getElementById( whichLayer );		else if( document.all ) // this is the way old msie versions work  			elem = document.all[whichLayer];		else if( document.layers ) // this is the way nn4 works  			elem = document.layers[whichLayer];			vis = elem.style;		// if the style.display value is blank we try to figure it out here		if(vis.display=='' &amp;&amp; elem.offsetWidth!=undefined&amp;&amp;elem.offsetHeight!=undefined)  			vis.display = (elem.offsetWidth!=0&amp;&amp;elem.offsetHeight!=0)?'block':'none';			vis.display = (vis.display==''||vis.display=='block')?'none':'block';		}&lt;/script&gt;</code></p>
<p>Thats it. you are done. This Javascript will simply &#8220;Show/hide&#8221; your comments form identified by &#8220;respond-(postID)&#8221;. Now I am no PHP guru, but this seems to work just fine returning zero errors.</p>
<p>[Edit] If you are copying the codes from above in green. Make sure you copy them into Notepad / Textedit and remove all formatting (convert to plain text) before pasting them in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.timeline-studios.com/blogs/2010/02/getting-inline-comments-on-any-wordpress-theme-homepage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Most Innovative Spam</title>
		<link>http://www.timeline-studios.com/blogs/2010/02/most-innovative-spam/</link>
		<comments>http://www.timeline-studios.com/blogs/2010/02/most-innovative-spam/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 07:26:33 +0000</pubDate>
		<dc:creator>Shubhodeep Das</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[akismet]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://timeline-studios.com/blogs/?p=249</guid>
		<description><![CDATA[&#8220;I don’t know if i totally agree with that. But nevertheless, you make a good point. What if I can come up with a response in opposition to your arguments&#8221; Yep. That&#8217;s a spam caught in Akismet. On a regular blog that may sound like a legit comment, but when its posted on a tweet [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>&#8220;I don’t know if i totally agree with that. But nevertheless, you make a good point. What if I can come up with a response in opposition to your arguments&#8221;</p></blockquote>
<p>Yep. That&#8217;s a spam caught in Akismet. On a regular blog that may sound like a legit comment, but when its posted on a tweet that criticizes .aspx pages and from a Light Bulb company. It&#8217;s a Spam. Good try.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.timeline-studios.com/blogs/2010/02/most-innovative-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>P2 from Automattic</title>
		<link>http://www.timeline-studios.com/blogs/2010/02/p2-from-automattic/</link>
		<comments>http://www.timeline-studios.com/blogs/2010/02/p2-from-automattic/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 11:55:24 +0000</pubDate>
		<dc:creator>Shubhodeep Das</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[automattic]]></category>
		<category><![CDATA[P2]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://timeline-studios.com/blogs/?p=200</guid>
		<description><![CDATA[The P2 theme from Automattic is probably the best theme there till date for an active blog. It supports inline comments and posting right from the homepage itself. The inline comments on this blog is also inspired by the P2 theme, in future would probably style P2 to run on this blog.]]></description>
			<content:encoded><![CDATA[<a href="http://timeline-studios.com/blogs/wp-content/uploads/2010/02/p2-theme.jpg"><img class="size-medium wp-image-201 " title="p2-theme" src="http://timeline-studios.com/blogs/wp-content/uploads/2010/02/p2-theme-295x300.jpg" alt="" width="295" height="300" /></a>
<p>The <a href="http://p2theme.com/">P2 theme</a> from <span class='bm_keywordlink'><a href="http://www.automattic.com/">Automattic</a></span> is probably the best theme there till date for an active blog. It supports inline comments and posting right from the homepage itself. The inline comments on this blog is also inspired by the P2 theme, in future would probably style P2 to run on this blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.timeline-studios.com/blogs/2010/02/p2-from-automattic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

