<?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; comment</title>
	<atom:link href="http://wpfunc.com/tag/comment/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>Small Security Hole in WordPress!</title>
		<link>http://wpfunc.com/wordpress/small-security-hole-in-wordpress.html</link>
		<comments>http://wpfunc.com/wordpress/small-security-hole-in-wordpress.html#comments</comments>
		<pubDate>Thu, 20 May 2010 07:29:25 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[login name]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[security hole]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=436</guid>
		<description><![CDATA[When you add a comment to your article WordPress system adds a class which named &#8220;comment-author-&#8217;username&#8217; &#8220;. But when you add a comment as administrator the system make this class &#8220;comment-author-yourloginname&#8221; . Bavotasan thinks it will be a security hole for WordPress. If you add this function into your theme&#8217;s functions.php this problem will be [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">When you add a comment to your article WordPress system adds a class which named &#8220;comment-author-&#8217;username&#8217; &#8220;. But when you add a comment as administrator the system make this class &#8220;comment-author-yourloginname&#8221; . Bavotasan thinks it will be a security hole for WordPress. If you add this function into your theme&#8217;s functions.php this problem will be solve. <span id="more-436"></span></p>
<h3>Here is the function;</h3>
<pre class="brush: php; title: ; notranslate">function remove_comment_author_class( $classes ) {
	foreach( $classes as $key =&gt; $class ) {
		if(strstr($class, &quot;comment-author-&quot;)) {
			unset( $classes[$key] );
		}
	}
	return $classes;
}
add_filter( 'comment_class' , 'remove_comment_author_class' );</pre>
<p><a href="http://bavotasan.com/tutorials/small-security-hole-in-wordpress-comments/" target="_blank">Here is the original post!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/small-security-hole-in-wordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Most Recent Comments! Without Any Plugin</title>
		<link>http://wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html</link>
		<comments>http://wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html#comments</comments>
		<pubDate>Thu, 21 Jan 2010 18:59:10 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[area]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[recent commen]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Widget]]></category>
		<category><![CDATA[without plugin]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=376</guid>
		<description><![CDATA[We use plugin/widget for show most recent comments. But we can do that with a simple code. This code gives you simple recent comments feature without plugin. also with gravatar support. Paste this code into your theme where you want. All done! Here is the code; This code shows 5 recent comment. If you change [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">We use plugin/widget for show most recent comments. But we can do that with a simple code. This code gives you simple recent comments feature without plugin. also with gravatar support. Paste this code into your theme where you want. All done!<span id="more-376"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php; title: ; notranslate">&lt;?php
$query = &quot;SELECT * from $wpdb-&gt;comments WHERE comment_approved= '1'
ORDER BY comment_date DESC LIMIT 0 ,5&quot;;
$comments = $wpdb-&gt;get_results($query);

if ($comments) {
    echo '&lt;ul&gt;';
    foreach ($comments as $comment) {
        $url = '&lt;a href=&quot;'. get_permalink($comment-&gt;comment_post_ID).'#comment-'.$comment-&gt;comment_ID .'&quot; title=&quot;'.$comment-&gt;comment_author .' | '.get_the_title($comment-&gt;comment_post_ID).'&quot;&gt;';
        echo '&lt;li&gt;';
        echo '&lt;div class=&quot;img&quot;&gt;';
        echo $url;
        echo get_avatar( $comment-&gt;comment_author_email, $img_w);
        echo '&lt;/a&gt;&lt;/div&gt;';

        echo '&lt;div class=&quot;txt&quot;&gt;Par: ';
        echo $url;
        echo $comment-&gt;comment_author;
        echo '&lt;/a&gt;&lt;/div&gt;';
        echo '&lt;/li&gt;';
    }
    echo '&lt;/ul&gt;';
}
?&gt;
</pre>
<p>This code shows 5 recent comment. If you change &#8220;<span style="color: #ff0000;"><strong>5</strong></span>&#8221; in line two, you can display more comment or less&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Say Hello to returning visitors!</title>
		<link>http://wpfunc.com/wordpress/say-hello-to-returning-visitors.html</link>
		<comments>http://wpfunc.com/wordpress/say-hello-to-returning-visitors.html#comments</comments>
		<pubDate>Sun, 27 Dec 2009 10:19:01 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[comment_cookie]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[guest]]></category>
		<category><![CDATA[returning]]></category>
		<category><![CDATA[visitor]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=334</guid>
		<description><![CDATA[We can use cookies for show some custom messages to our visitor. But this cookies are comment_cookie. Also show custom message to normal visitors. If you want to show this custom messages read this article. Let&#8217;s Begin&#8230; Here is the code; That&#8217;s All. Have a nice day!]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">We can use cookies for show some custom messages to our visitor. But this cookies are comment_cookie. Also show custom message to normal visitors. If you want to show this custom messages read this article. Let&#8217;s Begin&#8230;<span id="more-334"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php; title: ; notranslate">&lt;?php if(isset($_COOKIE['comment_author_'.COOKIEHASH])) {
	$lastCommenter = $_COOKIE['comment_author_'.COOKIEHASH];

	echo &quot;Welcome Back &quot;. $lastCommenter .&quot;!&quot;;

	} else {

	echo &quot;Welcome, Guest!&quot;;
} ?&gt;</pre>
<p>That&#8217;s All. Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/say-hello-to-returning-visitors.html/feed</wfw:commentRss>
		<slash:comments>1</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>
	</channel>
</rss>

