<?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"
	>
<channel>
	<title>Comments on: Script Idea: Comment rating system</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/</link>
	<description></description>
	<pubDate>Fri, 05 Dec 2008 02:31:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: The Universal Church of Cosmic Uncertainty</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11186</link>
		<dc:creator>The Universal Church of Cosmic Uncertainty</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11186</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Comments in MT RSS feeds&lt;/strong&gt;
No no, don't worry. I'm not going to do it. But it came up in the comment stream over on Scripty Goddess and I'm not sure how to do it. I was going to go to Venomous Kate since she does that. But when I looked I realized she's not using MT. How 'bout J...
</description>
		<content:encoded><![CDATA[<trackback /><strong>Comments in MT RSS feeds</strong><br />
No no, don&#039;t worry. I&#039;m not going to do it. But it came up in the comment stream over on Scripty Goddess and I&#039;m not sure how to do it. I was going to go to Venomous Kate since she does that. But when I looked I realized she&#039;s not using MT. How &#039;bout J&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julik</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11185</link>
		<dc:creator>Julik</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11185</guid>
		<description>You can simply substitute the MT system of displaying comments with yours, which will make an SQL query for all the comments on every post page, and a JavaScript which will call a script to change comment rating (it will be called only when the rating is assigned). The query will call the MT comments table.
As long as you keep one SQL query for all the comments at once the overhead on the database will not be that high (every SQL request requires opening a socket and authenticating into the DB, which is essentially the biggest bottleneck).
Then in a loop where you show the comments you can make a switch in PHP for checking every comment's rating and update the styles accordingly.
The variant 2 is to have a script call in your MT template, which will add ratings to MT comments when the rebuilt document is loaded - this way you can still show the comments without ratings if your database is down (or the socket is clogged)</description>
		<content:encoded><![CDATA[<p>You can simply substitute the MT system of displaying comments with yours, which will make an SQL query for all the comments on every post page, and a JavaScript which will call a script to change comment rating (it will be called only when the rating is assigned). The query will call the MT comments table.<br />
As long as you keep one SQL query for all the comments at once the overhead on the database will not be that high (every SQL request requires opening a socket and authenticating into the DB, which is essentially the biggest bottleneck).<br />
Then in a loop where you show the comments you can make a switch in PHP for checking every comment&#039;s rating and update the styles accordingly.<br />
The variant 2 is to have a script call in your MT template, which will add ratings to MT comments when the rebuilt document is loaded - this way you can still show the comments without ratings if your database is down (or the socket is clogged)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11182</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11182</guid>
		<description>Yeah - I'm thinking that if I get impatient, I may just make a "mini" version of this script that is simply a "flag" the blog owner can turn on to highlight a comment... A little more "time intesive" for the blog owner, but personally I wouldn't mind doing it. I don't see this as a wildly popular script - probably the best use is a blog like this one.</description>
		<content:encoded><![CDATA[<p>Yeah - I&#039;m thinking that if I get impatient, I may just make a &#034;mini&#034; version of this script that is simply a &#034;flag&#034; the blog owner can turn on to highlight a comment&#8230; A little more &#034;time intesive&#034; for the blog owner, but personally I wouldn&#039;t mind doing it. I don&#039;t see this as a wildly popular script - probably the best use is a blog like this one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mad William Flint</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11183</link>
		<dc:creator>Mad William Flint</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11183</guid>
		<description>Hmm...  I'm not sure how the back-end works with flagging updates, especially within comments.  MT already behaves nicely when a post itself is updated. (bloglines.com does a great job with this.)

The comment stream over at UCCU isn't interesting enough to put in the rss feed, so I never pursued it much.  

HOWEVER, Venomous Kate does exactly what I'm thinking of (what, like the idea was MINE?  Pff ;-P)  I'll go ask her &#038; report back.</description>
		<content:encoded><![CDATA[<p>Hmm&#8230;  I&#039;m not sure how the back-end works with flagging updates, especially within comments.  MT already behaves nicely when a post itself is updated. (bloglines.com does a great job with this.)</p>
<p>The comment stream over at UCCU isn&#039;t interesting enough to put in the rss feed, so I never pursued it much.  </p>
<p>HOWEVER, Venomous Kate does exactly what I&#039;m thinking of (what, like the idea was MINE?  Pff ;-P)  I&#039;ll go ask her &#038; report back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark J</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11184</link>
		<dc:creator>Mark J</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11184</guid>
		<description>The problem you brought up, Jenn, about having the DB checked for each comment, might be solved this way: for each entry, one database call is made... something along the lines of &lt;blockquote&gt;"SELECT comment_id FROM mt_comment WHERE comment_highlighted = 1 AND comment_entry_id='$this_entry_id'"&lt;/blockquote&gt;

This would return the comment_ids of all "highlighted" comments as an array.  Then with each comment you could just do a simple php conditional... that checks to see if the comment currently being processed exists in the returned array.

That way there would just be one database call... and I don't think the simple check of the array for each comment will adversely affect the displaying of the page.

Think that would help?

This could also work for a rating system with numbers... not just the mini system.&lt;blockquote&gt;"SELECT comment_id, comment_rating FROM mt_comment WHERE comment_rating &gt; 0 AND comment_entry_id='$this_entry_id'"&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>The problem you brought up, Jenn, about having the DB checked for each comment, might be solved this way: for each entry, one database call is made&#8230; something along the lines of<br />
<blockquote>&#034;SELECT comment_id FROM mt_comment WHERE comment_highlighted = 1 AND comment_entry_id=&#039;$this_entry_id&#039;&#034;</p></blockquote>
<p>This would return the comment_ids of all &#034;highlighted&#034; comments as an array.  Then with each comment you could just do a simple php conditional&#8230; that checks to see if the comment currently being processed exists in the returned array.</p>
<p>That way there would just be one database call&#8230; and I don&#039;t think the simple check of the array for each comment will adversely affect the displaying of the page.</p>
<p>Think that would help?</p>
<p>This could also work for a rating system with numbers&#8230; not just the mini system.<br />
<blockquote>&#034;SELECT comment_id, comment_rating FROM mt_comment WHERE comment_rating > 0 AND comment_entry_id=&#039;$this_entry_id&#039;&#034;</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyme</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11181</link>
		<dc:creator>Tyme</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11181</guid>
		<description>I think it's an excellent idea. It's something that has been on forums for quite some time so I think if it is codely properly it will not be resource intensive or a bandwidth hog. Perhaps looking at the code of scripts (open source) who already have this function can give you some ideas on how to incorporate it into MT efficiently? 

The thing to be cautious of is abuse - for example making sure that people can only vote once, etc.</description>
		<content:encoded><![CDATA[<p>I think it&#039;s an excellent idea. It&#039;s something that has been on forums for quite some time so I think if it is codely properly it will not be resource intensive or a bandwidth hog. Perhaps looking at the code of scripts (open source) who already have this function can give you some ideas on how to incorporate it into MT efficiently? </p>
<p>The thing to be cautious of is abuse - for example making sure that people can only vote once, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chasmyn</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11179</link>
		<dc:creator>Chasmyn</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11179</guid>
		<description>I just want to say publicly that Jennifer, you really are a goddess. You helped me so much! You are awesome. I bow to your coding skills. One day with much practice I will have a clue as to what I am doing, and I will owe it all you you!</description>
		<content:encoded><![CDATA[<p>I just want to say publicly that Jennifer, you really are a goddess. You helped me so much! You are awesome. I bow to your coding skills. One day with much practice I will have a clue as to what I am doing, and I will owe it all you you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11180</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11180</guid>
		<description>Mad William - That I can do - but one question, I have a template that has the simple feed for posts and comments, but what do you mean by ""updates" being flagged when comments are added" - is that a different RSS template? I've only copied and pasted what others have done... if there's a template you would like me to use - point the way, and I'll implement it.</description>
		<content:encoded><![CDATA[<p>Mad William - That I can do - but one question, I have a template that has the simple feed for posts and comments, but what do you mean by &#034;&#034;updates&#034; being flagged when comments are added&#034; - is that a different RSS template? I&#039;ve only copied and pasted what others have done&#8230; if there&#039;s a template you would like me to use - point the way, and I&#039;ll implement it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mad William Flint</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11178</link>
		<dc:creator>Mad William Flint</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11178</guid>
		<description>What would be extremely valuable is if you would make comments available in the rss feed itself, with page "updates" being flagged when comments are added.  That way we could follow the discussions from our aggregators.</description>
		<content:encoded><![CDATA[<p>What would be extremely valuable is if you would make comments available in the rss feed itself, with page &#034;updates&#034; being flagged when comments are added.  That way we could follow the discussions from our aggregators.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: grave digger</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11177</link>
		<dc:creator>grave digger</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comment-11177</guid>
		<description>It is kind of a responsability to post a comment here, but all I want to say is that I enjoy your work a lot. Keep up!</description>
		<content:encoded><![CDATA[<p>It is kind of a responsability to post a comment here, but all I want to say is that I enjoy your work a lot. Keep up!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.325 seconds -->
