<?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>WpFunc &#187; comments.php</title>
	<atom:link href="http://wpfunc.com/tag/comments-php/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Sun, 06 May 2012 02:21:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to Add Numbers Into Comments</title>
		<link>http://wpfunc.com/wordpress/how-to-add-numbers-into-comments.html</link>
		<comments>http://wpfunc.com/wordpress/how-to-add-numbers-into-comments.html#comments</comments>
		<pubDate>Fri, 02 Apr 2010 19:14:53 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[comment editing]]></category>
		<category><![CDATA[comment list]]></category>
		<category><![CDATA[comment number]]></category>
		<category><![CDATA[comments.php]]></category>
		<category><![CDATA[comments.php hacks]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[style.css]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=412</guid>
		<description><![CDATA[Hello! I know i&#8217;m late. But im working hard. I had a tow weeks of a travel for works. I was away from computer. Than i&#8217;m here now :) This trick is a comments.php hack :) Let&#8217;s begin&#8230; Here is the code; We will edit comments.php and we add some code into this file. First, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Hello! I know i&#8217;m late. But im working hard. I had a tow weeks of a travel for works. I was away from computer. Than i&#8217;m here now :) This trick is a comments.php hack :) Let&#8217;s begin&#8230;<span id="more-412"></span></p>
<h3 style="text-align: justify;">Here is the code;</h3>
<p style="text-align: justify;"><span class="attention">We will edit your WordPress&#8217; theme. You should make a backup of <strong>comments.php</strong>. If you make a backup, continue&#8230;</span></p>
<p style="text-align: justify;">We will edit <span style="color: #ff0000;"><em><strong>comments.php</strong></em></span> and we add some code into this file. First, look at the code;</p>
<pre class="brush: php; title: ; notranslate">&lt;ol id=&quot;commentlist&quot;&gt;

&lt;?php $i = 1; ?&gt;
&lt;?php foreach ($comments as $comment) : ?&gt;
&lt;li &lt;?php comment_class(); ?&gt; id=&quot;comment-&lt;?php comment_ID() ?&gt;&quot;&gt;
&lt;?php echo get_avatar( $comment, 32 ); ?&gt;
&lt;?php comment_text() ?&gt;

&lt;p&gt;&lt;cite&gt;&lt;?php comment_type(_c('Comment|noun'), __('Trackback'), __('Pingback')); ?&gt; &lt;?php _e('by'); ?&gt; &lt;?php comment_author_link() ?&gt; &amp;#8212; &lt;?php comment_date() ?&gt; @ &lt;a href=&quot;#comment-&lt;?php comment_ID() ?&gt;&quot;&gt;&lt;?php comment_time() ?&gt;&lt;/a&gt;&lt;/cite&gt; &lt;?php edit_comment_link(__(&quot;Edit This&quot;), ' |'); ?&gt;&lt;/p&gt;
&lt;div class=&quot;commentnumber&quot;&gt;#&lt;?php echo $i; ?&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;?php $i++; ?&gt;

&lt;?php endforeach; ?&gt;</pre>
<p style="text-align: justify;">Do you see the added code? If you don&#8217;t i will write them here. Add this codes into your <strong><em><span style="color: #ff0000;">comments.php</span></em></strong> like me;</p>
<pre class="brush: php; title: ; notranslate">&lt;?php $i = 1; ?&gt;
&lt;div class=&quot;commentnumber&quot;&gt;#&lt;?php echo $i; ?&gt;&lt;/div&gt;
&lt;?php $i++; ?&gt;</pre>
<p style="text-align: justify;">If you want to add link to reply. Just change  #&lt;?php echo $i; ?&gt; with this code;</p>
<pre class="brush: php; title: ; notranslate">&lt;a href=&quot;#comment-&lt;?php comment_ID() ?&gt;&quot; title=&quot;&quot;&gt;#&lt;?php echo $i; ?&gt;&lt;/a&gt;</pre>
<p style="text-align: justify;">Finally, The CSS. Add this css into your <em><strong><span style="color: #ff0000;">style.css</span></strong></em>;</p>
<pre class="brush: css; title: ; notranslate">/* Comment Numbers */
.commentnumber {
position: absolute;
right: 5px;
top: 5px;
font-size: 18px;
color: #454545;
}
.commentlist li {
position: relative;
}
/* Comment Numbers */</pre>
<p style="text-align: justify;">That&#8217;s All. This is the screenshot :)</p>
<p style="text-align: justify;"><a class="highslide img_2" href="http://www.wpfunc.com/wp-content/uploads/2010/04/comment-number.png" onclick="return hs.expand(this)"><img class="alignnone size-full wp-image-415" title="Comment Numbers" src="http://www.wpfunc.com/wp-content/uploads/2010/04/comment-number.png" alt="" width="167" height="165" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/how-to-add-numbers-into-comments.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Highlight the Author Comments!</title>
		<link>http://wpfunc.com/wordpress/highlight-the-author-comments.html</link>
		<comments>http://wpfunc.com/wordpress/highlight-the-author-comments.html#comments</comments>
		<pubDate>Thu, 01 Oct 2009 18:34:55 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[comments.php]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[highliht]]></category>
		<category><![CDATA[style.css]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/wordpress/highlight-the-author-comments.html</guid>
		<description><![CDATA[You can seperate the author comment from the reader comments. That&#8217;s needed some change in your css file and comments.php file. After that author comments shown in a different background color. Let&#8217;s begin&#8230; Here is the code; First one in comments.php file. Find this code; And change with this one; After that open your style.css [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You can seperate the author comment from the reader comments. That&#8217;s needed some change in your css file and comments.php file. After that author comments shown in a different background color. Let&#8217;s begin&#8230;<span id="more-234"></span></p>
<h3>Here is the code;</h3>
<p style="text-align: justify;">First one in <span style="color: #ff0000;"><strong>comments.php</strong></span> file. Find this code;</p>
<pre class="brush: plain; title: ; notranslate">&lt;li &lt;?php echo $oddcomment; ?&gt;id=&quot;comment-&lt;?php comment_ID() ?&gt;&quot;&gt;</pre>
<p style="text-align: justify;"><strong><em>And change with this one;</em></strong></p>
<pre class="brush: plain; title: ; notranslate">&lt;li class=&quot;&lt;?php if ($comment-&gt;user_id == 1) $oddcomment = &quot;authorstyle&quot;; echo $oddcomment; ?&gt;&quot;</pre>
<p style="text-align: justify;">After that open your<strong> <span style="color: #ff0000;">style.css</span></strong> file and add this lines in to it;</p>
<pre class="brush: css; title: ; notranslate">.authorstyle {
background-color: #B3FFCC !important;
} </pre>
<p style="text-align: justify;">That&#8217;s All. Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/highlight-the-author-comments.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show your usable tags in your comment form!</title>
		<link>http://wpfunc.com/wordpress/show-your-usable-tags-in-your-comment-form.html</link>
		<comments>http://wpfunc.com/wordpress/show-your-usable-tags-in-your-comment-form.html#comments</comments>
		<pubDate>Sun, 27 Sep 2009 19:17:40 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[comment form]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[comments.php]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[XHTML tags]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=224</guid>
		<description><![CDATA[If you look my comment form you can see usable XHTML tags. If you want to show your usable tags to commentators or users, you can add this one-line code in to your comment form. Just need to change your theme&#8217;s comments.php. After that the users can use this tags. Here is the code; We [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">If you look my comment form you can see usable <strong>XHTML</strong> tags. If you want to show your usable tags to commentators or users, you can add this one-line code in to your comment form. Just need to change your theme&#8217;s <strong>comments.php</strong>. After that the users can use this tags.<span id="more-224"></span></p>
<h3>Here is the code;</h3>
<p style="text-align: justify;">We will change our theme&#8217;s <span style="color: #ff0000;"><strong>comments.php</strong></span>. First make a <strong><span style="text-decoration: underline;">backup</span></strong> please. After bakcup you can add this code into your php file where you want to show this usable tags.</p>
<pre class="brush: plain; title: ; notranslate">Usable XHTML Tags: &lt;?php echo allowed_tags(); ?&gt;</pre>
<p>That&#8217;s All. Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/show-your-usable-tags-in-your-comment-form.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

