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

August 31, 2011 2:20pm

Subscribe [2]
  • #1 / Aug 31, 2011 2:20pm

    thefifthlion

    133 posts

    I’m running 2.2.2 and I wanted to add a comment form to a news page. I pasted in the following code but when I visit the page the form isn’t visible? I don’t get an error message, it’s just that none of the form fields/buttons are show up in the layout.  I am loading a certain version of jquery for my superfish menu, not sure if there’s any conflict there. I’m sure this is a FAQ. Any advice for a newbie?

    {exp:comment:form channel="news" preview="channel/preview"} {if logged_out} <label for="name">Name:</label> <input type="text" name="name" value="{name}" size="50" /><br > <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 31, 2011 2:35pm

    thefifthlion

    133 posts

    I wasn’t viewing a specific entry while testing per the comment form tag pair guidelines. Sorry for the newbie question.

  • #3 / Sep 01, 2011 12:03am

    Dan Decker

    7338 posts

    thefifthlion,

    Are you all set then? Is there anything else we can help you with?

    Cheers,

  • #4 / Sep 01, 2011 12:20am

    thefifthlion

    133 posts

    mark this one closed, thanks dan

  • #5 / Sep 01, 2011 12:24am

    Dan Decker

    7338 posts

    resolved

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

ExpressionEngine News!

#eecms, #events, #releases