• Home
  • Contact Me
WordPress Tavern
Where Every Drink Is On The House
Browse: Home / karma
Comment_Karma In Action

Comment_Karma In Action

By Jeffro on February 26, 2010

Back in July of 2009, I wrote about my experience of deleting a field within my database that unknowingly, was important for WordPress to have. The field is called comment_karma. At the time, I had no idea why this field was important to WordPress. Today, I stumbled across an article on True/Slant that explains their use of this particular field with AJAX to curate and filter comments. They provide the code snippets along with explanations as to what the code does.

Share this:

  • Email
  • Facebook
  • Reddit
  • Twitter
  • Google +1

Posted in News | Tagged comments, hacks, karma, tips | 6 Responses

Bad Comment Karma

Bad Comment Karma

By Jeffro on July 1, 2009

commentkarmaBefore making the domain move the other day, I made a mistake by deleting something I shouldn’t have from the database. It was the comment_karma field located within the wp_comments table. A long time ago, I remember installing a plugin called Comment Karma which enabled visitors to rate a comment up or down thus promoting the best user rated comments to the top.

I thought that by installing this plugin a long time ago, that it had created this entry in my database. Thinking another plugin left its stuff behind in my database, I removed it only to find out that removing it broke my commenting system to the point where the incrementer broke. To make matters worst, I didn’t do a database backup since I thought I was removing something plugin related. However, thanks to Michael Torbert, he helped me put the comment_karma field back in its location and once I did that, everything worked again.

So, when I dived into the WordPress-Dev IRC channel to see what this field is used for, someone said it was not used by anything in core and Michael told me he couldn’t find anywhere that field was being used. But, if it was not being used in core, why would it cause the commenting system to break when it’s removed?

The overall lesson here, don’t do ANYTHING to your database unless you backup first. Complacency is your enemy.

Share this:

  • Email
  • Facebook
  • Reddit
  • Twitter
  • Google +1

Posted in WordPress | Tagged backups, comment, database, karma | 6 Responses

Stay Up To Date

Subscribe Via RSS Subscribe Via Email Follow Us On Twitter
© Copyright WPTavern 2013 All rights reserved About / Poll Archive / Site Archive // Powered by WordPress Mtn. Dew And Hybrid
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.