<?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>Commenti a: KF Most Read Plugin</title>
	<atom:link href="http://www.kifulab.net/2009/kf-most-read-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kifulab.net/2009/kf-most-read-plugin/</link>
	<description>Wordpress, Facebook, e-commerce e opensource. Soluzioni professionali realizzate da kifulab.</description>
	<lastBuildDate>Mon, 22 Feb 2010 09:07:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Di: Fulippo</title>
		<link>http://www.kifulab.net/2009/kf-most-read-plugin/comment-page-1/#comment-239</link>
		<dc:creator>Fulippo</dc:creator>
		<pubDate>Mon, 22 Feb 2010 09:07:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.kifulab.net/?p=93#comment-239</guid>
		<description>@Jim: Those errors are not related to the plugin itself. The error in fact seems to be related to some kind of table corruption.

Try googling &quot;mysql errno: 130&quot; and you will find many solutions to you problem.

http://www.google.com/#hl=it&amp;q=mysql+errno%3A+130</description>
		<content:encoded><![CDATA[<p>@Jim: Those errors are not related to the plugin itself. The error in fact seems to be related to some kind of table corruption.</p>
<p>Try googling &#8220;mysql errno: 130&#8243; and you will find many solutions to you problem.</p>
<p><a href="http://www.google.com/#hl=it&amp;q=mysql+errno%3A+130" rel="nofollow">http://www.google.com/#hl=it&amp;q=mysql+errno%3A+130</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: jim</title>
		<link>http://www.kifulab.net/2009/kf-most-read-plugin/comment-page-1/#comment-238</link>
		<dc:creator>jim</dc:creator>
		<pubDate>Thu, 18 Feb 2010 02:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.kifulab.net/?p=93#comment-238</guid>
		<description>l&#039;alimentabile sta funzionando benissimo, ma non visualizza improvvisamente nulla, ma ci è codice in calce alla pagina. penso che la nostra base di dati siate stato corrotto, ma sappiate? avete veduto questo prima?
erors on page:
WordPress database error Can’t open file: ‘wp_kf_most_read.MYI’ (errno: 130) for query SELECT count(mr.post_ID) as totHits, p.ID, p.post_title from wp_posts p JOIN wp_kf_most_read mr on mr.post_ID = p.ID where mr.hit_ts &gt;= ‘1266373956′ GROUP BY mr.post_ID order by totHits desc, ID ASC LIMIT 5 made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, WP_Widget-&gt;display_callback, PHP_Code_Widget-&gt;widget, eval, kf_get_posts_by_hits WordPress database error Can’t open file: ‘wp_kf_most_read.MYI’ (errno: 130) for query SELECT count(mr.post_ID) as totHits, p.ID, p.post_title from wp_posts p JOIN wp_kf_most_read mr on mr.post_ID = p.ID where mr.hit_ts &gt;= ‘1265855556′ GROUP BY mr.post_ID order by totHits desc, ID ASC LIMIT 5 made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, WP_Widget-&gt;display_callback, PHP_Code_Widget-&gt;widget, eval, kf_get_posts_by_hits WordPress database error Can’t open file: ‘wp_kf_most_read.MYI’ (errno: 130) for query SELECT count(mr.post_ID) as totHits, p.ID, p.post_title from wp_posts p JOIN wp_kf_most_read mr on mr.post_ID = p.ID where mr.hit_ts &gt;= ‘1263868356′ GROUP BY mr.post_ID order by totHits desc, ID ASC LIMIT 5 made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, WP_Widget-&gt;display_callback, PHP_Code_Widget-&gt;widget, eval, kf_get_posts_by_hits</description>
		<content:encoded><![CDATA[<p>l&#8217;alimentabile sta funzionando benissimo, ma non visualizza improvvisamente nulla, ma ci è codice in calce alla pagina. penso che la nostra base di dati siate stato corrotto, ma sappiate? avete veduto questo prima?<br />
erors on page:<br />
WordPress database error Can’t open file: ‘wp_kf_most_read.MYI’ (errno: 130) for query SELECT count(mr.post_ID) as totHits, p.ID, p.post_title from wp_posts p JOIN wp_kf_most_read mr on mr.post_ID = p.ID where mr.hit_ts &gt;= ‘1266373956′ GROUP BY mr.post_ID order by totHits desc, ID ASC LIMIT 5 made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, WP_Widget-&gt;display_callback, PHP_Code_Widget-&gt;widget, eval, kf_get_posts_by_hits WordPress database error Can’t open file: ‘wp_kf_most_read.MYI’ (errno: 130) for query SELECT count(mr.post_ID) as totHits, p.ID, p.post_title from wp_posts p JOIN wp_kf_most_read mr on mr.post_ID = p.ID where mr.hit_ts &gt;= ‘1265855556′ GROUP BY mr.post_ID order by totHits desc, ID ASC LIMIT 5 made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, WP_Widget-&gt;display_callback, PHP_Code_Widget-&gt;widget, eval, kf_get_posts_by_hits WordPress database error Can’t open file: ‘wp_kf_most_read.MYI’ (errno: 130) for query SELECT count(mr.post_ID) as totHits, p.ID, p.post_title from wp_posts p JOIN wp_kf_most_read mr on mr.post_ID = p.ID where mr.hit_ts &gt;= ‘1263868356′ GROUP BY mr.post_ID order by totHits desc, ID ASC LIMIT 5 made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, WP_Widget-&gt;display_callback, PHP_Code_Widget-&gt;widget, eval, kf_get_posts_by_hits</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: jim</title>
		<link>http://www.kifulab.net/2009/kf-most-read-plugin/comment-page-1/#comment-237</link>
		<dc:creator>jim</dc:creator>
		<pubDate>Thu, 18 Feb 2010 02:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.kifulab.net/?p=93#comment-237</guid>
		<description>the plugin has been working fine, but suddenly it does not display anything, but there is code at the bottom of the page. i think our database was corrupted, but do you know? have you seen this before?

erors on page:
WordPress database error Can&#039;t open file: &#039;wp_kf_most_read.MYI&#039; (errno: 130) for query SELECT count(mr.post_ID) as totHits, p.ID, p.post_title from wp_posts p JOIN wp_kf_most_read mr on mr.post_ID = p.ID where mr.hit_ts &gt;= &#039;1266373956&#039; GROUP BY mr.post_ID order by totHits desc, ID ASC LIMIT 5 made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, WP_Widget-&gt;display_callback, PHP_Code_Widget-&gt;widget, eval, kf_get_posts_by_hits WordPress database error Can&#039;t open file: &#039;wp_kf_most_read.MYI&#039; (errno: 130) for query SELECT count(mr.post_ID) as totHits, p.ID, p.post_title from wp_posts p JOIN wp_kf_most_read mr on mr.post_ID = p.ID where mr.hit_ts &gt;= &#039;1265855556&#039; GROUP BY mr.post_ID order by totHits desc, ID ASC LIMIT 5 made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, WP_Widget-&gt;display_callback, PHP_Code_Widget-&gt;widget, eval, kf_get_posts_by_hits WordPress database error Can&#039;t open file: &#039;wp_kf_most_read.MYI&#039; (errno: 130) for query SELECT count(mr.post_ID) as totHits, p.ID, p.post_title from wp_posts p JOIN wp_kf_most_read mr on mr.post_ID = p.ID where mr.hit_ts &gt;= &#039;1263868356&#039; GROUP BY mr.post_ID order by totHits desc, ID ASC LIMIT 5 made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, WP_Widget-&gt;display_callback, PHP_Code_Widget-&gt;widget, eval, kf_get_posts_by_hits</description>
		<content:encoded><![CDATA[<p>the plugin has been working fine, but suddenly it does not display anything, but there is code at the bottom of the page. i think our database was corrupted, but do you know? have you seen this before?</p>
<p>erors on page:<br />
WordPress database error Can&#8217;t open file: &#8216;wp_kf_most_read.MYI&#8217; (errno: 130) for query SELECT count(mr.post_ID) as totHits, p.ID, p.post_title from wp_posts p JOIN wp_kf_most_read mr on mr.post_ID = p.ID where mr.hit_ts &gt;= &#8216;1266373956&#8242; GROUP BY mr.post_ID order by totHits desc, ID ASC LIMIT 5 made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, WP_Widget-&gt;display_callback, PHP_Code_Widget-&gt;widget, eval, kf_get_posts_by_hits WordPress database error Can&#8217;t open file: &#8216;wp_kf_most_read.MYI&#8217; (errno: 130) for query SELECT count(mr.post_ID) as totHits, p.ID, p.post_title from wp_posts p JOIN wp_kf_most_read mr on mr.post_ID = p.ID where mr.hit_ts &gt;= &#8216;1265855556&#8242; GROUP BY mr.post_ID order by totHits desc, ID ASC LIMIT 5 made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, WP_Widget-&gt;display_callback, PHP_Code_Widget-&gt;widget, eval, kf_get_posts_by_hits WordPress database error Can&#8217;t open file: &#8216;wp_kf_most_read.MYI&#8217; (errno: 130) for query SELECT count(mr.post_ID) as totHits, p.ID, p.post_title from wp_posts p JOIN wp_kf_most_read mr on mr.post_ID = p.ID where mr.hit_ts &gt;= &#8216;1263868356&#8242; GROUP BY mr.post_ID order by totHits desc, ID ASC LIMIT 5 made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, WP_Widget-&gt;display_callback, PHP_Code_Widget-&gt;widget, eval, kf_get_posts_by_hits</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Giraldi Maggio</title>
		<link>http://www.kifulab.net/2009/kf-most-read-plugin/comment-page-1/#comment-233</link>
		<dc:creator>Giraldi Maggio</dc:creator>
		<pubDate>Thu, 07 Jan 2010 08:15:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.kifulab.net/?p=93#comment-233</guid>
		<description>Thanks for the quick reply.

I think I was getting the session_start() error because I was testing it offline (locally)... Once I uploaded it, the problem disappeared.

However, the function doesn&#039;t seem to be getting any result. The output is always empty.

Am I missing something?

Cheers!</description>
		<content:encoded><![CDATA[<p>Thanks for the quick reply.</p>
<p>I think I was getting the session_start() error because I was testing it offline (locally)&#8230; Once I uploaded it, the problem disappeared.</p>
<p>However, the function doesn&#8217;t seem to be getting any result. The output is always empty.</p>
<p>Am I missing something?</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Giraldi Maggio</title>
		<link>http://www.kifulab.net/2009/kf-most-read-plugin/comment-page-1/#comment-232</link>
		<dc:creator>Giraldi Maggio</dc:creator>
		<pubDate>Thu, 07 Jan 2010 03:44:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.kifulab.net/?p=93#comment-232</guid>
		<description>I get this message right after installation:

session_start() [function.session-start]: open(..\..\php5\temp\sess_lnrg6r3s67782n4qd2bssgm477, O_RDWR) failed: No such file or directory (2) in ...\wp-content\plugins\kf-most-read\kf_most_read.php on line 29

Why is this?</description>
		<content:encoded><![CDATA[<p>I get this message right after installation:</p>
<p>session_start() [function.session-start]: open(..\..\php5\temp\sess_lnrg6r3s67782n4qd2bssgm477, O_RDWR) failed: No such file or directory (2) in &#8230;\wp-content\plugins\kf-most-read\kf_most_read.php on line 29</p>
<p>Why is this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: godaddy coupons</title>
		<link>http://www.kifulab.net/2009/kf-most-read-plugin/comment-page-1/#comment-130</link>
		<dc:creator>godaddy coupons</dc:creator>
		<pubDate>Sun, 04 Oct 2009 08:30:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.kifulab.net/?p=93#comment-130</guid>
		<description>Thanks for making this awesome plugin</description>
		<content:encoded><![CDATA[<p>Thanks for making this awesome plugin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: fulippo</title>
		<link>http://www.kifulab.net/2009/kf-most-read-plugin/comment-page-1/#comment-52</link>
		<dc:creator>fulippo</dc:creator>
		<pubDate>Mon, 27 Jul 2009 13:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.kifulab.net/?p=93#comment-52</guid>
		<description>@Marco: sinceramente non capisco come questa riga di codice possa funzionare. Potresti essere più preciso o postare un esempio più corposo?
Prima usi $post ($post[&#039;Title&#039;]) e poi $p ($p-&gt;totHits). Perchè?</description>
		<content:encoded><![CDATA[<p>@Marco: sinceramente non capisco come questa riga di codice possa funzionare. Potresti essere più preciso o postare un esempio più corposo?<br />
Prima usi $post ($post['Title']) e poi $p ($p-&gt;totHits). Perchè?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Marco</title>
		<link>http://www.kifulab.net/2009/kf-most-read-plugin/comment-page-1/#comment-51</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Mon, 27 Jul 2009 12:10:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.kifulab.net/?p=93#comment-51</guid>
		<description>Per vedere il punteggio associato al post basta cambiare la funzione kf_get_posts_by_hits con il seguente echo da sostituire a quello di default (If you wont to view the score you can change the function kf_get_posts_by_hits whith):

echo &#039;&lt;a href=&quot;&#039;.get_permalink($post[&#039;ID&#039;]).&#039;&quot; title=&quot;&#039;.$post[&#039;Title&#039;].&#039;&quot; rel=&quot;nofollow&quot;&gt;&#039;.$post[&#039;Title&#039;].&#039;&lt;/a&gt; (&#039;.$p-&gt;totHits.&#039;)&#039;.chr(13);</description>
		<content:encoded><![CDATA[<p>Per vedere il punteggio associato al post basta cambiare la funzione kf_get_posts_by_hits con il seguente echo da sostituire a quello di default (If you wont to view the score you can change the function kf_get_posts_by_hits whith):</p>
<p>echo &#8216;<a href="'.get_permalink($post['ID']).'" title="'.$post['Title'].'" rel="nofollow">&#8216;.$post['Title'].&#8217;</a> (&#8216;.$p-&gt;totHits.&#8217;)&#8217;.chr(13);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Mustardamus</title>
		<link>http://www.kifulab.net/2009/kf-most-read-plugin/comment-page-1/#comment-50</link>
		<dc:creator>Mustardamus</dc:creator>
		<pubDate>Fri, 05 Jun 2009 21:11:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.kifulab.net/?p=93#comment-50</guid>
		<description>Hey,
great slim plugin, fits perfect in my latest project. Anyway, it only worked because I applied a fix.

In the function &quot;kf_register_post_hits&quot; you referred to the variable &quot;$post_id&quot; without ever setting it. A simple &quot;$post_id = $post-&gt;ID&quot; (line 5 of the pasted code) will do it:

	function kf_register_post_hits(&amp;$the_content){
		global $post, $wpdb;
		if(($post-&gt;post_status == &#039;publish&#039;) &amp;&amp; (int)$post-&gt;ID){
			if(!empty($_SESSION)){
			  $post_id = $post-&gt;ID;
				if(is_single() &amp;&amp; !in_array($post_id, $_SESSION[&#039;kf_session_manager&#039;][&#039;kf_most_read&#039;][&#039;posts&#039;])){
					$_SESSION[&#039;kf_session_manager&#039;][&#039;kf_most_read&#039;][&#039;posts&#039;][] = $post_id;
					$sql= &quot;INSERT INTO {$wpdb-&gt;prefix}kf_most_read(post_ID, hit_ts) values(&#039;$post_id&#039;,&quot;.time().&quot;);\n&quot;;
					$wpdb-&gt;query($sql);
				}
			}
			else{
				$_SESSION[&#039;kf_session_manager&#039;][&#039;kf_most_read&#039;][&#039;posts&#039;] = array();
			}
		}
		return $the_content;
	}

I hope you will fix it in future releases.

Thanks,
Basti</description>
		<content:encoded><![CDATA[<p>Hey,<br />
great slim plugin, fits perfect in my latest project. Anyway, it only worked because I applied a fix.</p>
<p>In the function &#8220;kf_register_post_hits&#8221; you referred to the variable &#8220;$post_id&#8221; without ever setting it. A simple &#8220;$post_id = $post-&gt;ID&#8221; (line 5 of the pasted code) will do it:</p>
<p>	function kf_register_post_hits(&amp;$the_content){<br />
		global $post, $wpdb;<br />
		if(($post-&gt;post_status == &#8216;publish&#8217;) &amp;&amp; (int)$post-&gt;ID){<br />
			if(!empty($_SESSION)){<br />
			  $post_id = $post-&gt;ID;<br />
				if(is_single() &amp;&amp; !in_array($post_id, $_SESSION['kf_session_manager']['kf_most_read']['posts'])){<br />
					$_SESSION['kf_session_manager']['kf_most_read']['posts'][] = $post_id;<br />
					$sql= &#8220;INSERT INTO {$wpdb-&gt;prefix}kf_most_read(post_ID, hit_ts) values(&#8216;$post_id&#8217;,&#8221;.time().&#8221;);\n&#8221;;<br />
					$wpdb-&gt;query($sql);<br />
				}<br />
			}<br />
			else{<br />
				$_SESSION['kf_session_manager']['kf_most_read']['posts'] = array();<br />
			}<br />
		}<br />
		return $the_content;<br />
	}</p>
<p>I hope you will fix it in future releases.</p>
<p>Thanks,<br />
Basti</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: fulippo</title>
		<link>http://www.kifulab.net/2009/kf-most-read-plugin/comment-page-1/#comment-48</link>
		<dc:creator>fulippo</dc:creator>
		<pubDate>Mon, 13 Apr 2009 20:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.kifulab.net/?p=93#comment-48</guid>
		<description>Hi Arif,

thanks for your advice. We are planning to release a new version of the plugin as soon as possible. We will include a widget and make some general improvements including a dynamic table name for the sql that creates the table.</description>
		<content:encoded><![CDATA[<p>Hi Arif,</p>
<p>thanks for your advice. We are planning to release a new version of the plugin as soon as possible. We will include a widget and make some general improvements including a dynamic table name for the sql that creates the table.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
