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.

Comments are not showing up.

June 10, 2008 8:13pm

Subscribe [0]
  • #1 / Jun 10, 2008 8:13pm

    nyeoman

    94 posts

    I’m a little confused with the comments functionality of EE.

    I’m trying to create a comment submission form on my kb pages, and followed this page:
    http://expressionengine.com/docs/modules/comment/entries.html#submission_form

    I must need a more detailed “How To” as I can’t get the form to show up.

    If you need more information please ask.

  • #2 / Jun 10, 2008 8:50pm

    Justin Hurlburt

    344 posts

    Greetings!

    May I see a sample of your code containing the exp:comment:form tag?

  • #3 / Jun 10, 2008 8:53pm

    nyeoman

    94 posts

    Here is the container code:

    <div class="kb-body">
    
    {exp:weblog:entries weblog="{embed:weblogs}" limit="1" rdf="off" disable="trackbacks" }
        <h1 class="kb">{title}</h1>
        {exp:markdown}{body}{/exp:markdown}
        Last Updated: {edit_date format="%M %d, %Y"}
        
    
        {if extended}
            {extended}
        {if:else}
    
    {!-- Start Comments --}
        {embed="include/inc-comments-form" weblogs="{embed:weblogs}"}
    {!-- End comments --}
    
    
            {embed="include/inc-same-cat" catid="{categories}{category_id}{/categories}" weblogs="{embed:weblogs}"}
        {/if}
    
    
        
    {/exp:weblog:entries} 
    
    
    </div>
  • #4 / Jun 12, 2008 6:18pm

    nyeoman

    94 posts

    This is the embeded form from the code above

    Comments:
    {exp:comment:form weblogs="{embed:weblogs}"}
    
    {if logged_out}
    
    Name: <input type="text" name="name" value="{name}" size="50" />
    
    Email: <input type="text" name="email" value="{email}" size="50" />
    
    Location: <input type="text" name="location" value="{location}" size="50" />
    
    URL: <input type="text" name="url" value="{url}" size="50" />
    
    {/if}
    
    <textarea name="comment" cols="70" rows="10">{comment}</textarea>
    
    <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?
    
    {if captcha}
    
    Please enter the word you see in the image below:
    
    {captcha}
    
    <input type="text" name="captcha" value="{captcha_word}" maxlength="20" />
    
    {/if}
    
    <input type="submit" name="submit" value="Submit" />
    <input type="submit" name="preview" value="Preview" />
    
    {/exp:comment:form}

    I’m pretty sure I’m missing something I have to setup.  If someone could run through all the steps I need to take in the CP and the templates I would appreciate that.

    The documentation only explains the code to post: http://expressionengine.com/docs/modules/comment/form.html

  • #5 / Jun 12, 2008 7:06pm

    Justin Hurlburt

    344 posts

    What is the URL when visiting the page you are trying to view comments on?

  • #6 / Jun 12, 2008 7:09pm

    nyeoman

    94 posts

  • #7 / Jun 12, 2008 7:37pm

    Justin Hurlburt

    344 posts

    Comments require a ‘single-entry’ page, and weren’t designed work with Pages URI. However, you could fake it with PHP on input. Something like…

    <?php global $IN;
    $IN->QSTR = ($IN->Pages_QSTR != '') ? $IN->Pages_QSTR : $IN->QSTR;
    ?>

    Let us know how it works out for you.

  • #8 / Jun 12, 2008 7:41pm

    nyeoman

    94 posts

    Faking it totally works.

    Thanks

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

ExpressionEngine News!

#eecms, #events, #releases