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 won't display

August 29, 2011 5:50pm

Subscribe [3]
  • #1 / Aug 29, 2011 5:50pm

    Podzol

    80 posts

    Hello,
    I have probably made a simple oversight. I am using EE2

    I am using the stock comment form and I switched the channel name. I have the comment module set to “installed,”  enabled comments in the channel, and have logged in as a superadmin. I have set moderation to “no.” I cannot see the comment form. I’ve looked closely at the examples and the code in the Boyink book and can’t figure out why I can’t see the form.
    I have the comments form tag below the closed entries tag. The channel entry shows up fine.

    Any ideas?
    Thank you very much.

    {exp:channel:entries channel="feedback" }
    {title}
    {/exp:channel:entries}
    
    
    {exp:comment:form channel="feedback" preview="channel/preview"}
     {if logged_out} <label for="name">Name:</label> 
    <input type="text" name="name" value="{name}" size="50" />
    
     <label for="email">Email:</label>
     <input type="text" name="email" value="{email}" size="50" /><br > <label for="location">Location:</label>
     <input type="text" name="location" value="{location}" size="50" /><br > <label for="url">URL:</label>
     <input type="text" name="url" value="{url}" size="50" /><br > 
    {/if}
    
     <label for="comment">Comment:</label>
    
     <textarea name="comment" cols="70" rows="10">{comment}</textarea>
     <label><input type="checkbox" name="save_info" value="yes" {save_info} />
     Remember my personal information</label>
     
    <label><input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?</label>
    
    
    
     {if captcha} <label for="captcha">Please enter the word you see in the image below:</label>
    
     {captcha}
     <input type="text" name="captcha" value="{captcha_word}" maxlength="20" /></p> 
    {/if}
     <input type="submit" name="submit" value="Submit" /> <input type="submit" name="preview" value="Preview" />
    
     {/exp:comment:form}
  • #2 / Aug 29, 2011 8:30pm

    Boyink!

    5011 posts

    Is commenting enabled in the channel and entry?  Do you see anything different if using a different browser where you aren’t logged in?

  • #3 / Aug 29, 2011 8:43pm

    Mark Bowen

    12637 posts

    What type of URL are you visiting which this form is on?

    Do you have either the entry_id or the url_title in the URL?

    The Comment Entries Tag relies upon that to work correctly. Not sure if that would prevent the form from showing though.

    Best wishes,

    Mark

  • #4 / Aug 29, 2011 8:50pm

    Podzol

    80 posts

    Hey, it’s Master Boyink himself! And Mark, who has helped me before, too. 😊

    Yes, comments are enabled in the actual entry as well as the channel.

    The page displays the same whether I am logged in as superadmin, admin, or not logged in at all. It’s all there except the comment form.

    No, I don’t have those in the url. When it add the entry_id, WOW! There it is.

    Thanks so much for your help on this simple one. Sometimes I get a snag and can’t see past it.

    Your book is great, Mr. Boyink. We have 3 or 4 copies of it at work.

  • #5 / Aug 29, 2011 8:53pm

    Mark Bowen

    12637 posts

    No, I don’t have those in the url. When it add the entry_id, WOW! There it is.

    Thanks so much for your help on this simple one. Sometimes I get a snag and can’t see past it.

    Aha! Thought it might be that somehow. Yep you will definitely need to be visiting a URL with either the entry_id or url_title in it in order for the form to show.

    That or you supply the details to the form using the form parameters :

    http://ellislab.com/expressionengine/user-guide/modules/comment/form.html#par_entry_id

    or

    http://ellislab.com/expressionengine/user-guide/modules/comment/form.html#par_url_title

    Glad that got you sorted though.

    Best wishes,

    Mark

  • #6 / Aug 30, 2011 11:52am

    Boyink!

    5011 posts

    Thanks…always good to hear!

  • #7 / Sep 02, 2011 9:26pm

    Mark Bowen

    12637 posts

    Closing this one out as the problem is now sorted.

    Thanks all.

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases