<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.0.10" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Limit and Alternate</title>
	<link>http://thisis.toddseal.com/2005/limit-and-alternate/</link>
	<description></description>
	<pubDate>Fri, 18 May 2012 02:47:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.10</generator>

	<item>
		<title>by: Jalenack</title>
		<link>http://thisis.toddseal.com/2005/limit-and-alternate/#comment-26</link>
		<pubDate>Wed, 20 Apr 2005 23:34:49 +0000</pubDate>
		<guid>http://thisis.toddseal.com/2005/limit-and-alternate/#comment-26</guid>
					<description>It still doesn't show my code snippets...I think the markdown plugin can help with that, not sure though. For styling the first post, just a simple:

&lt;code&gt;            &#60;div &#60;?php if ($isFirstPost) { echo 'id="firstTitle"'; } else { echo 'class="postTitle"'; }   ?&#62; &#62;
&lt;/code&gt;

Even more exciting are my comments and customized verbs for when certain users comment.

In /wp-includes/comment-functions/

&lt;code&gt;
function get_comment_author_link() {
	global $comment;
	$url    = get_comment_author_url();
	$author = get_comment_author();

	if ( empty( $url ) )
		$return = "$author thinks";
	if ( !empty($url) )
		$return = "&#60;a href="$url" rel="external"&#62;$author&#60;/a&#62; thinks";
	if ($comment-&#62;comment_author == "Nella") {
		$return = "$author quips"; }
	if ($comment-&#62;comment_author == "SuperDave") {
		$return = "$author digresses"; }
	if ($comment-&#62;comment_author == "Andrew") {
		$return = "$author declares"; }
	if ($comment-&#62;comment_author == "Jackie") {
		$return = "$author retorts"; }
	if ($comment-&#62;comment_author == "Sam") {
		$return = "$author grumbles"; }
	return apply_filters('get_comment_author_link', $return);
}
&lt;/code&gt;

Then correct the comments template in your theme folder..It's not a very clean hack, but with a small, consistent base of commenters, it's nice.

So, would you like your own personalized verb?</description>
		<content:encoded><![CDATA[<p>It still doesn&#8217;t show my code snippets&#8230;I think the markdown plugin can help with that, not sure though. For styling the first post, just a simple:</p>
<p><code>            &lt;div &lt;?php if ($isFirstPost) { echo 'id="firstTitle"'; } else { echo 'class="postTitle"'; }   ?&gt; &gt;<br />
</code></p>
<p>Even more exciting are my comments and customized verbs for when certain users comment.</p>
<p>In /wp-includes/comment-functions/</p>
<p><code><br />
function get_comment_author_link() {<br />
	global $comment;<br />
	$url    = get_comment_author_url();<br />
	$author = get_comment_author();</p>
<p>	if ( empty( $url ) )<br />
		$return = "$author thinks";<br />
	if ( !empty($url) )<br />
		$return = "&lt;a href="$url" rel="external"&gt;$author&lt;/a&gt; thinks";<br />
	if ($comment-&gt;comment_author == "Nella") {<br />
		$return = "$author quips"; }<br />
	if ($comment-&gt;comment_author == "SuperDave") {<br />
		$return = "$author digresses"; }<br />
	if ($comment-&gt;comment_author == "Andrew") {<br />
		$return = "$author declares"; }<br />
	if ($comment-&gt;comment_author == "Jackie") {<br />
		$return = "$author retorts"; }<br />
	if ($comment-&gt;comment_author == "Sam") {<br />
		$return = "$author grumbles"; }<br />
	return apply_filters('get_comment_author_link', $return);<br />
}<br />
</code></p>
<p>Then correct the comments template in your theme folder..It&#8217;s not a very clean hack, but with a small, consistent base of commenters, it&#8217;s nice.</p>
<p>So, would you like your own personalized verb?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Todd</title>
		<link>http://thisis.toddseal.com/2005/limit-and-alternate/#comment-25</link>
		<pubDate>Wed, 20 Apr 2005 22:18:44 +0000</pubDate>
		<guid>http://thisis.toddseal.com/2005/limit-and-alternate/#comment-25</guid>
					<description>I believe your code did get filtered out. Encase it in &#60;code&#62; tags and make sure all of your brackets are &#38; l t ; and &#38; g t ;. I need a fix for that, so I can post code easily and so can others!

But I don't see any special styling on your first post. What did you do to it?</description>
		<content:encoded><![CDATA[<p>I believe your code did get filtered out. Encase it in &lt;code&gt; tags and make sure all of your brackets are &amp; l t ; and &amp; g t ;. I need a fix for that, so I can post code easily and so can others!</p>
<p>But I don&#8217;t see any special styling on your first post. What did you do to it?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Andrew</title>
		<link>http://thisis.toddseal.com/2005/limit-and-alternate/#comment-24</link>
		<pubDate>Wed, 20 Apr 2005 04:09:15 +0000</pubDate>
		<guid>http://thisis.toddseal.com/2005/limit-and-alternate/#comment-24</guid>
					<description>I did something very similar to this for my blog. The first post on all pages needed special styling, then I decided to have some fun with it and make it show the full post if it was first on the page and make it show the excerpt if it wasn't.

So right before the the loop starts:
&lt;code&gt;
 	
 	
		&#60;b&#62;&#60;/b&#62;
		
&lt;/code&gt;
then for my content:
&lt;code&gt;
                &#60;a&#62;Continue reading this entry&#60;/a&#62;
&lt;/code&gt;
Now by the end of the loop I have to set the $isFirstPost to false so that it won't repeat.

Getting under the hood of wordpress is soo fun!
(I hope my code samples don't get destroyed by wordpress filters).
</description>
		<content:encoded><![CDATA[<p>I did something very similar to this for my blog. The first post on all pages needed special styling, then I decided to have some fun with it and make it show the full post if it was first on the page and make it show the excerpt if it wasn&#8217;t.</p>
<p>So right before the the loop starts:<br />
<code></p>
<p>		&lt;b&gt;&lt;/b&gt;</p>
<p></code><br />
then for my content:<br />
<code><br />
                &lt;a&gt;Continue reading this entry&lt;/a&gt;<br />
</code><br />
Now by the end of the loop I have to set the $isFirstPost to false so that it won&#8217;t repeat.</p>
<p>Getting under the hood of wordpress is soo fun!<br />
(I hope my code samples don&#8217;t get destroyed by wordpress filters).
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

