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.

Personal Email showing

December 14, 2010 12:14am

Subscribe [4]
  • #1 / Dec 14, 2010 12:14am

    Bell Design

    42 posts

    I just setup a basic blog on a site and used the templates in the default EE install as a starting point.

    The blog again is simple, just has the post, “read more…” using a truncate plugin and the comments.

    But when you go to the blog, my personal email address is in the email input box.  I did do some testing of posting comments during setup, but reviewing my code, i have the following:

    {exp:comment:form}
                            
    <label>Name:</label>
    <input type="text" name="name" value="{name}" size="50" />
                            
    <label>Email:</label>
    <input type="text" name="email" value="{email}" size="50" />
                            
    <label>Location:</label>
    <input type="text" name="location" value="{location}" size="50" />
                            
    <label>URL:</label>
    <input type="text" name="url" value="{url}" size="50" />                        
                            
    <label>Comment:</label>
    <textarea name="comment" cols="50" rows="12">{comment}</textarea>
                            
    <input type="submit" name="submit" value="Submit" class="submit" />
                            
    {/exp:comment:form}

    This again is the code from the default EE install blog. 
    The users do not log in at all.  I removed the comment preview (for now) as well.

    The client has also said that my email is there as well.
    I did testing of the default blog by making dummy comments, being logged in/out, etc. and my email isn’t in the email input box. 

    So I am confused on whats going on. 
    I did change value=”{email}”  to value=”” and it removed the email, but again its not like that on the default setup.

    So am I missing some EE tags or over looking something?

    Thanks

  • #2 / Dec 14, 2010 9:25am

    Sue Crocker

    26054 posts

    Hi, Bell Design. Which version/build of EE1.x are you using? You can find that at the bottom of any control panel page.

  • #3 / Dec 14, 2010 5:57pm

    Bell Design

    42 posts

    using EE 1.6.8

  • #4 / Dec 15, 2010 9:02am

    Sue Crocker

    26054 posts

    Hi, Bell Design.

    In the default templates that come with EE1.x, there’s an example for comments. Part of the example has a check for if logged_in.

    Or see: http://expressionengine.com/legacy_docs/modules/comment/form.html

    If you add in a section for checking the logged in status, then there is no showing of an email value. Can you change your template to be more like the one in the docs?

  • #5 / Dec 20, 2010 6:43am

    noregt

    360 posts

    I have this problem too, and I think it’s a bug.

    When you place

    {email}

    In the comment form loop, it will show the mail address of the entry poster and NOT the mail address of the logged-in user.

    However {name} DOES show the name of the logged in user.

    PS; I’m on EE 1.7.0

  • #6 / Dec 20, 2010 6:24pm

    Brandon Jones

    5500 posts

    Hi noregt,

    First, make sure you’re placing your comment form tag outside of exp:weblog:entries and on a single entry page. Inside the weblog:entries tag you’ll need to use the alternate syntax (logged_in_email) to get the email of the currently logged in user rather than the email of the entry author. Does that help?

    Bell Design, let us know if Sue’s suggestion works for you as well.

  • #7 / Dec 20, 2010 7:03pm

    noregt

    360 posts

    You’re right Brandon, taking the comment loop out of the weblog entry solves the problem. I’m also using if allow_comments, which only seems to work inside the entry loop, so I used the alternative syntax instead. 😊

  • #8 / Dec 21, 2010 1:29pm

    Lisa Wess

    20502 posts

    Hey, noregt - The comment entries tag/comment form tag aren’t intended to be inside the weblog entries tag.  I see you found a solution, but if those are still nested, you might investigate another way to meet your needs. =)

  • #9 / Dec 21, 2010 1:48pm

    noregt

    360 posts

    Thanks Lisa,

    I’m using {if allow_comments} {/if} to hide the complete comments loop if comments are not allowed for the entry. If I place it outside the weblog:entries tags, it will hide the comments, no matter what.

    If I don’t use {if allow_comments} {/if} it it will state : “Commenting is not available in this weblog entry” which is annoying when there are only a few entries available for commenting and the other 100 are not.

    So what the proper way to hide the comment loop when comments are not allowed?

  • #10 / Dec 22, 2010 5:24am

    John Henry Donovan

    12339 posts

    Hi Henk,

    Take a look at my reply here. The template example is for EE2.x but is easily used in EE1.x

    How are you getting on Bell Design?

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

ExpressionEngine News!

#eecms, #events, #releases