﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>InstantASP Community Forums / Old Forums / InstantForum.NET 4.x / Bug Reports / Closed Issues  / Topic Ratings Problem? / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>InstantASP Community Forums</description><link>http://community.instantasp.co.uk/</link><webMaster>sales@instantasp.co.uk</webMaster><lastBuildDate>Fri, 09 Jan 2009 02:48:32 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Topic Ratings Problem?</title><link>http://community.instantasp.co.uk/Topic7712-45-1.aspx</link><description>[quote][b]DigiChaos (7/20/2005)[/b][hr]I am seeing a problem in the display of the Topic Rating stars. &lt;P&gt;I have many topics where there only two people have rated it. One user rates it 5, another user rates it 4. But on the topic list page it shows that the topic has 2 stars??&lt;/P&gt;&lt;P&gt;How does (5+4) / 2 = 2?  &lt;P&gt;I have reproduced this on this topic &lt;a target="_blank" href="http://support.instantasp.co.uk/Topic7696-17-1.aspx" target=_blank&gt;http://support.instantasp.co.uk/Topic7696-17-1.aspx&lt;/A&gt;. &lt;P&gt;The topic had 3 stars based on 1 vote. I voted 5, and now it shows 2 stars on the topic list.[/quote] &lt;P&gt;Hi Digi, &lt;P&gt;Many thanks. This has been identified as a bug and has now been resolved. The fix will be available with the next release candidate. If you wish to update now you will need to change the MAX aggregate select statement to a SUM aggregate for the TotalRatings variable within the if_sp_UpdateTopicRatingMeanNumber stored procedure. So it would read...&lt;/P&gt;&lt;P&gt;SET @intTotalRating =  (SELECT &lt;FONT style="BACKGROUND-COLOR: #ffff11"&gt;SUM&lt;/FONT&gt;(InstantForum_TopicRatings.TopicRating) FROM InstantForum_TopicRatings (nolock) WHERE (InstantForum_TopicRatings.TopicID = @intTopicID))&lt;/P&gt;&lt;P&gt;Well spotted ;)</description><pubDate>Thu, 21 Jul 2005 05:24:27 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>Topic Ratings Problem?</title><link>http://community.instantasp.co.uk/Topic7712-45-1.aspx</link><description>I am seeing a problem in the display of the Topic Rating stars.&lt;P&gt;I have many topics where there only two people have rated it. One user rates it 5, another user rates it 4. But on the topic list page it shows that the topic has 2 stars??&lt;/P&gt;&lt;P&gt;How does (5+4) / 2 = 2? &lt;P&gt;I have reproduced this on this topic &lt;a target="_blank" href="http://support.instantasp.co.uk/Topic7696-17-1.aspx" target=_blank&gt;http://support.instantasp.co.uk/Topic7696-17-1.aspx&lt;/A&gt;.&lt;P&gt;The topic had 3 stars based on 1 vote. I voted 5, and now it shows 2 stars on the topic list.</description><pubDate>Wed, 20 Jul 2005 08:25:37 GMT</pubDate><dc:creator>DigiChaos</dc:creator></item></channel></rss>