ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Commenter details

January 13, 2011 7:12am

Subscribe [2]
  • #1 / Jan 13, 2011 7:12am

    jstewart

    11 posts

    We’re developing a site with commeting for each article. While testing the site within our office, we noticed the comments module was saving one users e-mail and displaying it on every computer in the office.

    Are a commenter’s details remembered via IP? If so can this be switched off or changed so that it is cookie based? I’ve done multiple searches and couldn’t find a solution.

    Thanks for your time,

    John

  • #2 / Jan 13, 2011 3:13pm

    Ingmar

    29245 posts

    Are you sure this is not just showing the details of a logged-in user?

  • #3 / Jan 14, 2011 12:17pm

    jstewart

    11 posts

    I don’t think so. Have been trying it on other computers that have never logged into the site and the keep seeing the e-mail address

  • #4 / Jan 14, 2011 5:53pm

    Barry Cogan

    291 posts

    Hi John

    It sounds like something is being saved in the templates.
    Can you share how you have your comments set up in the templates?
    Also could you provide us with the version and build numbers of your copy of ExpressionEngine.

    Thank you.

  • #5 / Jan 17, 2011 12:58pm

    jstewart

    11 posts

    Hi Barry,

    Thanks for your help. Its EE Version 2.1.3 Build 20101220

    This is the comment form code within the {exp:channel:entries} block;

    <h2>Leave a comment</h2>
    <p>        <br />
            {exp:comment:form class="form-comments"}</p>
    
    <p>            {if logged_out}</p>
    
    <p>            <div class="input"><br />
                    <label for="name">Name</label><br />
                    <input type="text" name="name" value="{name}" id="name"/><br />
                </div><br />
            <br />
                <div class="input"><br />
                    <label for="email">Email</label><br />
                    <input type="email" name="email" value="{email}" id="email"/><br />
                </div><br />
            <br />
                {/if}<br />
            <br />
                <div class="textarea"><br />
                    <label for="comment">Comment</label><br />
                    <textarea rows="6" name="comment" id="comment">{comment}</textarea><br />
                </div><br />
            <br />
                {if captcha}<br />
            <br />
                <div class="input"><br />
                    <label for="captcha">{captcha}</label><br />
                    <input type="text" name="captcha" value="{captcha_word}" id="captcha"/><br />
                </div></p>
    
    <p>            {/if}</p>
    
    <p>            <input type="submit" name="submit" value="Submit" class="button" /></p>
    
    <p>        {/exp:comment:form}

  • #6 / Jan 17, 2011 3:44pm

    Ingmar

    29245 posts

    ... value="{email}"

    will pre-fill the form field with the email address of the currently logged-in member. Are you sure that’s not what you are seeing?

  • #7 / Jan 17, 2011 5:49pm

    jstewart

    11 posts

    No, this doesn’t seem to be it. The e-mail appears on different computers even when the user has not ever logged in before, this problem doesn’t seem to be isolated to our office network as previously thought, its happening on my home PC too.

  • #8 / Jan 18, 2011 6:17am

    jstewart

    11 posts

    Problem solved, I was incorrectly including the comments block within the channel entries block - it was displaying the author’s e-mail in that field.

  • #9 / Jan 18, 2011 5:53pm

    Ingmar

    29245 posts

    Very glad to see you were able to solve this. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases