Comment Rating plugin: Todo list
Sep 9th, 2009 by BoB
Looking at the long list of comments, I know that Comment Rating has hit something that some of us are passionate about. I’m really glad this little plugin can be useful, in the Web 2.0 user generated content arena.
As always, the design principle of the plugin is to be simple, efficient and widely applicable. A little flexibility doesn’t hurt.
Many of you, Jean-Paul, Jim and Tricky in particular, had made excellent suggestions. However, many issues are rather complex and we need to think them through to design right. Here’s a list of features that I’m convinced to be necessary.
- Flexibility of showing, 2, or 1 Like/Dislike counters. Done
- Styling highly-rated comments. Done
- Styling poorly-rated comments. Done
- Styling controversial comments. Done
- Option to turn off built-in styling. Done
- Wording changes based on rating. Done
- Tracking cookie to prevent voting fraud
- Add functions to retrieve rating number for theme customization.
- Choice of icon/images. Done
- Option to turn off styling the whole comment box. To avoid messy styling of nested comments . Done
- Option to change mouseover effect. Done
- Localization. Done.
- Widget to display comments with ratings. Done (v. 2.9.0).
- Sort the best comments to the top, so that the typical viewer will certainly not read all 150 comments on a popular blog, and everyone will benefit from the community ranking if they can simply view the “cream of the crop” right away. Done in the Pro version
- Allow vote types of: positive only, negative only votes or both. Done.
- Voting by registered member/comment contributor only. Done in the Pro version
- Add voting images to comments of a certain post only, posts are identified by PostID or category.
- Add option to customize the ‘thumb up’ – ‘thumb down’ ALT and TITLE text. Done (v. 2.9.7)
- Allow customizing the CSS tags around the voting image/ratings. Done in the Pro version
- Display the best voted comment in post or except in front page. Done in the Comment Rating Widget Pro
- Shows percentages instead of numbers. Or the ability to exclude the numbers all together
- WP short code to display selected comments in anywhere in a page
Discussion Sept. 9, 2009.
Hiding the entire comment box of poorly-rated comment wouldn’t be wise. This is a freedom of speech issue, rather philosophical. If some comments are really out of line, the admin can always remove it. Allowing a majority of readers doing so means suppressing the minority. It’s not good building online communities.
Now regarding “Styling highly-rated comments”, I’m now convinced that (Likes – Dislikes) is a better indicator. Many suggested multi-level of styling. More flexibility, Great idea. So here’s my plan:
- Good: (Likes – Dislikes) >= A
- Great: (Likes – Dislikes) >= B
- Superb: (Likes – Dislikes) >= C
Styling and wording can be changed at different levels.
Now, I’m also thinking about the hotly-debated issues. Often time, the most controversial issue is the most interesting and draws the most attention. Here’s another grading system.
- Hot: (Likes + Dislikes) >= A
- Heated: (Likes + Dislikes) >= B
- Outrageous: (Likes + Dislikes) >= C
What do you think? Are 3 levels too much? Shall we use 2 instead? Please comment.
Update Sept. 25. 2009: I think 3 level of different styling on all 3 type of comments will make your blog comment section a colorful rainbow. This will no longer serve the purpose of highlighting the important or interesting comments. So I’ll leave it to one-level of style per type only.
Bob,
I thank you for putting a lot of effort on this plugin.
First, in my opinion, styling should be in site owners hands, they are responsible for the CSS, that makes your plugin more flexible. I think that adding styles via comment_class allows theme designers to highlight or dim the text using selectors.
I agree with the 3 levels, it could spice the debate.
Will this make the plugin take longer to load? (could be an issue for highly visited/commented blogs). At first i think it should´t as it just adds a small arithmetic operation. Am I right?
Well-loved. Like or Dislike:
22
3
[Reply]
Bob King
Reply:
September 9th, 2009 at 9:28 am
There’re always people who won’t touch CSS with a 5 feet pole. So, options in the plugin are necessary.
The plugin is very efficient. Besides, busy wp sites must use caching. There should be no concern on the loading time.
Hot debate. What do you think?
4
5
[Reply]
jim
Reply:
September 9th, 2009 at 12:12 pm
Bob, it’s just fantastic you are taking everyone’s considerations on board.
Tricky brings up the reason for allowing styling (comment class) for negative comments – it wasn’t so much for creating a large red highlight for negative comments, it was to created a faded comment container, avatar, $text, and all other elements using “style=”opacity:;filter:alpha(opacity=)”.
However, i do realize that users may have different elements in the container, which may mean the usage of this feature may become even more niche, so i didn’t want to suggest this is a default setting for you to hard code into the plugin, but if you allow the option to style negative comments, some users will find it easier to modify the code to add the negative comment_classes to these elements. Or you could attempt to create an option to switch on something like:
“opacity negative comments classes? Yes/no – warning, if you have additional elements in your comment container they will not fade”
Then You can make it so, when this option is on, it adds negative the negative comment_classes to:
“comment-author vcard”
“fn”
“comment-meta commentmetadata”
There might be others it needs to be added to, and obviously the actual rating plugin also needs to become faded, too.
Hot debate. What do you think?
6
5
[Reply]
Bob King
Reply:
September 9th, 2009 at 12:50 pm
Jim,
The opacity explanation makes great sense. Thanks
Like or Dislike:
1
3
[Reply]
Bob King
Reply:
September 9th, 2009 at 1:31 pm
Have a look at version 2.4.5 with opacity. This is a transitional version with cleanedup code and ready to add the Todo features.
Let me know your feedback.
Like or Dislike:
2
2
[Reply]
jim
Reply:
September 9th, 2009 at 3:26 pm
had a quick look. The new counting method solves all the issues it seems, which is great!
When you say 2.4.5 and opacity, do you mean you’ve added a negative comment class “ckrating_poorly_rated”? I haven’t had too much time to play with this yet, but i assume we’ll need this comment class on other elements too if we want to use opacity on the avatar, meta data, and so on?
Perhaps a neat solution is for one more comment class for negative that you can link to these additional elements (i think the elements are comment-author vcard, fn, and a few others) – a kinda hidden feature used ONLY for those who want to do custom styles to get opacity on everything.
Hope that makes sense.
Like or Dislike:
1
2
[Reply]
Bob King
Reply:
September 9th, 2009 at 4:39 pm
Apparently, if you define a class for the whole comment box, the opacity applies to every element, including avatar, text and images.
Like or Dislike:
0
0
jim
Reply:
September 9th, 2009 at 8:32 pm
ah, so it does, that makes it a lot simpler
This is now working very well, love it. You can see how it’s evolving on my page here: http://img9.imageshack.us/img9/1043/commentdev.gif
Looking forward to see what you implement next from your to-do list
Like or Dislike:
1
1
jim
Reply:
September 9th, 2009 at 12:17 pm
ps, # Wording changes based on rating
looking forward to this little added bonus, it’s these smaller things that will make this plugin so powerful and versatile
Like or Dislike:
2
1
[Reply]
this is looking good
Like or Dislike:
3
0
[Reply]
Regarding “hotly-debated issues” that you wrote about above. Will these options also allow styling and rewording? Add all these together and you’ve got one powerful web 2.0 tool for comments. I’m sure an active community will get a buzz out of all the ways comments can end up rated, and three is certainly a sweet spot and doesn’t seem overboard to me, in fact the outrageous one made me laugh, i can see Mac vs PC comments getting a lot of those
Like or Dislike:
0
0
[Reply]
Just a heads up:
should be:
or it won’t allow validation of as XHTML 1.1
Like or Dislike:
2
0
[Reply]
whoops, would not let me post that code:
basically, use quote tags round style type=”text/css” media=”screen”.
The screen part isn’t tagged so it won’t validate.
Like or Dislike:
0
0
[Reply]
Bob King
Reply:
September 12th, 2009 at 3:49 pm
Fixed in 2.4.6. Thanks.
Like or Dislike:
0
0
[Reply]
Wow, the last updates (my last version was 2.4.1) brought some of the most desired improvements and it’s now a fantastic plugin!
I think the most important remaining issue now is to enable cookie support.
An easy improvement would be to increase the whitespace between the voting button and the following number.
Otherwise I don’t think that you should overload the plugin with ever more features. If the plugin remains small you’ll also have less trouble to convert it for future WordPress releases.
Like or Dislike:
0
0
[Reply]
Bob King
wealthynetizen.com Reply:
September 19th, 2009 at 10:45 am
Good points. The objective is to keep the plugin small and efficient. There has to be a fine balance between features and complexity.
Add the whitespace in version 2.5.2. Good eye
Like or Dislike:
0
0
[Reply]
Bob,
Nice plugin. I wish it would be lightweight always for people like me who can not afford a dedicated server for heavy plugins.
My 1 cent here: The purpose why I want a comment rating system is that, users can findout the comments worth reading. (assuming they dont have time and I have long list of comments)
Now a casual look at the comment list will not make people notice the UP DOWN numbers and read the one with more UPs. I know you have ways to make top rated posts stand out. But then people do not know why this stands out; because users liked it, or because the site-admin wants to promote it.
So how about showing a 5 star rating for all comments?
Like or Dislike:
0
0
[Reply]
Bob King
Reply:
September 23rd, 2009 at 5:53 am
The highlighting serves the purpose. Making every comment a 5 star won’t.
I’m going to add a hot-debated highlight to draw attention to controversial issues.
Like or Dislike:
0
0
[Reply]
Oh yeah. I thought I should not have written the above comment. It does not make much sense actually.
When you allow me to STYLE the comment, I can very well put BIG 5 STARS as the faded background image of top comments. Does it sound usable? And yeah thanks for your helpful and prompt replies.
Now about a bug. (in WP maybe). The settings panel shows an error in the NEWS section.
“Warning: gzinflate() [function.gzinflate]: data error in /wp-includes/http.php on line 1787″
Everything seems to work though. So I didnt try to fix anything. Seems many people are facing same issue with different plugins and even while upgrading WP.
Like or Dislike:
0
0
[Reply]
Bob King
Reply:
September 23rd, 2009 at 9:27 am
If you want to style all your comments, you can do so with your theme.
That bug is an Wordpress issue.
Like or Dislike:
0
0
[Reply]
Deepak
Reply:
September 23rd, 2009 at 11:43 am
Thanks Bob.
Like or Dislike:
0
0
[Reply]
I am having a problem that popped up with one of the revisions to Comment Rating (not sure which). The problem is that when a comment is “low rated” the comment and a number of subsequent comments” appears dim, and then it goes back normal. An example showing this behavior is:
http://www.obamaconspiracy.org/2009/09/another-look/comment-page-3/#comments
Like or Dislike:
0
0
[Reply]
Bob King
Reply:
September 24th, 2009 at 9:49 am
Dr. Conspiracy,
You are certainly dealing with highly controversial issues. Great for Comment Rating.
I looked at your source code. Did you change the Poorly-rated styling to opacity:1.0;filter:alpha(opacity=100)
Please try the following: opacity:0.4;filter:alpha(opacity=40) !important
Like or Dislike:
0
0
[Reply]
Dr. Conspiracy
obamaconspiracy.org Reply:
September 24th, 2009 at 4:53 pm
Yes, after I posted my comment here, I changed the OPTION setting from opacity:0.4;filter:alpha(opacity=40) to
opacity:1.0;filter:alpha(opacity=100)
That got rid of the dimness but now high-rated comments apply the same high-rated style to all comments nested below, which mislabels them. What I need is for each comment to stand its own. I will try your suggestion preceding.
Like or Dislike:
1
0
[Reply]
Dr. Conspiracy
obamaconspiracy.org Reply:
September 25th, 2009 at 8:56 am
OK, to summarize the issue. When using NESTED comments, the styling of a high or low-rated comment is passed on to every comment below it. This means that every comment nested below a low-rated comment becomes semi-opaque, even if it is high-rated itself. The end result is huge blocks of dim text that are difficult to read and that have evoked complaints from readers of my blog. Also high-rated comments pass on that style to everything below it, resulting in huge blocks of brightly styled text that obscure the rating of comments that are really highly rated.
The result is such a visual mess that I am seriously considering dropping the plug-in even though comment rating in general is a popular feature.
I have turned off the opaque styling so at least that part of the problem goes away, but the high-rated styling continues to be an issue. While I don’t care about the dim, I would really like the high-rated style to work correctly.
Like or Dislike:
2
0
[Reply]
Bob King
Reply:
September 25th, 2009 at 9:37 am
I now understand the problem. It’s caused by styling the whole comment box. When there’s nested replies to the comment, the nested replies are styled the same as the top-level one.
Let me see how this issue can be handled properly.
Like or Dislike:
2
0
[Reply]
Bob King
Reply:
September 25th, 2009 at 8:17 pm
Hi there,
I’ve added the feature of turning off styling comment box in version 2.7.0. This should solve your problem nicely.
Please check it out and let me know.
http://wealthynetizen.com/wp-content/uploads/comment-rating.2.7.0.zip
Like or Dislike:
1
0
[Reply]
Dr. Conspiracy
obamaconspiracy.org Reply:
September 28th, 2009 at 6:05 pm
This solves my problem nicely!
Thanks. My comments are pretty again.
Like or Dislike:
3
0
Thank you for your previous plugin. I need this future plugin when it’s avalible. I vote for 6 levels. Sorry for my bad English from Spain.
Like or Dislike:
1
0
[Reply]
Thanks alot for this great plugin!
However, I do have one request: I would like to be able to customize the ‘thumb up’ – ‘thumb down’ text. If you could add such an option it would be very much appriciated! Cheers!
Like or Dislike:
1
0
[Reply]
BoB
Reply:
October 28th, 2009 at 10:44 am
Make sense. Added in the todo list.
Like or Dislike:
0
0
[Reply]
Nice plugin. Is it possible to use is plugin for rating posts too? I cannot find a similar plugin for rating plugins. (we seperate up and down rate counters)
Like or Dislike:
1
0
[Reply]
joan
joanpique.com Reply:
December 22nd, 2009 at 10:36 pm
One great plugin for rating posts is http://lesterchan.net/portfolio/programming/php/#wp-postratings
@BoB: Thx for your work i love your plugin.
Like or Dislike:
0
0
[Reply]
I wonder if it would be possible to allow comments to be hidden (adding the javascript code, line 335 on comment-rating.php) when having “auto insert” set to off?
Like or Dislike:
1
0
[Reply]
BoB
Reply:
November 8th, 2009 at 11:23 am
I think you just spotted a bug. When auto insert is off, poorly rated comments should still be hidden.
Will look into it.
Like or Dislike:
1
0
[Reply]
I would like it so that instead of a thumb image it would show text saying: Agree, Disagree and when a checkmark is suppose to appear just get rid of that. Email me to see if you can do that because it is unlikely i will check in back in about 2 weeks.
Like or Dislike:
0
0
[Reply]
You should let us change votes!
Like or Dislike:
2
0
[Reply]
is there any tips if i want the rating icon to be place near the gravater author not just the position if the commment
Like or Dislike:
0
0
[Reply]
BoB
Reply:
December 24th, 2009 at 10:28 am
Here’s how you can do it,
Customizing Theme: The Comment Rating plugin can automatically insert ratings and images into comments. You can also turn off auto-insertion and customize your theme in the “comments.php” file within the “Comments Loop” with the following line.
if(function_exists(ckrating_display_karma)) { ckrating_display_karma(); }
Or ask me to help. http://wealthynetizen.com/donate/customize-your-theme/
Like or Dislike:
0
1
[Reply]
Liking this, but there are certainly a couple of features that would make it even more useful:
- comment voting only possible by moderators, not just for the whole community (if there’s already something out there that exists that does it, I’d love to hear about it, because I can’t find one!)
- ability to change vote: at the moment the IP restriction means you can’t click the thumbs-down to take your vote back down to zero, and vice versa. Mis-clicking is surprisingly easily done…
Like or Dislike:
0
0
[Reply]
Would it be possible to track the ratings by user instead of IP address? In some cases we have multiple users at the same IP address and it does not allow for the 2nd and subsequent rater to uprate a comment.
Like or Dislike:
0
0
[Reply]
BoB
Reply:
June 8th, 2010 at 3:08 pm
This can be done with registered users only. I plan to add that in the next release.
Like or Dislike:
3
1
[Reply]
Jan F
bpicampus.com Reply:
June 9th, 2010 at 11:43 am
Excellent. I only allow registered users to vote anyway so that is not an issue. I am also looking for a plugin that lets a user know who liked their comment and a plugin I can use to help users track the comments a little more closely – for example, new replies to their comments. If you know of any other excellent comment tracking plugins, I would love to hear about them.
Like or Dislike:
2
0
[Reply]
If I may leave a feature request here: I want my user to be able to vote and unvote forever, like on Reddit, because sometimes people change their minds, or notice something the previously overlooked.
Like or Dislike:
0
0
[Reply]
BoB
Reply:
July 3rd, 2010 at 7:08 am
The Pro version allows unrestricted voting.
Like or Dislike:
0
0
[Reply]