<?xml version="1.0" encoding="iso-8859-1"?>
<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>Pure-Essence.Net &#187; wp hacks</title>
	<atom:link href="http://pure-essence.net/category/geeky/wp-hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://pure-essence.net</link>
	<description>you must visit this geeky girl's weblog!</description>
	<lastBuildDate>Fri, 20 Nov 2009 14:31:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>upgraded to wordpress 2.3</title>
		<link>http://pure-essence.net/2007/12/22/upgraded-to-wordpress-23/</link>
		<comments>http://pure-essence.net/2007/12/22/upgraded-to-wordpress-23/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 01:11:49 +0000</pubDate>
		<dc:creator>dodo</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[plug]]></category>
		<category><![CDATA[wp hacks]]></category>
		<category><![CDATA[multiple sidebars]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[sidebar widget]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress 2.3]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://pure-essence.net/2007/12/22/upgraded-to-wordpress-23/</guid>
		<description><![CDATA[I&#8217;ve upgraded to wordpress 2.3 mainly to use their new sidebar widget feature. I thought it will be overly cool to not have to rewrite the sidebar.php for every theme. However, I&#8217;d like to have different sidebars for different views. Like the sidebar for my index page would look different than the sidebar for my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve upgraded to wordpress 2.3 mainly to use <a href="http://automattic.com/code/widgets/">their new sidebar widget feature</a>. I thought it will be overly cool to not have to rewrite the sidebar.php for every theme. <del datetime="2007-12-23T02:18:25+00:00">However, I&#8217;d like to have different sidebars for different views. Like the sidebar for my index page would look different than the sidebar for my single post. I haven&#8217;t yet figured out how to create additional sidebar for a theme. Do you know how to do it? Please share if you do. Thanks!</del> N/M I figured out. <a href="http://automattic.com/code/widgets/api/">It&#8217;s talked about here</a>.</p>
<p><strong>Consider the Ultimate Tag Warrior 3 plugin</strong><br />
If you are like me and use the UTW plugin, you might notice wordpress 2.3 now has its own native tags support. After the upgrade, I notice the old tags are not converted. I thought there must be already a way to convert them. Fortunately for us, wordpress 2.3 has also a built in way to convert your tags from the UTW plugin. Just go to your wordpress admin and look under Manage > Import. You will see the UTW import option. </p>
]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2007/12/22/upgraded-to-wordpress-23/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>disable wordpress smiley for a certain post/page</title>
		<link>http://pure-essence.net/2006/02/02/disable-wordpress-smiley-for-a-certain-postpage/</link>
		<comments>http://pure-essence.net/2006/02/02/disable-wordpress-smiley-for-a-certain-postpage/#comments</comments>
		<pubDate>Thu, 02 Feb 2006 15:00:06 +0000</pubDate>
		<dc:creator>dodo</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[php code]]></category>
		<category><![CDATA[wp hacks]]></category>

		<guid isPermaLink="false">http://pure-essence.net/archives/2006/02/02/disable-wordpress-smiley-for-a-certain-postpage/</guid>
		<description><![CDATA[okie, i thought someone has figured it out by now. but when i asked on the wordpress board, i got no response. so i digged around and figured a hack for it.
i noticed sometimes esp. on some pages, the smiley conversion does a poor job and converts the wrong text into smilies. it really mars [...]]]></description>
			<content:encoded><![CDATA[<p>okie, i thought someone has figured it out by now. but when i asked on the wordpress board, i got no response. so i digged around and figured a hack for it.</p>
<p>i noticed sometimes esp. on some pages, the smiley conversion does a poor job and converts the wrong text into smilies. it really mars my content. personally i want to be able to just turn the smiley off for a certain post or page.</p>
<p>the best way i can think of to do it is via a hack.</p>
<p>open your wp-includes/functions-formatting.php file, try find the function (possibly line 576):<br />
<code>function convert_smilies($text) {</code></p>
<p>then under it, replace:<br />
<code>global $wp_smiliessearch, $wp_smiliesreplace; $output = ''; if (get_settings('use_smilies')) {</code></p>
<p>with:<br />
<code>global $wp_smiliessearch, $wp_smiliesreplace, $post; $output = ''; $smileykey = get_post_meta($post-&gt;ID, "disable_smiley", TRUE); if (get_settings('use_smilies') &amp;&amp; $smileykey != 'true') {</code></p>
<p>that&#8217;s all i needed to do.</p>
<p>now next time you write a new post/post, simply create a custom field with the key disable_smiley and value true to disable smiley conversion for just that post/page. isn&#8217;t that neat? <img src='http://pure-essence.net/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2006/02/02/disable-wordpress-smiley-for-a-certain-postpage/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>dodos threaded comments for wp 2.0</title>
		<link>http://pure-essence.net/2006/01/31/dodos-threaded-comments-for-wp-20/</link>
		<comments>http://pure-essence.net/2006/01/31/dodos-threaded-comments-for-wp-20/#comments</comments>
		<pubDate>Tue, 31 Jan 2006 14:52:54 +0000</pubDate>
		<dc:creator>dodo</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[wp hacks]]></category>

		<guid isPermaLink="false">http://pure-essence.net/archives/2006/01/31/dodos-threaded-comments-for-wp-20/</guid>
		<description><![CDATA[as you see, i&#8217;ve reinstalled dodos threaded comments hack for wp 2.0. feel free to test it out here.
i&#8217;ve released the new version here. i can not provide much support due to my busy schedule. however for the next few days, if you try it and find obvious errors in the steps, i will take [...]]]></description>
			<content:encoded><![CDATA[<p>as you see, i&#8217;ve reinstalled <a href="http://pure-essence.net/wp-hacks/dodosthreadedcomments2_0.zip">dodos threaded comments hack for wp 2.0</a>. feel free to test it out here.<br />
i&#8217;ve released the <a href="http://pure-essence.net/wp-hacks/dodosthreadedcomments2_0.zip">new version here</a>. i can not provide much support due to my busy schedule. however for the next few days, if you try it and find obvious errors in the steps, i will take a look.</p>
<p>good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2006/01/31/dodos-threaded-comments-for-wp-20/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>moving pure-essence.net</title>
		<link>http://pure-essence.net/2006/01/29/moving-pure-essencenet/</link>
		<comments>http://pure-essence.net/2006/01/29/moving-pure-essencenet/#comments</comments>
		<pubDate>Sun, 29 Jan 2006 14:18:42 +0000</pubDate>
		<dc:creator>dodo</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[wp hacks]]></category>

		<guid isPermaLink="false">http://pure-essence.net/archives/2006/01/29/moving-pure-essencenet/</guid>
		<description><![CDATA[moving pe is a big project. right now i&#8217;m only 30% of the way there. it was a pain moving all the database due to their sizes but i finally finished it. 
i&#8217;m taking my time to check out all the wonderful new features &#038; looks that comes with
wp 2.0. while browsing for potential plugins, [...]]]></description>
			<content:encoded><![CDATA[<p>moving pe is a big project. right now i&#8217;m only 30% of the way there. it was a pain moving all the database due to their sizes but i finally finished it. </p>
<p>i&#8217;m taking my time to check out all the wonderful new features &#038; looks that comes with<br />
<a rel="external" href="http://wordpress.org/">wp 2.0</a>. while browsing for potential plugins, i found these quite interesting:<br />
<a rel="external" href="http://elliottback.com/wp/archives/2005/10/23/wordpress-hashcash-30-beta/">fight comment spam plugin (wordpress hashcash)</a><br />
- i probably will not install this right a way. the fact it uses ajax concerns me. nonetheless this is one of the best comment spamming projects i&#8217;ve seen out there. i will keep my eyes on it. during the move, when i was reviewing my comments data, i had to manually delete around 2mb of comments spam that somehow got logged into my table. most of them remind me a lot of<br />
<a href="http://pure-essence.net/archives/2005/12/02/dodosmail-version-21/">header injection</a><br />
. so i added a few lines of codes to my post file to hopefully help reduce spams.</p>
<pre>// to prevent header injection
if (eregi("\r",$_POST['email']) || eregi("\n",$_POST['email'])) { exit; }
// names must be alpha only
if(eregi("[^a-zA-Z]+", $_POST['author'])) die("Name must not contain characters other than a-z.");</pre>
<p>the second part enforces user to enter only alphabetical inputs for the commenter name.</p>
<p><a rel="external" href="http://www.randombyte.net/blog/projects/falbum/">the awesome flickr &#038; wordpress plugin</a><br />
- now this looks extremely interesting. i will probably install it. i spent a lot of time writing a php gallery script but it might be hard integrating it with wordpress. i love the flexibility of flickr. i think it is a much better choice.</p>
]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2006/01/29/moving-pure-essencenet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>old hacks need to be upgraded</title>
		<link>http://pure-essence.net/2005/02/16/old-hacks-need-to-be-upgraded/</link>
		<comments>http://pure-essence.net/2005/02/16/old-hacks-need-to-be-upgraded/#comments</comments>
		<pubDate>Thu, 17 Feb 2005 04:31:44 +0000</pubDate>
		<dc:creator>dodo</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[wp hacks]]></category>

		<guid isPermaLink="false">http://pure-essence.net/?p=953</guid>
		<description><![CDATA[a lot of old plugins or hacks for wp 1.2 is no longer working for wp 1.5
here are the ones i encountered and how i fixed them. they might not be the most ideal fixes but they worked for me.

page-navi plugin. open page-navi.php,
find:
global &#38;#36;querystring&#38;#95;start, &#38;#36;querystring&#38;#95;equal, &#38;#36;querystring&#38;#95;separator;
add below:
&#38;#36;querystring&#38;#95;equal = "=";
&#38;#36;querystring&#38;#95;separator = "&#38;amp;amp;";
&#38;#36;querystring&#38;#95;start = "?";
in your index.php
put:
&#38;#36;what&#38;#95;to&#38;#95;show [...]]]></description>
			<content:encoded><![CDATA[<p>a lot of old plugins or hacks for wp 1.2 is no longer working for wp 1.5</p>
<p>here are the ones i encountered and how i fixed them. they might not be the most ideal fixes but they worked for me.<br />
<span id="more-953"></span><br />
page-navi plugin. open page-navi.php,<br />
find:<br />
<code>global &amp;#36;querystring&amp;#95;start, &amp;#36;querystring&amp;#95;equal, &amp;#36;querystring&amp;#95;separator;</code></p>
<p>add below:<br />
<code>&amp;#36;querystring&amp;#95;equal = "=";
&amp;#36;querystring&amp;#95;separator = "&amp;amp;amp;";
&amp;#36;querystring&amp;#95;start = "?";</code></p>
<p>in your index.php<br />
put:<br />
<code>&amp;#36;what&amp;#95;to&amp;#95;show = 'paged';</code></p>
<p><a href="/wp-stats.php">wp-stats.php</a></p>
<p>just need this line:<br />
<code>&amp;#36;now = gmdate('Y-m-d H:i:59');</code></p>
<p>right after:<br />
<code>&amp;lt;?php</code></p>
<p>and on yea, concerning <a href="/?p=946">this</a><br />
now you should replace the old edit_post_link function with this:<br />
<code>function edit&amp;#95;post&amp;#95;link(&amp;#36;link = 'Edit This', &amp;#36;before = '', &amp;#36;after = '|', &amp;#36;edit&amp;#95;link = 'Edit Comments') {
    global &amp;#36;user&amp;#95;ID, &amp;#36;post;
    get&amp;#95;currentuserinfo();
	if (!user&amp;#95;can&amp;#95;edit&amp;#95;post(&amp;#36;user&amp;#95;ID, &amp;#36;post-&amp;gt;ID)) {
        return;
    }
	&amp;#36;edit&amp;#95;comments&amp;#95;location = get&amp;#95;settings('siteurl') . "&amp;#47;wp-admin&amp;#47;edit.php?p=&amp;#36;post-&amp;gt;ID&amp;c=1#comments";
    &amp;#36;location = get&amp;#95;settings('siteurl') . "&amp;#47;wp-admin&amp;#47;post.php?action=edit&amp;amp;post=&amp;#36;post-&amp;gt;ID";
    echo "&amp;#36;before &amp;lt;a href=&amp;#92;"&amp;#36;location&amp;#92;"&amp;gt;&amp;#36;link&amp;lt;&amp;#47;a&amp;gt; &amp;#36;after &amp;lt;a href=&amp;#92;"&amp;#36;edit&amp;#95;comments&amp;#95;location&amp;#92;" rel=&amp;#92;"external&amp;#92;"&amp;gt;&amp;#36;edit&amp;#95;link&amp;lt;&amp;#47;a&amp;gt;";
}</code><br />
btw i don&#8217;t plan to offer multi-more plugin any more. i don&#8217;t even use it myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2005/02/16/old-hacks-need-to-be-upgraded/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>dodos threaded comments for wp 1.5</title>
		<link>http://pure-essence.net/2005/02/16/dodos-threaded-comments-for-wp-15/</link>
		<comments>http://pure-essence.net/2005/02/16/dodos-threaded-comments-for-wp-15/#comments</comments>
		<pubDate>Thu, 17 Feb 2005 03:24:47 +0000</pubDate>
		<dc:creator>dodo</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[wp hacks]]></category>

		<guid isPermaLink="false">http://pure-essence.net/?p=952</guid>
		<description><![CDATA[OMG what a pain! yes i&#8217;ve already upgraded my domain to wp 1.5 and i spent the past 5 hours writing how to add the threaded comments back for v1.5. it&#8217;s easy for myself to add it back; i just kept my old index.php and my old wp-comments.php. if you want to do that, DO [...]]]></description>
			<content:encoded><![CDATA[<p>OMG what a pain! yes i&#8217;ve already upgraded my domain to <a href="http://pure-essence.net/?p=949">wp 1.5</a> and i spent the past 5 hours writing how to add the threaded comments back for v1.5. it&#8217;s easy for myself to add it back; i just kept my old index.php and my old wp-comments.php. if you want to do that, DO IT. if you do that,  you can just add the following two functions to your wp-includes/comment-functions.php</p>
<p>GRAB the old dodos_thread() function for your old wp-includes/functions.php and move it to the new wp-includes/functions.php<br />
add <a href="/wp-hacks/dodos_comment_reply_notification_wp_1_5.phps">dodo&#8217;s modified wp_notify_postauthor()</a> to wp-includes/comment-functions.php</p>
<p>otherwise <a href="/wp-hacks/dodosthreadedcomments1_5.zip">download my guide here</a> &#8211; again it took me five hours to write and figure out coz they freaking changed A LOT of code @_@ arg i will never do it again next time they release a new version.</p>
<p><a href="/testwp/">you can test my threaded comments feature on a refresh install of wp 1.5 here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2005/02/16/dodos-threaded-comments-for-wp-15/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>threaded comments notification</title>
		<link>http://pure-essence.net/2005/01/23/threaded-comments-notification/</link>
		<comments>http://pure-essence.net/2005/01/23/threaded-comments-notification/#comments</comments>
		<pubDate>Mon, 24 Jan 2005 01:09:23 +0000</pubDate>
		<dc:creator>dodo</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[wp hacks]]></category>

		<guid isPermaLink="false">http://pure-essence.net/?p=935</guid>
		<description><![CDATA[ok i guess when i wrote up my threaded comments hack, i did not include the feature where the comment author who you are replying to will get notified by email. hrm it&#8217;s just an update in your functions.php under wp-includes.
here&#8217;s my code. you can replace your old wp_notify_postauthor function with it.
like always. BACK UP [...]]]></description>
			<content:encoded><![CDATA[<p>ok i guess when i wrote up <a href="wp-hacks/dodosthreadedcomments.zip">my threaded comments hack</a>, i did not include the feature where the comment author who you are replying to will get notified by email. hrm it&#8217;s just an update in your functions.php under wp-includes.</p>
<p><a href="wp-hacks/dodos_comment_reply_notification.phps" rel="external" class="external">here&#8217;s my code</a>. you can replace your old wp_notify_postauthor function with it.</p>
<p>like always. BACK UP before you overwrite anything.<br />
<strong><br />
small bug fix &#8211; spotted by ecila</strong> <img src='http://pure-essence.net/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' />  the reply notification does not include the commenter&#8217;s email address so i added it in now.</p>
]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2005/01/23/threaded-comments-notification/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>more for the ultimate comment idea</title>
		<link>http://pure-essence.net/2005/01/19/more-for-the-ultimate-comment-idea/</link>
		<comments>http://pure-essence.net/2005/01/19/more-for-the-ultimate-comment-idea/#comments</comments>
		<pubDate>Wed, 19 Jan 2005 22:17:37 +0000</pubDate>
		<dc:creator>dodo</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[wp hacks]]></category>

		<guid isPermaLink="false">http://pure-essence.net/?p=933</guid>
		<description><![CDATA[in addtion to the previous post, i wrote a piece of code where you can add above
$wpdb-&#62;query("INSERT INTO $tablecomments
in your wp-comments-post.php to have it delete unapproved comments that&#8217;s ___ days old
//// Auto delete unapprove comments if the comment is ___ days old 
$how_old_comment = 10; // 10 days 
$current_time = time(); 
$comment_date = $wpdb-&#62;get_var("SELECT comment_date [...]]]></description>
			<content:encoded><![CDATA[<p>in addtion to <a href="/index.php?p=931">the previous post</a>, i wrote a piece of code where you can add above</p>
<p><code>$wpdb-&gt;query("INSERT INTO $tablecomments</code></p>
<p>in your wp-comments-post.php to have it delete unapproved comments that&#8217;s ___ days old</p>
<p><code>//// Auto delete unapprove comments if the comment is ___ days old 
$how_old_comment = 10; // 10 days 
$current_time = time(); 
$comment_date = $wpdb-&gt;get_var("SELECT comment_date FROM $tablecomments WHERE comment_approved='0'"); 
$comment_time = mysql2date('U', $comment_date) + $how_old_comment * 24 * 3600; 
if($comment_time &lt; $current_time) { // delete the comment 
$wpdb-&gt;query("DELETE FROM $tablecomments WHERE comment_approved='0' AND comment_date='$comment_date'"); 
} //// End delete unapprove comments if the comment is ___ days old</code><br />
i haven&#8217;t thoroughly tested this code. if you have problems, let me know.</p>
<p>also here&#8217;s a script you can run to get rid of blank <strong>and/or</strong> invalid email addresses in your comments table. <a href="/stuff/code/dodos_update_blank_emails.phps" rel="external" class="external">get the code here</a>, paste it to a text file. modify the $default_email variable  and name it dodos_update_blank_emails.php.  then upload the script to your wp root directory and run it. do it at your own risk. i have tested it on my own site and it worked for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2005/01/19/more-for-the-ultimate-comment-idea/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>the ultimate comment idea</title>
		<link>http://pure-essence.net/2005/01/18/test-2/</link>
		<comments>http://pure-essence.net/2005/01/18/test-2/#comments</comments>
		<pubDate>Wed, 19 Jan 2005 00:05:13 +0000</pubDate>
		<dc:creator>dodo</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[wp hacks]]></category>

		<guid isPermaLink="false">http://pure-essence.net/?p=931</guid>
		<description><![CDATA[i really like skippy&#8217;s self comment moderation plugin.
The basic idea is that if the user supplies a valid email address, and they check that email account, then the commenter is most likely not a spammer.
altho not foolproof, i like it better than asking people entering a certain code.  plus this way it does not [...]]]></description>
			<content:encoded><![CDATA[<p>i really like <a href="http://www.skippy.net/blog/2004/04/27/plugin-comment-authorization/" rel="external" class="external">skippy&#8217;s self comment moderation plugin</a>.</p>
<blockquote><p>The basic idea is that if the user supplies a valid email address, and they check that email account, then the commenter is most likely not a spammer.</p></blockquote>
<p>altho not foolproof, i like it better than asking people entering a certain code.  plus this way it does not only fight spam, it also fights flamers. because from my personal experience, most flamers are too chicken **** to leave their real email addresses. this way i don&#8217;t need to waste my time to read their worthless comments.</p>
<p>i think it&#8217;s kinda annoying to ask your regular commenters repeatedly moderate their own comments.  so i added a little modification where your script tests if the commenter&#8217;s email already exists in the database or not. if it does, it will be automatically approved, otherwise an email with an approval link is sent to the user.</p>
<p>i also thought of the idea to apply skippy&#8217;s filter only after a post is certain days old. </p>
<p>you are welcome to use either or both. </p>
<p>How to use my trick:</p>
<p>1. install <a href="http://www.skippy.net/blog/2004/04/27/plugin-comment-authorization/" rel="external" class="external">skippy&#8217;s plugin</a>. modify your &#36;seed variable. activate it. upload moderation.php to your wp root directory.<br />
2. make sure in your wp control panel, under options -> discussion &#8220;An administrator must approve the comment (regardless of any matches below)&#8221; is UNCHECKED.<br />
3. open wp-comments-post.php and find the line:</p>
<p><code>$wpdb-&gt;query("INSERT INTO $tablecomments</code></p>
<p>if you wish to use auto unapprove comments after the post is __ many days old. <b>add above</b></p>
<p><code>//// Auto unapprove comments if a post is ___ days old $how_old = 7; // 7 days $current_time = time(); $post_date = $wpdb-&gt;get_var("SELECT post_date FROM $tableposts WHERE ID='$comment_post_ID'"); $post_time = mysql2date('U', $post_date) + $how_old * 24 * 3600; if($post_time &lt; $current_time &amp;&amp; $approved == 1) { $approved = 0; } //// End unapprove comments if a post is ___ days old</code></p>
<p>if you wish to use auto unapprove comments if the commenter&#8217;s email addy is new. <b>add above</b></p>
<p><code>//// Auto unapprove comments if the commenter's email is not recognized from the database $comment_author_email_exist = $wpdb-&gt;get_var("SELECT comment_author_email FROM $tablecomments WHERE comment_author_email='$email' AND comment_approved='1' LIMIT 1"); if(empty($comment_author_email_exist) &amp;&amp; $approved == 1) { $approved = 0; } //// End unapprove comments if the commenter's email is not recognized from the database</code></p>
]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2005/01/18/test-2/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>you like my new code button?</title>
		<link>http://pure-essence.net/2004/08/17/you-like-my-new-code-button/</link>
		<comments>http://pure-essence.net/2004/08/17/you-like-my-new-code-button/#comments</comments>
		<pubDate>Tue, 17 Aug 2004 20:59:28 +0000</pubDate>
		<dc:creator>dodo</dc:creator>
				<category><![CDATA[wp hacks]]></category>

		<guid isPermaLink="false">http://pure-essence.net/?p=891</guid>
		<description><![CDATA[updated
- old comments are deleted because i have improved my script. so far i haven&#8217;t seen any errors. feel free to test more
check out my new code button in the comments field.. it actually replaces my other &#8220;better handle &#60;code&#62;&#8221; hack &#8211; test it out in the comments area by click on the &#8220;code&#8221; button [...]]]></description>
			<content:encoded><![CDATA[<p><strong>updated</strong><br />
- old comments are deleted because i have improved my script. so far i haven&#8217;t seen any errors. feel free to test more</p>
<p>check out my new code button in the comments field.. it actually replaces my other &#8220;better handle &lt;code&gt;&#8221; hack &#8211; test it out in the comments area by click on the &#8220;code&#8221; button <img src='http://pure-essence.net/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' /> and let me know how you  like it. if it&#8217;s worthwhile to release it as a hack.</p>
]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2004/08/17/you-like-my-new-code-button/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>
