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.

Comment Form not showing

October 29, 2010 3:43am

Subscribe [5]
  • #1 / Oct 29, 2010 3:43am

    Ryan Downie

    170 posts

    Hello Guys,

    Not getting the comment form to show up on the site I am doing. The build is 20100810. There are no extensions, and comments are turned on for the channel. Even when I use the default form it will not show, even in a new template on its own for debugging.

    {exp:comment:entries sort="asc" limit="20"}
    
    {comment}
    
    By {name} on {comment_date format="%Y %m %d"}
    
    {/exp:comment:entries}
    
    {exp:comment:form preview="channel/preview"}
    
    {if logged_out}
    
    Name: <input type="text" name="name" value="{name}" size="50" /></p>
    
    Email: <input type="text" name="email" value="{email}" size="50" /></p>
    
    Location: <input type="text" name="location" value="{location}" size="50" /></p>
    
    URL: <input type="text" name="url" value="{url}" size="50" /></p>
    
    {/if}
    
    <textarea name="comment" cols="70" rows="10">{comment}</textarea></p>
    
    <input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information
    
    <input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?
    
    <input type="submit" name="submit" value="Submit" />
    <input type="submit" name="preview" value="Preview" />
    
    {/exp:comment:form}

    and url for test is. You can see its not in the source.

  • #2 / Oct 29, 2010 3:48am

    Tyssen

    756 posts

    Is the form inside a weblog entries tag?

  • #3 / Oct 29, 2010 3:59am

    Ryan Downie

    170 posts

    The main one is not, its sat below. And on the test page it is just the pure EE code.

  • #4 / Oct 29, 2010 11:23am

    Mark Bowen

    12637 posts

    Are you visiting the page with a URL title in it or just the template as it stands on it’s own?
    I’ve not really used 2.0 all that much but I would still imagine that it requires a URL title in order to work here.

    That or a supplied entry_id or url_title to the comment entries tag.

    Best wishes,

    Mark

  • #5 / Oct 29, 2010 11:42am

    jonathanmelville

    132 posts

    I think Mark is correct. It looks like you made a template called “test” but you’re not calling in a channel entry.

  • #6 / Oct 29, 2010 11:48am

    Mark Bowen

    12637 posts

    I didn’t even see the URL example above! Viewing on an iPhone so missed it.

  • #7 / Oct 29, 2010 11:50am

    Mark Bowen

    12637 posts

    Try this 😊

    http://www.ryandownie.net/index.php/test/test

    Best wishes,

    Mark

  • #8 / Oct 29, 2010 11:58am

    Paul Stone

    97 posts

    The comment tags and forms have to appear _within_ a weblog/channel:entries tag, don’t they, as they need to know what entry they relate to?

    Edit: couple of other posts snuck in before I pressed submit…

  • #9 / Oct 29, 2010 12:08pm

    Mark Bowen

    12637 posts

    The comment tags and forms have to appear _within_ a weblog/channel:entries tag, don’t they, as they need to know what entry they relate to?

    Edit: couple of other posts snuck in before I pressed submit…

    Nope as a general rule the comment entries tag should not go inside the channel entries tag. The url_title gives that information to the comment entries tag so 99 times out of a 100 you shouldn’t be nesting them like that.
    Best wishes,

    Mark

  • #10 / Oct 29, 2010 4:25pm

    Paul Stone

    97 posts

    Ah, thanks Mark.  I didn’t check any of my existing templates before I posted - was just going from memory (which was way off!!). I could of sworn they were supposed to be inside the entries tag,  but I just checked them now and luckily I wasn’t embedding them.

    Thanks again,
    Paul.

  • #11 / Oct 29, 2010 4:42pm

    Mark Bowen

    12637 posts

    Hi Paul,

    No problem at all. It can sometimes be difficult to remember if tags can (and more importantly should [sounds like something from Jurassic Park!]) be nested in that way but I’ve committed them all to memory now due to a couple of problems I had early on when starting out with ExpressionEngine 😉

    Hope this has helped you (Ryan) out a bit too though?

  • #12 / Oct 30, 2010 12:34pm

    Ryan Downie

    170 posts

    Hi Mark,

    Sorry not had time to reply, I figured it out a few moments after I posted this, it was missing what you posted. Was a long session so brain was pretty much fried. Thanks for the help.

  • #13 / Oct 30, 2010 12:40pm

    Mark Bowen

    12637 posts

    No problem.

    Glad it’s all sorted for you now.

    Best wishes,

    Mark

  • #14 / Oct 31, 2010 6:32pm

    Greg Salt

    3988 posts

    Hi Ryan,

    Glad that Mark and Jonathan got this sorted out for you.

    Cheers

    Greg

    @Mark and Jonathan, thanks very much for helping out.

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

ExpressionEngine News!

#eecms, #events, #releases