<?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: Ajax Star Rating</title>
	<atom:link href="http://boedesign.com/blog/2007/02/18/ajax-star-rating/feed/" rel="self" type="application/rss+xml" />
	<link>http://boedesign.com/blog/2007/02/18/ajax-star-rating/</link>
	<description>The dabbling of various web technologies by Jordan Boesch</description>
	<lastBuildDate>Sun, 29 Aug 2010 21:34:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: ShortcutGuide Blog &#187; Blog Archive &#187; Keyboard Shortcuts Star Rating Feature</title>
		<link>http://boedesign.com/blog/2007/02/18/ajax-star-rating/#comment-162</link>
		<dc:creator>ShortcutGuide Blog &#187; Blog Archive &#187; Keyboard Shortcuts Star Rating Feature</dc:creator>
		<pubDate>Mon, 07 Jul 2008 05:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://boedesign.com/index/ajax-star-rating/#comment-162</guid>
		<description>[...] all of the features I was looking for. The best rating system I found was written byJordan Boesch, AJAX star rating. This AJAX script is now fully implemented on all of ShortcutGuide. Sorting by ratings will be [...]</description>
		<content:encoded><![CDATA[<p>[...] all of the features I was looking for. The best rating system I found was written byJordan Boesch, AJAX star rating. This AJAX script is now fully implemented on all of ShortcutGuide. Sorting by ratings will be [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan Boesch</title>
		<link>http://boedesign.com/blog/2007/02/18/ajax-star-rating/#comment-145</link>
		<dc:creator>Jordan Boesch</dc:creator>
		<pubDate>Wed, 21 May 2008 22:59:59 +0000</pubDate>
		<guid isPermaLink="false">http://boedesign.com/index/ajax-star-rating/#comment-145</guid>
		<description>@Wayne: I would really have to see the contents of the page as to why it&#039;s not working. If you&#039;re typing in Rating and you have mod rewrite telling this to render as rating.php, I don&#039;t see why it won&#039;t work.</description>
		<content:encoded><![CDATA[<p>@Wayne: I would really have to see the contents of the page as to why it&#8217;s not working. If you&#8217;re typing in Rating and you have mod rewrite telling this to render as rating.php, I don&#8217;t see why it won&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan Boesch</title>
		<link>http://boedesign.com/blog/2007/02/18/ajax-star-rating/#comment-144</link>
		<dc:creator>Jordan Boesch</dc:creator>
		<pubDate>Wed, 21 May 2008 22:56:54 +0000</pubDate>
		<guid isPermaLink="false">http://boedesign.com/index/ajax-star-rating/#comment-144</guid>
		<description>@Sebastian: I re-wrote some parts of the SQL query on line 182 in rating_functions.php.  I added &lt;code&gt;SELECT COUNT(ratings.id) as rates&lt;/code&gt; and &lt;code&gt;ORDER BY rates DESC, rating DESC&lt;/code&gt;
So your query would look something like...
&lt;code&gt;
$sql = &quot;SELECT COUNT(ratings.id) as rates,rating_id as thenamefield,ROUND(AVG(rating_num),2) as rating
	FROM ratings GROUP BY rating_id
	ORDER BY rates DESC,rating DESC LIMIT &quot;.$limit.&quot;&quot;;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>@Sebastian: I re-wrote some parts of the SQL query on line 182 in rating_functions.php.  I added <code>SELECT COUNT(ratings.id) as rates</code> and <code>ORDER BY rates DESC, rating DESC</code><br />
So your query would look something like&#8230;<br />
<code><br />
$sql = "SELECT COUNT(ratings.id) as rates,rating_id as thenamefield,ROUND(AVG(rating_num),2) as rating<br />
	FROM ratings GROUP BY rating_id<br />
	ORDER BY rates DESC,rating DESC LIMIT ".$limit."";<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wayne</title>
		<link>http://boedesign.com/blog/2007/02/18/ajax-star-rating/#comment-143</link>
		<dc:creator>Wayne</dc:creator>
		<pubDate>Wed, 21 May 2008 13:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://boedesign.com/index/ajax-star-rating/#comment-143</guid>
		<description>Hi jordan nice script but unfortunately it wont work on my site (well it does but will explain)

If I add the rating to a page that uses SEO friendly links it wont work, but it will work on normal pages for example

www.mysite.com/rating.php work fine BUT

www.mysite.com/My-Link/Rating/ wont work, however they are exactly the same page only the second page uses mod rewrite htaccess file to create the SEO page link.

do you have any suggestions to get this working on these types of page.

any help would be much appriciated

regards

wayne</description>
		<content:encoded><![CDATA[<p>Hi jordan nice script but unfortunately it wont work on my site (well it does but will explain)</p>
<p>If I add the rating to a page that uses SEO friendly links it wont work, but it will work on normal pages for example</p>
<p><a href="http://www.mysite.com/rating.php" rel="nofollow">http://www.mysite.com/rating.php</a> work fine BUT</p>
<p><a href="http://www.mysite.com/My-Link/Rating/" rel="nofollow">http://www.mysite.com/My-Link/Rating/</a> wont work, however they are exactly the same page only the second page uses mod rewrite htaccess file to create the SEO page link.</p>
<p>do you have any suggestions to get this working on these types of page.</p>
<p>any help would be much appriciated</p>
<p>regards</p>
<p>wayne</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://boedesign.com/blog/2007/02/18/ajax-star-rating/#comment-142</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Wed, 21 May 2008 13:05:21 +0000</pubDate>
		<guid isPermaLink="false">http://boedesign.com/index/ajax-star-rating/#comment-142</guid>
		<description>okay i forgot to post :P
this code i currently use, ripped a few parts out
[code]
function getTopRated($limit){

	$result = &#039;&#039;;
	
	$sql = &quot;SELECT rating_id as thenamefield,ROUND(AVG(rating_num),2) as rating 
			FROM ratings GROUP BY rating_id 
			ORDER BY rating DESC LIMIT &quot;.$limit.&quot;&quot;;
			
	$sel = mysql_query($sql);
	
	$result .= &#039;&#039;.&quot;\n&quot;;
	
	while($data = @mysql_fetch_assoc($sel)){
		$result .= &#039;&#187; &#039;.$data[&#039;thenamefield&#039;].&#039; (&#039;.$data[&#039;rating&#039;].&#039;)&#039;.&quot;\n&quot;;
}

	$result .= &#039;&#039;.&quot;\n&quot;;
	
{
  $result = str_replace(&quot;_&quot;,&quot; &quot;,$result);
}

	return $result;
}
[/code]
i tried several things with the updated code but i dont get it to work</description>
		<content:encoded><![CDATA[<p>okay i forgot to post <img src='http://boedesign.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
this code i currently use, ripped a few parts out<br />
[code]<br />
function getTopRated($limit){</p>
<p>	$result = '';</p>
<p>	$sql = "SELECT rating_id as thenamefield,ROUND(AVG(rating_num),2) as rating<br />
			FROM ratings GROUP BY rating_id<br />
			ORDER BY rating DESC LIMIT ".$limit."";</p>
<p>	$sel = mysql_query($sql);</p>
<p>	$result .= ''."\n";</p>
<p>	while($data = @mysql_fetch_assoc($sel)){<br />
		$result .= '&raquo; '.$data['thenamefield'].' ('.$data['rating'].')'."\n";<br />
}</p>
<p>	$result .= ''."\n";</p>
<p>{<br />
  $result = str_replace("_"," ",$result);<br />
}</p>
<p>	return $result;<br />
}<br />
[/code]<br />
i tried several things with the updated code but i dont get it to work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://boedesign.com/blog/2007/02/18/ajax-star-rating/#comment-141</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Wed, 21 May 2008 12:17:10 +0000</pubDate>
		<guid isPermaLink="false">http://boedesign.com/index/ajax-star-rating/#comment-141</guid>
		<description>hey jordan, thx for the update.
In what file your corrected the order?
i cant simply replace everything because i have made changes to the script in order to work for me :(</description>
		<content:encoded><![CDATA[<p>hey jordan, thx for the update.<br />
In what file your corrected the order?<br />
i cant simply replace everything because i have made changes to the script in order to work for me <img src='http://boedesign.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan Boesch</title>
		<link>http://boedesign.com/blog/2007/02/18/ajax-star-rating/#comment-139</link>
		<dc:creator>Jordan Boesch</dc:creator>
		<pubDate>Sun, 11 May 2008 23:02:29 +0000</pubDate>
		<guid isPermaLink="false">http://boedesign.com/index/ajax-star-rating/#comment-139</guid>
		<description>@Sebastian:  I will fix this in the next version.
@Sam: I will try to figure out a work around for the spamming ratings... I am already checking IP and cookies, I&#039;m not sure what else to do to prevent itl.  Anyone have any ideas?</description>
		<content:encoded><![CDATA[<p>@Sebastian:  I will fix this in the next version.<br />
@Sam: I will try to figure out a work around for the spamming ratings&#8230; I am already checking IP and cookies, I&#8217;m not sure what else to do to prevent itl.  Anyone have any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://boedesign.com/blog/2007/02/18/ajax-star-rating/#comment-135</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Wed, 07 May 2008 00:56:54 +0000</pubDate>
		<guid isPermaLink="false">http://boedesign.com/index/ajax-star-rating/#comment-135</guid>
		<description>Hi Jordan,

Great script. Installed it, modified it slightly (our rating_id&#039;s are alpha-numeric... all I did was change the structure of the DB to varchar) and it works flawlessly.

The big problem is SPAM entries. I&#039;m seeing lots of sudden entries with IP&#039;s from Russia and all over the place with the same star rating (like 20 entries in a row with a star rating of say 2). Our site is pretty much US based, so I&#039;m sure these are random votes. Any ideas on how to stop that? The rating system is pretty worthless with these random votes. Anyone else experiencing this? I realize a Captcha would kill the Ajax effect.</description>
		<content:encoded><![CDATA[<p>Hi Jordan,</p>
<p>Great script. Installed it, modified it slightly (our rating_id&#8217;s are alpha-numeric&#8230; all I did was change the structure of the DB to varchar) and it works flawlessly.</p>
<p>The big problem is SPAM entries. I&#8217;m seeing lots of sudden entries with IP&#8217;s from Russia and all over the place with the same star rating (like 20 entries in a row with a star rating of say 2). Our site is pretty much US based, so I&#8217;m sure these are random votes. Any ideas on how to stop that? The rating system is pretty worthless with these random votes. Anyone else experiencing this? I realize a Captcha would kill the Ajax effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://boedesign.com/blog/2007/02/18/ajax-star-rating/#comment-134</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Sun, 04 May 2008 13:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://boedesign.com/index/ajax-star-rating/#comment-134</guid>
		<description>hi Jordan,
Script is running smoothly but 1 little bug i have found.
in the top 10
- if 20 items rated 5/5, the top 10 shows them but not in right order
- it should sort them by rating ofc, but also number of votes
like i have 10 items rated 5/5 1 time vote
a few others are rated 5/5 as well but got 3-4 votes, so they should stand in top 10 at the top, but they arent even in top 10.

i hope you know what i mean, and a quick fix would really be helpful, thanks</description>
		<content:encoded><![CDATA[<p>hi Jordan,<br />
Script is running smoothly but 1 little bug i have found.<br />
in the top 10<br />
- if 20 items rated 5/5, the top 10 shows them but not in right order<br />
- it should sort them by rating ofc, but also number of votes<br />
like i have 10 items rated 5/5 1 time vote<br />
a few others are rated 5/5 as well but got 3-4 votes, so they should stand in top 10 at the top, but they arent even in top 10.</p>
<p>i hope you know what i mean, and a quick fix would really be helpful, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NiaRadioNetwork</title>
		<link>http://boedesign.com/blog/2007/02/18/ajax-star-rating/#comment-129</link>
		<dc:creator>NiaRadioNetwork</dc:creator>
		<pubDate>Mon, 21 Apr 2008 19:57:54 +0000</pubDate>
		<guid isPermaLink="false">http://boedesign.com/index/ajax-star-rating/#comment-129</guid>
		<description>Hey, got it all worked out and it rocks! Now my listeners can rate songs when they request them or when they are logged into their Control Panel. Thanks!</description>
		<content:encoded><![CDATA[<p>Hey, got it all worked out and it rocks! Now my listeners can rate songs when they request them or when they are logged into their Control Panel. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
