Navigation

Pligg Support

Search Results for "comment"
I want to add extra comment field. I have tried as following:

1. Created extra column "extra_comment_field" into "pligg_comments" table

2. Added following code to comment_form.tpl
input type="text" name="extra_comment_field" id="extra_comment_field" 


3. Added following lines into comment.php

$extra_comment_field= $db->escape($this->extra_comment_field);


And changed following line:

 $sql = "INSERT IGNORE INTO " . table_comments . " (comment_parent, comment_user_id, comment_link_id, comment_karma, comment_date, comment_randkey, comment_content, extra_comment_field, comment_status) VALUES ($comment_parent, $comment_author, $comment_link, $comment_karma, FROM_UNIXTIME($comment_date), $comment_randkey, '$comment_content', '$extra_comment_field', '$comment_status')";

But it is not writing data to db column ? What am I doing wrong, please help me. I am new to php and pligg.
Hello
1- Problem: Whenever i write a comment without being logged in the page just reloads itself without posting the comment (i have anonymous mode/comment installed). Please check this for yourself in here: (Disclaimer: offensive language) www.thed.info

2- Question: How can i make the anonymous reply to other comments? (the reply button isn't there for anonymous)

3-Question: Why does "Login to comment or register here" appear when i can(supposedly) comment with anonymous?

Thank you in advance

P.S.: I apologize to who saw already but my website contains offensive language. Forgot to put this disclaimer since it's new so i ask for a bit of understanding and imparcialness in this matter
I receive "ERROR: You have already voted on this article" when voting on a comment in a thread I have not previously voted on. This has happened here in the support forum.