Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorpeanut
    • CommentTimeSep 29th 2005
     
    Hi All

    When comments are added to pictures I dont want people to have to enter their email address before it gets posted. How do I remove this along with the "website" field from the comments?

    Thanks in advance!
    •  
      CommentAuthorgangavalli
    • CommentTimeSep 30th 2005
     
    its all under way.

    http://dev.plogger.org./ticket/18

    I am sure it will get much much better with our feedbacks and suggestions.
    • CommentAuthorNicabar
    • CommentTimeDec 6th 2005
     
    Hello,

    I read ticket 18, but I am having trouble understanding if I can do what peanut asked about?

    I too do not want to have the email or website field.

    Thanks
    •  
      CommentAuthormike
    • CommentTimeDec 6th 2005 edited
     
    Peanut,

    Ticket 18 has to do with comment moderation, basically Beta 3 will give the you the chance to put comments into moderation and approve them at your will. In order to accomplish what you asked about, you should make some simple edits.

    First, remove the form fields from gallery.php, there is a function called display_comments() which produces this comment form. Line 940 - 947.

    <p>
    <input type="text" name="email" id="email" value="" size="28" tabindex="2" />
    <label for="email">E-mail</label> (required, but not publicly displayed)
    </p>
    <p>
    <input type="text" name="url" id="url" value="" size="28" tabindex="3" />
    <label for="url">Your Website (optional)</label>
    </p>


    Just delete that.

    Second you'll need to disable the email address checking code in plog-comment.php, line 44

    if ($author != "" && $email != "") {

    You can just change that to

    if ($author != "" ) {


    Hope that helps.
    • CommentAuthorNicabar
    • CommentTimeDec 8th 2005
     
    Thank you Mike

    However my plog-comment.php file has a different setup
    this is lines 42-48

    // redirect back to picture page
    if ($rv["errors"]) {
    // will this work?
    $_SESSION["comment_post_error"] = $rv["errors"];
    };
    header("Location: $redirect");
    ?>

    The 1st edit appears to work though.
  1.  
    What happned to the comment moderation? As i understtand its not in beta 2.1? is there a way ot add it?