<?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: Popularity Contest Hacked</title>
	<atom:link href="http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/</link>
	<description>A journal of geekery, music and joy</description>
	<lastBuildDate>Sat, 13 Mar 2010 03:59:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Popularity Contest 1.4 Wordpress 2.6 Plugin Fixed and Hacked &#124; ...::: Guatewireless.org ::::..</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-58675</link>
		<dc:creator>Popularity Contest 1.4 Wordpress 2.6 Plugin Fixed and Hacked &#124; ...::: Guatewireless.org ::::..</dc:creator>
		<pubDate>Wed, 24 Sep 2008 21:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-58675</guid>
		<description>[...] akpc_most_popular_in_last_month() hack to show the most popular post from the las 30 [...]</description>
		<content:encoded><![CDATA[<p>[...] akpc_most_popular_in_last_month() hack to show the most popular post from the las 30 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: El blog de Gabriel &#187; Popularity Contest para wordpress 2.6.2</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-58661</link>
		<dc:creator>El blog de Gabriel &#187; Popularity Contest para wordpress 2.6.2</dc:creator>
		<pubDate>Sat, 20 Sep 2008 08:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-58661</guid>
		<description>[...] También he añadido una mejora con el listado de los más populares del último mes [...]</description>
		<content:encoded><![CDATA[<p>[...] También he añadido una mejora con el listado de los más populares del último mes [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Popular Posts Are BACK! &#124; Going to Seminary</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-58613</link>
		<dc:creator>Popular Posts Are BACK! &#124; Going to Seminary</dc:creator>
		<pubDate>Tue, 02 Sep 2008 01:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-58613</guid>
		<description>[...] posts from the last 30 days.  For those interested in knowing what I did&#8230; well, I use this hack to get this plugin to query only the last 30 days, then I follow the instruciton here to get it to [...]</description>
		<content:encoded><![CDATA[<p>[...] posts from the last 30 days.  For those interested in knowing what I did&#8230; well, I use this hack to get this plugin to query only the last 30 days, then I follow the instruciton here to get it to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-58406</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Wed, 02 Jul 2008 23:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-58406</guid>
		<description>Vince, I fixed the downloading problem and you can get it again. Thanks for pointing out the problem.</description>
		<content:encoded><![CDATA[<p>Vince, I fixed the downloading problem and you can get it again. Thanks for pointing out the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-58396</link>
		<dc:creator>Vince</dc:creator>
		<pubDate>Sun, 29 Jun 2008 21:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-58396</guid>
		<description>Just tried it on my website, http://offmanhattan.com

Your zip file isn&#039;t downloading so i had to go from what you had in the comments and it failed.

Any way you could get the zip file up again please?

Thanks!</description>
		<content:encoded><![CDATA[<p>Just tried it on my website, <a href="http://offmanhattan.com" rel="nofollow">http://offmanhattan.com</a></p>
<p>Your zip file isn&#8217;t downloading so i had to go from what you had in the comments and it failed.</p>
<p>Any way you could get the zip file up again please?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: snowcrash</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-50314</link>
		<dc:creator>snowcrash</dc:creator>
		<pubDate>Thu, 28 Feb 2008 15:05:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-50314</guid>
		<description>Hi

Will your hack work for WP 2.3.3?
As the original plugin has been upadated on Alex King&#039;s page

thanks</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Will your hack work for WP 2.3.3?<br />
As the original plugin has been upadated on Alex King&#8217;s page</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash Haque</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-49264</link>
		<dc:creator>Ash Haque</dc:creator>
		<pubDate>Fri, 28 Dec 2007 21:18:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-49264</guid>
		<description>Exactly what I&#039;ve been looking for! Big thanks</description>
		<content:encoded><![CDATA[<p>Exactly what I&#8217;ve been looking for! Big thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-45655</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Sun, 02 Sep 2007 15:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-45655</guid>
		<description>Big dummy that I am, I can&#039;t figure out what the proper code for this hack actually is. Is there a version with no styling available somewhere?</description>
		<content:encoded><![CDATA[<p>Big dummy that I am, I can&#8217;t figure out what the proper code for this hack actually is. Is there a version with no styling available somewhere?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maski</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-45370</link>
		<dc:creator>Maski</dc:creator>
		<pubDate>Wed, 22 Aug 2007 05:18:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-45370</guid>
		<description>After a little code fighting i finally got it working... thanks</description>
		<content:encoded><![CDATA[<p>After a little code fighting i finally got it working&#8230; thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ales</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-44637</link>
		<dc:creator>ales</dc:creator>
		<pubDate>Tue, 24 Jul 2007 10:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-44637</guid>
		<description>duh.. ok, probably change query from (SUBDATE(CURDATE(), INTERVAL &#039;30&#039; DAY)) to (SUBDATE(CURDATE(), INTERVAL &#039;7&#039; DAY))</description>
		<content:encoded><![CDATA[<p>duh.. ok, probably change query from (SUBDATE(CURDATE(), INTERVAL &#8216;30&#8242; DAY)) to (SUBDATE(CURDATE(), INTERVAL &#8216;7&#8242; DAY))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ales</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-44636</link>
		<dc:creator>ales</dc:creator>
		<pubDate>Tue, 24 Jul 2007 10:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-44636</guid>
		<description>ok, now how would I do this for 7 days instead of 30.</description>
		<content:encoded><![CDATA[<p>ok, now how would I do this for 7 days instead of 30.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-44225</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Tue, 10 Jul 2007 01:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-44225</guid>
		<description>buzzdroid, 
You can&#039;t do that with the plugin as it exists. It doesn&#039;t keep individual hit information, just totals so the information you want to use isn&#039;t there.</description>
		<content:encoded><![CDATA[<p>buzzdroid,<br />
You can&#8217;t do that with the plugin as it exists. It doesn&#8217;t keep individual hit information, just totals so the information you want to use isn&#8217;t there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: buzzdroid</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-44148</link>
		<dc:creator>buzzdroid</dc:creator>
		<pubDate>Sun, 08 Jul 2007 01:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-44148</guid>
		<description>Interestingly, we implemented your hack thinking this would show the post popularity &lt;em&gt;according&lt;/em&gt; to the last 30 days (or 7 days, 10 days or whatever you choose to use as the interval). That is not what the hack does. This hack acts as a filter of sorts on what posts are shown in the list - the hack shows the popularity of the posts with a post date within the time period chosen.

This might be confusing to some people who try to implement the hack. The hack works great to filter the post in the list and show only posts from the time period, but it does not show all posts according to their popularity figures accumulated during the time period.

If you can do that, that would be kick ass.</description>
		<content:encoded><![CDATA[<p>Interestingly, we implemented your hack thinking this would show the post popularity <em>according</em> to the last 30 days (or 7 days, 10 days or whatever you choose to use as the interval). That is not what the hack does. This hack acts as a filter of sorts on what posts are shown in the list &#8211; the hack shows the popularity of the posts with a post date within the time period chosen.</p>
<p>This might be confusing to some people who try to implement the hack. The hack works great to filter the post in the list and show only posts from the time period, but it does not show all posts according to their popularity figures accumulated during the time period.</p>
<p>If you can do that, that would be kick ass.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress Wednesday News: WordCamp Filling Up Fast, WordPress 2.2.1 Mandatory Upgrade, Hot WordPress Themes and Plugins, WordPress Security, and WordPress Nerds Blog Naked : The Blog Herald</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-43976</link>
		<dc:creator>WordPress Wednesday News: WordCamp Filling Up Fast, WordPress 2.2.1 Mandatory Upgrade, Hot WordPress Themes and Plugins, WordPress Security, and WordPress Nerds Blog Naked : The Blog Herald</dc:creator>
		<pubDate>Thu, 05 Jul 2007 00:36:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-43976</guid>
		<description>[...] Popularity Contest WordPress Plugin Hacked to Feature Most Popular in 30 Days: Evil Genius Chronicles offers a hacked version of Alex Kingâ€™s Popularity Contest Wordpress Plugin. The original Plugin lists the most popular posts on your blog. The hack changes the number to the most popular posts within the last 30 days. Iâ€™d love to see one that mixed this in with some algorithm that also included your overall most popular posts, mixing things up and giving your readers more variety to choose from. [...]</description>
		<content:encoded><![CDATA[<p>[...] Popularity Contest WordPress Plugin Hacked to Feature Most Popular in 30 Days: Evil Genius Chronicles offers a hacked version of Alex Kingâ€™s Popularity Contest Wordpress Plugin. The original Plugin lists the most popular posts on your blog. The hack changes the number to the most popular posts within the last 30 days. Iâ€™d love to see one that mixed this in with some algorithm that also included your overall most popular posts, mixing things up and giving your readers more variety to choose from. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-41966</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Tue, 13 Mar 2007 03:36:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-41966</guid>
		<description>Add these to your popularity-contest.php

Right before the end of the class, put this:
&lt;code /&gt;

function show_top_ranked_in_last_month($limit, $before, $after) {
global $wpdb;
$temp = $wpdb;

$join = apply_filters(&#039;posts_join&#039;, &#039;&#039;);
$where = apply_filters(&#039;posts_where&#039;, &#039;&#039;);
$groupby = apply_filters(&#039;posts_groupby&#039;, &#039;&#039;);
if (!empty($groupby)) { $groupby = &#039; GROUP BY &#039;.$groupby; }

$posts = $wpdb-&gt;get_results(&quot;
SELECT ID, post_title
FROM $wpdb-&gt;posts
LEFT JOIN $wpdb-&gt;ak_popularity pop
ON $wpdb-&gt;posts.ID = pop.post_id
$join
WHERE post_date &gt; (SUBDATE(CURDATE(), INTERVAL &#039;30&#039; DAY))
AND post_status = &#039;publish&#039;
AND post_date &lt; NOW()
$where
$groupby
ORDER BY pop.total DESC
LIMIT &quot;.intval($limit)
);
if ($posts) {
foreach ($posts as $post) {
print(
$before.&#039;&lt;a href=&quot;http://www.evilgeniuschronicles.org/wordpress/&#039;.get_permalink($post- rel=&quot;nofollow&quot;&gt;ID).&#039;&quot;&gt;&#039;
.$post-&gt;post_title.&#039;&#039;.$after
);
}
}
else {
print($before.&#039;(none)&#039;.$after);
}
$wpdb = $temp;
}
&lt;a href=&quot;http://www.evilgeniuschronicles.org/wordpress/&#039;.get_permalink($post-%20rel=&quot; rel=&quot;nofollow&quot;&gt;Somewhere towards the bottom with the similar functions, add this:&lt;/a&gt;

&lt;code&gt;&lt;a href=&quot;http://www.evilgeniuschronicles.org/wordpress/&#039;.get_permalink($post-%20rel=&quot; rel=&quot;nofollow&quot;&gt;
function akpc_most_popular_in_last_month($limit = 10, $before = &#039; &lt;/a&gt;&lt;/code&gt;
	&lt;li&gt;&lt;a href=&quot;http://www.evilgeniuschronicles.org/wordpress/&#039;.get_permalink($post-%20rel=&quot; rel=&quot;nofollow&quot;&gt;&#039;, $after = &#039;&lt;/a&gt;&lt;/li&gt;
&lt;a href=&quot;http://www.evilgeniuschronicles.org/wordpress/&#039;.get_permalink($post-%20rel=&quot; rel=&quot;nofollow&quot;&gt;&#039;) {
global $akpc;
$akpc-&gt;show_top_ranked_in_last_month($limit, $before, $after);
}
&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Add these to your popularity-contest.php</p>
<p>Right before the end of the class, put this:<br />
<code /></p>
<p>function show_top_ranked_in_last_month($limit, $before, $after) {<br />
global $wpdb;<br />
$temp = $wpdb;</p>
<p>$join = apply_filters('posts_join', '');<br />
$where = apply_filters('posts_where', '');<br />
$groupby = apply_filters('posts_groupby', '');<br />
if (!empty($groupby)) { $groupby = ' GROUP BY '.$groupby; }</p>
<p>$posts = $wpdb->get_results("<br />
SELECT ID, post_title<br />
FROM $wpdb->posts<br />
LEFT JOIN $wpdb->ak_popularity pop<br />
ON $wpdb->posts.ID = pop.post_id<br />
$join<br />
WHERE post_date > (SUBDATE(CURDATE(), INTERVAL '30' DAY))<br />
AND post_status = 'publish'<br />
AND post_date < NOW()<br />
$where<br />
$groupby<br />
ORDER BY pop.total DESC<br />
LIMIT ".intval($limit)<br />
);<br />
if ($posts) {<br />
foreach ($posts as $post) {<br />
print(<br />
$before.'<a href="http://www.evilgeniuschronicles.org/wordpress/'.get_permalink($post- rel="nofollow">ID).'">'<br />
.$post->post_title.''.$after<br />
);<br />
}<br />
}<br />
else {<br />
print($before.'(none)'.$after);<br />
}<br />
$wpdb = $temp;<br />
}<br />
<a href="http://www.evilgeniuschronicles.org/wordpress/'.get_permalink($post-%20rel=" rel="nofollow">Somewhere towards the bottom with the similar functions, add this:</a></p>
<p><code><a href="http://www.evilgeniuschronicles.org/wordpress/'.get_permalink($post-%20rel=" rel="nofollow"><br />
function akpc_most_popular_in_last_month($limit = 10, $before = ' </a></code></p>
<li><a href="http://www.evilgeniuschronicles.org/wordpress/'.get_permalink($post-%20rel=" rel="nofollow">', $after = '</a></li>
<p><a href="http://www.evilgeniuschronicles.org/wordpress/'.get_permalink($post-%20rel=" rel="nofollow">') {<br />
global $akpc;<br />
$akpc->show_top_ranked_in_last_month($limit, $before, $after);<br />
}<br />
</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo Maia</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-41965</link>
		<dc:creator>Leo Maia</dc:creator>
		<pubDate>Tue, 13 Mar 2007 03:18:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-41965</guid>
		<description>Please tell me: how did you do it?

I&#039;ve been trying to the exact same thing for me. I can&#039;t stand seeing my top post for the last 3 months every single day.

Thank you in advance!</description>
		<content:encoded><![CDATA[<p>Please tell me: how did you do it?</p>
<p>I&#8217;ve been trying to the exact same thing for me. I can&#8217;t stand seeing my top post for the last 3 months every single day.</p>
<p>Thank you in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tiltededge</title>
		<link>http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/comment-page-1/#comment-41488</link>
		<dc:creator>tiltededge</dc:creator>
		<pubDate>Sat, 03 Mar 2007 16:54:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.evilgeniuschronicles.org/wordpress/2007/03/01/popularity-contest-hacked/#comment-41488</guid>
		<description>I predict the next most popular thread will be on talking urinal cakes.</description>
		<content:encoded><![CDATA[<p>I predict the next most popular thread will be on talking urinal cakes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
