<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" 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/" > <channel><title>Comments on: Fix wordpress plugin &#8220;GT post approval&#8221;</title> <atom:link href="http://manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/feed/" rel="self" type="application/rss+xml" /><link>http://manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/</link> <description>&#34;Manchumahara&#34; ...... The virtual, crazy, vagabond and  an emotional stupid!</description> <lastBuildDate>Fri, 13 Apr 2012 13:23:49 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Luis</title><link>http://manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/comment-page-1/#comment-14636</link> <dc:creator>Luis</dc:creator> <pubDate>Thu, 03 Feb 2011 03:24:48 +0000</pubDate> <guid isPermaLink="false">http://manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/#comment-14636</guid> <description>I think I found it could this be it? &lt;code&gt;// Auto approve a post if current user level is greater then X function gt_auto_approve($post_id){ global $wpdb; if($_POST[&#039;post_status&#039;] == &#039;publish&#039; &amp;&amp; $_POST[&#039;prev_status&#039;] != $_POST[&#039;post_status&#039;]){ $level = get_option(&#039;gt_opt&#039;); $level = $level[&#039;gt-level&#039;]; if($level &gt; 0) if(current_user_can(&quot;level_$level&quot;)) $wpdb-&gt;query(&quot;UPDATE $wpdb-&gt;posts SET gt_status = 1 WHERE ID = $post_id&quot;); } }&lt;/code&gt; </description> <content:encoded><![CDATA[<p>I think I found it could this be it?</p><p>&lt;code&gt;// Auto approve a post if current user level is greater then X</p><p>function gt_auto_approve($post_id){</p><p> global $wpdb;</p><p> if($_POST[&#039;post_status&#039;] == &#039;publish&#039; &amp;&amp; $_POST[&#039;prev_status&#039;] != $_POST[&#039;post_status&#039;]){</p><p> $level = get_option(&#039;gt_opt&#039;);</p><p> $level = $level[&#039;gt-level&#039;];</p><p> if($level &gt; 0)</p><p> if(current_user_can(&quot;level_$level&quot;))</p><p> $wpdb-&gt;query(&quot;UPDATE $wpdb-&gt;posts SET gt_status = 1 WHERE ID = $post_id&quot;);</p><p> }</p><p>}&lt;/code&gt;</p> ]]></content:encoded> </item> <item><title>By: Luis</title><link>http://manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/comment-page-1/#comment-14635</link> <dc:creator>Luis</dc:creator> <pubDate>Thu, 03 Feb 2011 03:21:30 +0000</pubDate> <guid isPermaLink="false">http://manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/#comment-14635</guid> <description>Any idea what could be causing when you edit a post and hit update the post is automatically accepted? </description> <content:encoded><![CDATA[<p>Any idea what could be causing when you edit a post and hit update the post is automatically accepted?</p> ]]></content:encoded> </item> <item><title>By: Tony</title><link>http://manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/comment-page-1/#comment-8786</link> <dc:creator>Tony</dc:creator> <pubDate>Thu, 31 Dec 2009 08:52:56 +0000</pubDate> <guid isPermaLink="false">http://manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/#comment-8786</guid> <description>I&#039;m still having parcel errors within my script, but you definitely helped me out. Thanks, again </description> <content:encoded><![CDATA[<p>I&#039;m still having parcel errors within my script, but you definitely helped me out. Thanks, again</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 41/51 queries in 0.045 seconds using disk: basic
Object Caching 494/514 objects using disk: basic

Served from: manchumahara.com @ 2012-05-22 19:56:55 -->
