Welcome Guest, Not a member yet? Register   Sign In
Moderated comments handling in codeigniter

Hi, I am new to codeigniter and need to add moderated comments per page on a site I am developing. Is there any plugin to make it easy to provide moderated comments in codeigniter?

Any help or pointers on best practices regarding this will be appreciated.


There is probably no "plugin" for that task, but it's easy to implement.
Add a column "hidden" (ENUM: yes, no; default: yes) to your comments table; a new comment is then saved with hidden="yes".
On the public pages, only display comments where hidden="no".
In your admin area add a controller / method to change the value of the hidden column from "yes" to "no" to approve the comments.

Just add a temporary field to your comments database table. If the value is 1 the comment needs moderation. If the comment is approved set the field to 0, if it isn't delete the comment.

to show the comment for the user that added it, use a cookie with a hash to identify the comment from that user.

pistolPete and xwero, Thanks a lot for quick reply.

Theme © iAndrew 2016 - Forum software by © MyBB