WordPress Plugin: Rate Your Comments (Comment Karma)
October 15th, 2006 - By: Alex BaileyAfter searching Google for a few minutes for a comment karma/rating plugin for WordPress I was amazed I couldn't find one. So I read through WordPress documentation for a bit, and dug in.
Comment Karma 1.1 Release
Fixed:
*Security issue.
*Hovering over the images gives you a mouse cursor now.
*No need to enter in database information on the installation.
You should really update the plugin with this new fix. 2.1 will be released soon with some extra cool features :)
What is it
This is a plugin for WordPress blogs that allows users to rate or moderate other users comments. You can click thumbs up or down, and it will give them a positive or negative number. Basically the exact same thing you'll find on Digg or Slashdot.
Issues
Currently there are no known issues, it works like a charm. If you're using WP-Cache or similar the icons will not show up gray, nor will the numbers be updated if you reload the page until the page expires. However if a user votes again it will throw them an error. I've worked around this by setting the cache for 120 seconds. That way the server doesn't get hammered with SQL queries, but you still see the comments being moderated in almost real time.
Installation
Unzip the folder you downloaded, and upload the whole thing in to your plugins directory. You'll need to edit your header file, and add:
<script type="text/javascript" src="http://domain/wp-content/plugins/ck-karma/ck-karma.js">
</script>
I added mine directly under the head tag. Next depending on your theme you need to edit your comments theme file. You need to add ck_display_karma(); in your comment's for each loop. Look for "foreach ($comments as $comment)". You can insert it in that loop. Mine happens to be here:
<?php if (comment_subscription_status()) { echo " (subscribed to comments) "; } ck_display_karma(); ?>
Lastly enable it via plugins page. That should install all the needed tables.
Questions? Comments? Bugs?
If you have questions about installing or using it you can post a comment on this post. This is so people having the same issues can easily get the fix. If you really want you can come to irc @ irc.cyber-knowledge.net #Main, or use the contact form.
Download
Comment Karma
Thanks to
Bawked - Wrote the ajax, and debugged the PHP.
3monkeys - Helped me test it a bit.
Hey even a few dollars helps!
Enjoy - Rub3X and Bawked!



1. Rub3X | October 15th, 2006 @ 8:52 AM |
+767
This is a test comment, so you can see the ratings. Enjoy!
2. Turk | October 16th, 2006 @ 1:16 PM |
+100
When there is negative karma it displays as –1, instead of -1. Example: hotelblues...omment-356
Is this me or is it the plugin?
3. Turk | October 16th, 2006 @ 8:42 PM |
+93
What I meant to say was that negative karma shows up as –1 instead of -1. It happens on your blog to, so it’s not me.
4. Rub3X | October 17th, 2006 @ 4:19 AM |
--52
Yea, it’s meant to be like that. It’s just a programmers thing like $var–;. Idk I might change in the next version.
5. yarray | October 18th, 2006 @ 8:39 AM |
+86
I have just been enlightened with wordpress and i love life once again. LOL
I can finnaly work on my website. TYTYTYTYTYTYTYTY
6. Everton | October 21st, 2006 @ 5:28 PM |
--10
Hi
I’ve installed it and no errors were kicked up, but on my site I just get text for the vote options i.e. no images and they’re not clickable.
Help please
EB
7. Rub3X | October 21st, 2006 @ 10:55 PM |
--6
Did you edit ck-processkarma.php with the right database info?
8. Everton | October 22nd, 2006 @ 1:31 AM |
+35
yeah. I spotted one mistake in your installation instructions - it should be
not
Still no joy though…
9. Ian Harris | October 22nd, 2006 @ 10:15 AM |
+44
Hello. I wonder how hard it would be to rank the comments according to their rating? So poor comments get buried and good comments rise to the top. I guess it would be difficult?
10. Rub3X | October 22nd, 2006 @ 10:26 AM |
--2
@8
I see now..
You need to change the directory to “ck-karma” not comment_karma. Not sure why it’s like that, the zip on my server extracts the file as ck-karma. Also in the head tag you have
src=â€http://domain/wp-content/plugins/comment_karma/ck-karma.jsâ€
You have to replace the word “domain” with “www.connectedinternet.co.uk” (no quotes). After that it should work. Where is the error in the installation instructions?
@9 Hmm I’ll tinker around with it tomorrow perhaps. The problem I see is that WordPress has a function to list the comments, and you don’t actually make an SQL query…the function does. So I can’t use ORDER BY etc SQl commands unless I make my own function to draw the comments. I’ll see about that tomorrow like I said.
Hope this helps.
11. Everton | October 22nd, 2006 @ 10:47 AM |
+14
Thx Rub3x almost there. The buttons have appeared but they are not clickable.
12. Ian Harris | October 22nd, 2006 @ 10:59 AM |
+13
Hello. I think I’m having the same problem as Everton - I’ve installed the plug-in and entered the database details correctly, but the buttons aren’t clickable.
Best
Ian
13. Ian Harris | October 22nd, 2006 @ 11:05 AM |
+21
Ooh - I think I solved the problem of buttons not being clickable.
I had the Javascript pasted into header.php, but in my theme comments aren’t on the homepage - they’re on post.php. So I just pasted the Javascript into post.php at the top and it works.
Hope this helps you, Everton.
14. Rub3X | October 22nd, 2006 @ 8:19 PM |
+16
@11
Hmm I see what the problem is, but I’m not sure of a solution atm. When you click the up/down arrow it’s saying “karma” is not defined, which means it’s not recognizing the javascript file. Doesn’t make sense because I checked your head tag and it’s linked properly. I will look into it a bit further in about 3 hours.
@13
Cool went to your site and saw them working :) Have fun
15. Everton | October 22nd, 2006 @ 9:04 PM |
--6
#13 - where is the post.php file?
16. Everton | October 22nd, 2006 @ 9:07 PM |
--7
hmm found post.php in wp-admin folder. Tried adding
At top of file but didn’t work :-(
17. Bawked | October 22nd, 2006 @ 10:55 PM |
+3
For some reason WordPress replaces a normal quote with some weird thing â€<– that is not a real quote. Try editing it with the non-richtext editor in WordPress or editing it with notepad/wordpad and uploading it manually with ftp
18. Rub3X | October 25th, 2006 @ 6:14 AM |
+1
I assume that worked for everybody, right?
19. Everton | October 25th, 2006 @ 7:09 PM |
+0
#17 Sorry, I don’t understand what you mean. Where and what do I need to change?
20. Clair | October 27th, 2006 @ 10:54 PM |
+6
When I install it, all I get are a +0 where I put the ck_display_karma(); statement.
I’ve double checked the db information. I’ve checked for the translation of odd characters, etc.
21. Clair | October 27th, 2006 @ 11:30 PM |
+4
Found it! It doesn’t like that my url is http://mydomain.com but wordpress is installed in mydomain.c.../wordpress
22. Christopher | October 28th, 2006 @ 7:46 AM |
--5
I’m gettting an error message… any thoughts..
chrisvschr...st-design/
sorry to ask but i didn’t see anything about this one here.
23. Rub3X | October 28th, 2006 @ 7:52 AM |
+8
@17
The code I pasted in my blog post is malformed. The quotes are not actually quotes. You need to edit the things that look like quotes with real quotes. Or use pastebin.ca/226012. Should work.
@22
That’s what the javascript would return if it couldn’t connect to the database. So my bet is you need to make sure that your database info is correct in ck-processkarma.php. The info you need for that file can be found in wp-config in your wordpress install directory.
I’ll try and work on a better installation in the future.
24. Everton | October 28th, 2006 @ 8:29 AM |
+1
#23 I don’t think my quotes were messed up, but I tried reentering all of them manually via FTP and the icons are still not clickable.
Thanks for trying to help. I’m happy to give you admin access to my blog if it helps you improve the plugin
25. Clair | October 28th, 2006 @ 3:01 PM |
--1
I did try to change the get_bloginfo(’url’) to get_bloginfo(’site_url’) in one of the files, but that didn’t help. The only thing which worked was to place a symbolic link creating a wp-content folder in the root directory of the site pointing to /wordpress/wp-content. It’s a workaround for now, but that’s about as far into the coding as I can probably get.
26. Christopher | October 28th, 2006 @ 3:20 PM |
+8
I’m pretty sure I’ve got the database connection right.. there isn’t away just to reference the existing connection? ( might make it a little easy to clean up the plug in ) however it does look like the plug in did not install the needed tables into the database.. if the tables do not exist would this create the same js error? I’m going to backup my database and try and install them manually… thanks for the tips! Great plugin.
27. Chris Meller | October 28th, 2006 @ 5:26 PM |
+9
I hope there’s an update forthcoming. I’d love to use this plugin, but it seems a tad too rough around some of the edges thus far.
A few comments:
1) You shouldn’t need to edit the header manually. Just have your plugin hook the wp_head action:
function function_to_echo_js_line ( ) {
I’ve never done anything with comments, but there may be a hook for that as well. WP Hooks may be of help.
2) I haven’t looked at the code, but what DB information do you need defined? wp-config.php defines all the DB info as constants that should be accessible anywhere in the code. You can also directly use the $wpdb object that the rest of wordpress uses if you need direct database access. There’s really no need to re-create a new database connection.
Hope it helps… :)
28. Rub3X | October 28th, 2006 @ 6:45 PM |
+4
@24 add th3rub3x..AT..Gmail to MSN/Gtalk or just email me the info. I guess I can take a look.
@26 it’s weird..the ajax is being very picky. For some reason if I include(); the config file or use the existing connections it spits out errors. So I did this simple work around for now.
29. Christopher | October 28th, 2006 @ 6:55 PM |
+0
I think my problem is now with how I installed the tables manually… I’ll keep ya posted.
30. Christopher | October 28th, 2006 @ 7:11 PM |
+5
I was wondering if you could post the SQL statement needed to create the tables and field in phpMyAdmin here..
31. Christopher | October 28th, 2006 @ 7:21 PM |
--2
You could consider writing this part:
$ck_result = mysql_query(’SELECT comment_ID FROM ‘ . $table_prefix . ‘comments’); //Put all IDs in our new table
while($ck_row = mysql_fetch_array($ck_result, MYSQL_ASSOC)) //Wee loop
{
mysql_query(”INSERT INTO $table_name (ck_comment_id, ck_ips, ck_rating) VALUES (’” . $ck_row['comment_ID'] . “‘, ”, ‘0′)”);
}
like this, doing a simple table-to-table copy:
mysql_query(”INSERT INTO `$table_name` (ck_comment_id, ck_ips, ck_rating) SELECT comment_id , ”, ‘0′ FROM `{$table_prefix}comments` “);
32. Everton | October 28th, 2006 @ 7:52 PM |
+3
#27 thx. I’ve created an account for you and emailed the details-let me know if you don’t get the email
33. Rub3X | October 30th, 2006 @ 2:35 AM |
+1
@27
Yea I didn’t know about wp_head while making it. I will change that. But for some reason if I include(’wp-config.php’); the javascript doesn’t work. I’m not sure why.
@31
Yea learned about table copy after I did that lol :(
@32 Will mess with it monday after classes.
Note: My new blog is taking up all my time at the moment. It looks good, however still having some code issues. This theme is almost from scratch, so I have to work out a lot of bugs. If anyone knows anything about coding on WordPress contact me :D
AIM: RUb3XAIM
MSN/Gtalk/Email: th3rub3x.at.gmail
Yahoo tharub3x
IRC: irc.cyber-knowledge.net #Main
34. Chris Meller | October 30th, 2006 @ 10:14 AM |
+9
You shouldn’t need to include wp-config.php. Wordpress should do it for you. Everything you need should already just be there.
If you need help with anything in particular, stop by #wordpress on irc.freenode.net. We’re always loafing about waiting to answer questions.
35. Rub3X | October 30th, 2006 @ 3:58 PM |
+0
@34
Chris, I know that..the main file ck-karma.php I think has all the WordPress global vars and functions included. However the process karma file is seperate from the main plugin file. If you manage to incorperate the main plugin file with the process karma file _without_ the javascript having errors, then that would be awesome. I do idle in freenode in #Wordpress with the user as Rub3X`. PM me - what’s your IRC user?
36. Raj | November 4th, 2006 @ 6:09 AM |
+9
Hi,
I have activated this on my new site; keepreadingus.com [using wp v2.0.5], but the voting images are always grayed out. Why is this so?
Does the plugin take into account the IP of the machine fromw hich the commpent is posted from?
Or is this some kind of error that needs to be fixed. I even tried logging out and checked, but they ares till grayedout.
Thanks for any help.
37. Rub3X | November 4th, 2006 @ 6:14 AM |
--3
@36
Put pastebin.ca/236955 in the head tag instead of what you have.
38. Everton | November 4th, 2006 @ 8:26 AM |
--2
Hi Rub3X
Thanks for having a go at fixing my site the other day. I worked out wp-cache wasn’t working. It’s because I have APC on my server - I’d forgotten. Do you think this is why karma isn’t working as well?
I’m so desperate to get this plugin working, I even changed my theme! Check out my new sleek (and faster finally!) theme!
Let me know if you want to have another tinker
39. Raj | November 4th, 2006 @ 11:26 AM |
+0
Hi Rub3X,
Thank you for the help.
But I have another problem now when i try to cast votes using the karma feature.
I am gettign error like,
1. Access denined to the user ‘mydb user@local...ost’ on line 25 [ck-processkarma.php]
2. Supplied argument is not a valid mysql resource on line 26 [ck-processkarma.php]
3. Supplied argument is not a valid mysql resource on line 37 [ck-processkarma.php]
How can I fix this problem.
Thank you for any help again.
Cheers
40. Raj | November 4th, 2006 @ 12:27 PM |
+2
Hi,
I fixed the databse problem as welll just now and i have no issue. But when my About page [http://www.keepreadingus.com/about/] when loaded says error in the browser status bar in IE.
Any help on that please.
Thanks
41. Jeremy | November 4th, 2006 @ 7:10 PM |
+12
Hey, good stuff with this plug in! I added it to my site and had to work through some of the issues posted above. I found I did the following errors:
1) Smart quotes by pasting the javascript from your instructions (for the head area) and edited the file via wordpress. When I changed to regular quotes that make the buttons clickable
2) This one I am embarassed to adming, but I left the word “domain” in the javascript src instead of changing it to my address.
Thought I would pass that along. Also, I added
style=\”cursor: pointer;\”
To each of the karma images (not the grayed out ones) to help people realize they are clickable.
It would be nice to have some of the steps automatically taken care of as discussed above, such as the db info and not having to insert the different code blocks, but then I am not complaining, the program works great. For a serious request, an option to sort comments by karma would be very cool.
Thanks again, great plugin.
42. Shedrock | November 7th, 2006 @ 5:38 PM |
+4
I have installed this plugin but I get erros when I try to use it. Here is my line in the comment.php file in my template folder:
- I’ve tried adding the required code in there but this is the error I get in return:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\local_site\wp-content\plugins\ck-karma\ck-karma.php on line 108.
Any help would be greatly appreciated.
Thanks
Shedrock
43. Rub3X | November 7th, 2006 @ 7:07 PM |
+7
@40 Did you fix the IE error, because I loaded it in IE7 and it worked fine. What version of IE are you using?
@41 Thanks for the style code, I will add that to the next version.
@42 Either the process karma doesn’t have the right database information, or you didn’t put the code in the for each loop of the comment.
44. Shedrock | November 7th, 2006 @ 11:47 PM |
+2
My table is not being created although I have the right DB information in the file. This is really odd.
EDIT:
Ok, I added the table via PhpMyAdmin manually. Now that I have the table in the DB I added the in the comment.php file:
foreach ($comments as $comment) : ck_display_karma();
minus the dashes of course. I see the 2 images but the word error is written next to it. I cannot imagine what I am doing wrong here. I have never had so much problems to add a plugin, please help.
Thanks
Shedrock
45. Rub3X | November 8th, 2006 @ 4:28 AM |
--2
@44
Ok what is your site. Of hand you need to add the ck_display_karma(); where you want the buttons to display. That is usually after the part in the code where it says “your comment is awaiting moderation”. Adding the table manual will not work, because the plugin copys your old comments table to a new one with a few new columns. wp-config in your install directory of wordpress has all the needed database info needed for ck-process-karma.php.
46. Shedrock | November 8th, 2006 @ 11:32 AM |
+2
Well, I have tried over and over to install it and the tables just don’t get installed. I am also 100% sure that the DB info is correct. I am using the latest version of WP and I am assuming that this plugin works with it. Anyway, thanks for all the help.
Shedrock
47. Rub3X | November 8th, 2006 @ 4:21 PM |
+1
Paste me the name of one of your WordPress tables, and then paste me the name of your table prefix in wp-config
48. Shedrock | November 8th, 2006 @ 5:54 PM |
--4
table name: wp_categories
table prefix: wp_
49. shedrock | November 9th, 2006 @ 4:51 PM |
+0
anything?
50. Rub3X | November 10th, 2006 @ 6:47 AM |
--6
Not sure, no idea why it wouldn’t write to the tables. Sorry =\
51. Alberto | November 17th, 2006 @ 5:11 PM |
--6
Does anyone know the name of the wordpress plugin that creates a list of your posts in a category instead of just displaying them one after the other? I want it so that when someone clicks on a category they just get a list of posts from that category.
I'm sure Ive seen one…and sifting through the WP site is a nightmare
52. Joey | December 4th, 2006 @ 8:29 PM |
--2
hm… wondering what’s the rule here… let’s say you make a comment. and you vote for yourself. does that mean you would not be able to vote for your stuff ever again?
can someone explain the rule little mroe clearly on how the voting system takes place?
thanks…
53. Alex Bailey | December 4th, 2006 @ 8:36 PM |
--3
[quote comment="3205"]hm… wondering what’s the rule here… let’s say you make a comment. and you vote for yourself. does that mean you would not be able to vote for your stuff ever again?
can someone explain the rule little mroe clearly on how the voting system takes place?
thanks…[/quote]
If you make a comment yourself, you will not be able to mod your own comment up or down. You’ll still be able to rate other people’s and other people will still be able to rate yours. You can rate anyones comment once, up or down.
54. Joey | December 4th, 2006 @ 8:45 PM |
--8
ah ok.
1. what if there was a new post? and there were same people who were commenting and commented eachother before? can they rate eachother again? (because it’s a new post?)
2. does that mean if i rate someone’s comment, i can’t comment on same person’s new comment?
sorry for little confusion.. but wanted to be clear.
thank you for answering.
Joe
55. Joshua | December 5th, 2006 @ 10:40 PM |
--2
I have Wordpress 2.0.5 installed. I’ve checked and rechecked that my database info is correct. My theme didn’t have a comments.php file, and then I finally eralized that it was using the default theme’s comments.php (duh!!!!). Anyway, I added the ck_display_karma() appropriately, and although I do get the buttons, they are NOT clickable. I am frustrated. I have the code in my single_post.php, and yes, I changed the domain appropriately. I view source on a page with comments, and the code looks correct. But the buttons just are not clickable. Please advise, because it sounds really cool, but I can get the functionality. Thanks!!
EDIT:
geh, sorry for the spam. i meant single.php, not single_post.php. and my last sentence should say that I CAN’T get the functionality. (I wanted to edit, but couldn’t…)
56. Alex Bailey | December 6th, 2006 @ 4:32 AM |
+2
[quote comment="3266"]I have Wordpress 2.0.5 installed. I’ve checked and rechecked that my database info is correct. My theme didn’t have a comments.php file, and then I finally eralized that it was using the default theme’s comments.php (duh!!!!). Anyway, I added the ck_display_karma() appropriately, and although I do get the buttons, they are NOT clickable. I am frustrated. I have the code in my single_post.php, and yes, I changed the domain appropriately. I view source on a page with comments, and the code looks correct. But the buttons just are not clickable. Please advise, because it sounds really cool, but I can get the functionality. Thanks!!
EDIT:
geh, sorry for the spam. i meant single.php, not single_post.php. and my last sentence should say that I CAN’T get the functionality. (I wanted to edit, but couldn’t…)[/quote]
#17 solves your problem. The “quotes” you have in your head aren’t quotes. They are something WordPress added in my post for some reason. Edit header.php and change the things that *look* like quotes to real quotes. FYI if you register you’ll get an edit button.
57. yarray | December 6th, 2006 @ 9:05 AM |
--3
I had the same problem with the so called “”’s
Took me long enough to understand wtf was going on.
Thanks
58. Joshua | December 6th, 2006 @ 2:08 PM |
--2
THANKS!!!! What an easy little thing to miss. I hate problems like that, but love them at the same time. The help was greatly appreciated. THANKS
59. io | December 6th, 2006 @ 2:47 PM |
+1
[quote comment="1066"]@8
I see now..
You need to change the directory to “ck-karma” not comment_karma. Not sure why it’s like that, the zip on my server extracts the file as ck-karma. Also in the head tag you have
src=â€http://domain/wp-content/plugins/comment_karma/ck-karma.jsâ€
You have to replace the word “domain” with “www.connectedinternet.co.uk” (no quotes). After that it should work. Where is the error in the installation instructions?
@9 Hmm I’ll tinker around with it tomorrow perhaps. The problem I see is that WordPress has a function to list the comments, and you don’t actually make an SQL query…the function does. So I can’t use ORDER BY etc SQl commands unless I make my own function to draw the comments. I’ll see about that tomorrow like I said.
Hope this helps.[/quote]
prova quote
60. Joshua | December 6th, 2006 @ 4:10 PM |
+0
SORRY everybody. I pasted code that the browser interpeted as code rather than text, and so some of the code didn’t display, and other parts of the code displayed very incorrectly. If someone wants to delete my last post and this one, the site would look better. I was hoping to help by pasting my code. (Wouldv’e been nice if I could have deleted my post, but then again, I should have previewed it first…) Let me know if there is a way I can paste code and have it displayed, and I would be happy to post it again. Sorry for the mess.
61. Alex Bailey | December 7th, 2006 @ 6:54 PM |
--4
[quote comment="3312"]SORRY everybody. I pasted code that the browser interpeted as code rather than text, and so some of the code didn’t display, and other parts of the code displayed very incorrectly. If someone wants to delete my last post and this one, the site would look better. I was hoping to help by pasting my code. (Wouldv’e been nice if I could have deleted my post, but then again, I should have previewed it first…) Let me know if there is a way I can paste code and have it displayed, and I would be happy to post it again. Sorry for the mess.[/quote]
Maybe you should try pastebin.ca. I’m surprised WordPress didn’t just use StripSlashes() on the post. But yea pastebin for the instructions would be helpful to others =)
62. Joshua | December 7th, 2006 @ 7:08 PM |
+0
Alex, thanks for the link. It’s a neat idea. Ever try mailinator.com ? Kind of a useful thing. Check it out. Anyhow, here is the link to what may be helpful install/cinfig info for people: pastebin.ca/270820 Thanks everyone.
63. Buddha | December 8th, 2006 @ 1:48 AM |
+1
working fine… thx for this…
64. Bawked | December 10th, 2006 @ 11:29 PM |
+1
Seems like quite a few people are interested in this, i will talk to rub3x and see if we can make a v2 :)
65. guizzardi | December 12th, 2006 @ 2:43 PM |
+1
[quote comment="922"]This is a test comment, so you can see the ratings. Enjoy![/quote]
66. Bawked | December 13th, 2006 @ 3:17 AM |
+4
Hey guys the next version is in the works :D
1. It will be easy to install, just upload and click activate!
2. Will feature an admin panel with options to customize it.
3. Comments dugg down will be hidden like digg(this can be controlled in the admin panel)
4. Some other tweaks to make it better.
Feel feel to post any features you want included here and they might be included in the next version :)
67. Buddha | December 13th, 2006 @ 3:45 AM |
--2
great news Bawked … this plugin rulez …
68. Jenni | December 16th, 2006 @ 6:33 AM |
+0
This is awesome… But, please put in something that lets you copy and past the code because the quotes thing drove me nuts… I had changed the quotes around the url and negelected to change the ones around “text/javascript”
Anyway, thanks again. ^_^
69. Mark | December 18th, 2006 @ 3:04 AM |
+2
I’m REALLY looking forward to the new version, because I couldn’t get this to work - the comments all showed up gray, and even after reading each comment here and trying everything I could think of, it still didn’t work.
70. Bawked | December 18th, 2006 @ 12:18 PM |
+3
Hey guys, the next version is about 30% done. The reason it’s taking so long is that it’s nearing christmas and i’ve been out of town quite alot. I’m hoping to have a beta out by christmas, or at the latest new year. I’ll put up an official page for it soon, will inform you guys when it’s up.
71. P11 | December 18th, 2006 @ 2:16 PM |
+2
Bawked, you gotta get that out by Christmas. Its an amazing plugin and I would really appreciate if you could finish off the newest version as the the current one doesn’t work for. Thanks for all your hard work
72. Bawked | December 19th, 2006 @ 12:23 AM |
--1
Ok coderweb.n...mentkarma/ is the official page, I’ll add a proper site tonight but i’d rather work on ck now ;)
73. bighock | December 19th, 2006 @ 1:58 AM |
+3
I’d like to do something where commetns with a negative score of 3 or somethign will be hidden ajax style.
any ideas how to implement?
74. Bawked | December 19th, 2006 @ 5:29 AM |
+2
Bighock, this will be included in version 2. You will be able to set at what karma they get hidden in the admin panel :D
75. Joey | December 20th, 2006 @ 11:30 PM |
+3
Great news Bawked! Thank you for doing this. Would you also include in a new feature where the cursor will turn into “hand” cursor when it’s pointing at the rating buttons? I know it can be done now.. but have to be done manually. It would be nice if it’s automatically included in the new one.
76. emre | December 21st, 2006 @ 6:06 AM |
--5
Thanks for the plug-in, but I don’t see what good it does without allowing the user to filter the commments. A slider would be nice :)
77. Bawked | December 21st, 2006 @ 10:05 AM |
+2
Emre, I dont see what a slider could do… give it rating out of 5 i guess… i might look into that for a future plugin.
Joey, Yea sure man should of been in the first version, i dont know why it wasn’t.
Update: I’ve mostly made the next plugin from scratch, i actually read the documentation this time and it’s going well. Looking on track for christmas beta :D
78. haluk | December 21st, 2006 @ 11:52 AM |
+4
very nice
79. emre | December 21st, 2006 @ 2:48 PM |
--4
A slider would enable you to do something with the ratings. Right now it is just a number. How does it enable you to filter the comments? I must be missing something.
80. Bawked | December 21st, 2006 @ 9:43 PM |
+3
emre, What the current system does is it gives the viewer of the site an overview of how people feel about comments and let the viewer rate it up or down depending on if the viewer likes it or not.
81. Joey | December 22nd, 2006 @ 2:56 AM |
+1
Yes.. it would be nice if we can align the result according to the number of positive vote it received. (see? longer it takes to make, more ideas I throw at you!!:) )
82. Bawked | December 22nd, 2006 @ 10:42 PM |
--1
Joey, I think i’d need to hack the comment system to do that, might look at it later. Anyway i’m adding the features now might put up example page later ;)
83. Bawked | December 23rd, 2006 @ 12:52 PM |
+0
Should have beta ready tomorrow.
84. franky | December 27th, 2006 @ 7:14 PM |
+2
IMHO it makes more sence to add the script call in comments.php instead of header.php.
There is no reason why the script needs to be loaded on every page, even if there are no comments.
Too many plugins have/make this error
85. Ye | December 28th, 2006 @ 10:19 PM |
--1
Hi Guys, I have been having the same issue with database table wasn’t getting created. I did try activate/deactivate multiple times in the plugin management page, but somehow, it still not can not change the situation. I was looking at the code and wonder if I that some hook needs to be added to have ck_install() called so that the table gets created and initialized.
86. Ye | December 28th, 2006 @ 11:37 PM |
+0
This is follow for my msg @85. It turned out that ck_install() gets called, but somehow, the create table statement query result returns boolean false. And I am pretty sure that my database config in ck_processkarma.php is correct. I suspect if I need to add an include statement in ck_karma.php so that at the point where we need create table it will have database configs loaded and available.
87. Bawked | December 28th, 2006 @ 11:41 PM |
+4
Ye, i am working on comment karma v2. Should be fixed in it.
88. Ye | December 28th, 2006 @ 11:51 PM |
--5
Alright, to answer the problems of that I had previously regarding msg @85 and msg @86, this is the big reveal time!
The trick is to modify the code:
ck_karma.php
line 46: replace “ENGINE = myisam” with “TYPE = MyISAM”
I am using an ancient version of MySQL (v3.23) and somehow that create table statement is incompatible with the older version of mysql. So after I changed that, uploaded to the server and click on activate comment karma plug in , vola, it works!!
89. Ye | December 28th, 2006 @ 11:54 PM |
+1
Thanks Bawked, I am looking forward to your great work! Im lovin it …
90. Alex Bailey | December 29th, 2006 @ 4:05 AM |
+6
Sorry if the server was down earlier anyone. Having a ton of traffic, and am in the process of buying a dedicated server. Had over 350 thousand hits to one file alone today which amounted to over 100 gigs of traffic :)
EDIT here is an image.

If anyone feels like helping me pay for that, click the Paypal button ;)
91. Bawked | December 29th, 2006 @ 7:43 AM |
+2
Ye, thanks for that only tested with Mysql 4
92. Ye | December 29th, 2006 @ 6:36 PM |
--2
Not a problem Bawked. I like to share with what I have just like you ;) Now the next question is how easy to add the functionality show a sorted list of all the comments based on their ratings/karmas.
93. Bawked | December 30th, 2006 @ 4:06 AM |
--3
Ye, thats not an official feature ;) so wont be in v2.0 maybe 2.1
94. Rush | January 3rd, 2007 @ 2:39 AM |
+0
Bawked, how far have you come along with the v2.0? Just wondering :)
(Belated)Happy new year to all, by the way!
-Rush
95. Bawked | January 4th, 2007 @ 10:55 AM |
--3
Meh sorry guys been a bit lazy but the next version is mostly done.
96. Rush | January 4th, 2007 @ 6:50 PM |
+3
Bawked: in the new version… will we need to refresh the page in order to “total” the votes? or will it be instant?
Thanks,
-Rush
97. Bawked | January 5th, 2007 @ 3:31 AM |
+2
Rush, total the votes ?
98. Rush | January 5th, 2007 @ 5:05 AM |
+2
Hi Bawked,
Sorry for the confusion.
Here’s what I mean:
Right now, I see the Add Karma image, then Subtract Karma image, and then “+1″ after your comment heading… like this
[quote]
97. Bawked | January 5th, 2007 @ 3:31 AM | Quote | Add karma Subtract karma +1
[/quote]
What I would like is: when I click on “Add Karma” image, the +1 changes to +2 instantly without refreshing to see +2
let me know if you want me to clear it up more. :)
Thanks once again,
Rush
99. Alex Bailey | January 5th, 2007 @ 7:05 AM |
--6
[quote comment="5682"]Hi Bawked,
Sorry for the confusion.
Here’s what I mean:
Right now, I see the Add Karma image, then Subtract Karma image, and then “+1″ after your comment heading… like this
[quote]
97. Bawked | January 5th, 2007 @ 3:31 AM | Quote | Add karma Subtract karma +1
[/quote]
What I would like is: when I click on “Add Karma” image, the +1 changes to +2 instantly without refreshing to see +2
let me know if you want me to clear it up more. :)
Thanks once again,
Rush[/quote]
It already does that…maybe you don’t have javascript enabled?
100. Bawked | January 5th, 2007 @ 9:28 AM |
--3
Yea idk wtf is wrong with your browser it already does that though
101. interrogations | January 5th, 2007 @ 4:09 PM |
+6
I am trying to work around with the greyed out unclickable images for a while now, but still with no success. What I have at the moment is two up and down grey images and +0 value on the right. However, I cannot increase/decrease the value because the image is not clickable.
I followed the instructions given in all the posts above. I see that my database is installed properly and I tried changing the quotes in the header.php for my theme many times. Any suggestions?
102. Alex Bailey | January 5th, 2007 @ 7:03 PM |
+0
[quote comment="5707"]I am trying to work around with the greyed out unclickable images for a while now, but still with no success. What I have at the moment is two up and down grey images and +0 value on the right. However, I cannot increase/decrease the value because the image is not clickable.
I followed the instructions given in all the posts above. I see that my database is installed properly and I tried changing the quotes in the header.php for my theme many times. Any suggestions?[/quote]
If you yourself made the comment it’s supposed to be like that, and it will appeared color to everyone else. Other people’s comments will appear colorful to you and gray to them.
103. interrogations | January 5th, 2007 @ 8:00 PM |
