I Love the Script - However How can I change these things
  • Hi

    I really like the script, however I am finding that most people are not commenting.

    Is there a way I can just have just your name and the comment box and not have the other fields- email and website

    The easier it is for people to comment the more likely they will interact with it, I think too many fields puts people off from commenting.

    Hope to hear from you soon!
  • Hello,

    I don't think those extra fields are the problem. Once they're filled up, script will remember those in a cookie and re-fill them every time user stumbles upon your comment form.

    Anyways, there is no easy way to remove those fields. You will need to manually edit the script:

    1. Open comments/templates/add-comment.php and find following codes:


    " maxlength="50" />


    " maxlength="255" />



    Don't remove them but just hide them with CSS (by adding display: none to parent TRs), so just replace each with

    Removing them would make troubles because comments are posted using ajax so those fields are required to exist so ajax can work.

    After that you need to disable checks for those fields because those fields are required. That's next step:

    2) Open comments/add-comment.php and around line #94 find following code:


    if ((trim($what) == '') or (trim($name)=='') or (trim($email)=='') or (trim($comment)=='')) {


    Replace it with this:


    if ((trim($what) == '') or (trim($name)=='') or (trim($comment)=='')) {


    Around lines #100-#103 find and remove following code:


    if (!$comments->validEmail($email)) {
    $errormsg = $comments->getString('note_invalid_email');
    $sofarok = false;
    }


    So that should be it. Save all changed files and replace them, but keep originals in case something does not work, so you can easily revert all changes.

    Let me know if this works for you?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!