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.

adding a comments page

October 23, 2008 7:03pm

Subscribe [1]
  • #1 / Oct 23, 2008 7:03pm

    stephanosuh

    9 posts

    Hi, I’m very new to coding and even html and css in general, but I’ve been following tutorials and other default templates to make my own from scratch. I have a little blog for one of my sites and I’d like to implement a basic comment system. You click on the comments link, you go to a single-entry page, and you can add a comment.

    When I add the comment tags, nothing shows up on my comments page, and I think the problem is that I’m supposed to link to the exact entry url. I’m not quite sure how to do this and I’ve been having a very difficult time even when studying ready-made templates.

    If someone could help me out, I’d appreciate it a lot, I’ve spent a lot of hours just trying to get this to work but to no avail. I really am very new to all of this, so please forgive my lack of knowledge… I’m sure the fix is quite simple, I just don’t know how to do it.

    My index url is http://stephanosuh.com/eec/index.php/play/index
    and my comments page url is http://stephanosuh.com/eec/index.php/play/comments/
    my comments preview page url is http://stephanosuh.com/eec/index.php/play/preview/ (but as of right now, basically the same as the comments page)

    Thanks in advance!

  • #2 / Oct 23, 2008 7:11pm

    stephanosuh

    9 posts

    if it helps, the code on each of my websites dealing with comments are as follows:

    index:

    @ {entry_date format='%h:%i %A'} is {categories}{category_name}{/categories}

    {if allow_comments}
    ({comment_total}) Comments
    {/if}

    comments and comment_preview pages:

    {exp:comment:preview}
    {comment}
    {/exp:comment:preview}


    {exp:comment:form}

    {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}


    <a >Smileys</a>

    <textarea name=“comment” cols=“50” rows=“12”>{comment}</textarea>


    {if logged_out}
    <input type=“checkbox” name=“save_info” value=“yes” {save_info} /> Remember my personal information
    {/if}

    <input type=“checkbox” name=“notify_me” value=“yes” {notify_me} /> Notify me of follow-up comments?

    {if captcha}
    Submit the word you see below:

    {captcha}


    <input type=“text” name=“captcha” value=”” size=“20” maxlength=“20” style=“width:140px;” />

    {/if}

    <input type=“submit” name=“submit” value=“Submit” />
    <input type=“submit” name=“preview” value=“Preview” />

    {/exp:comment:form}

  • #3 / Oct 24, 2008 3:29am

    stephanosuh

    9 posts

    ah.. never mind. Thanks but I figured it out eventually. The wonders a short nap will do.

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

ExpressionEngine News!

#eecms, #events, #releases