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 module isn't working

August 10, 2008 10:58pm

Subscribe [2]
  • #1 / Aug 10, 2008 10:58pm

    lmb124

    38 posts

    After purchasing the Core expression engine version my comment module isn’t working. I’m not sure if this is something I’ve done or if its a technical issue. I have the comment module installed but once i make a comment template with the comment submission form and entries nothing displays at all. Any advise would be greatly i mean greatly appreciated.

    In case this helps, here is the code from my comments template.

    {exp:comment:entries weblog="submission"}
    <div class="user_comment">
    {comment}
    <div class="entry-info">Posted by {url_or_email_as_author}   on  {comment_date format='%m/%d'}  at  {comment_date format='%h:%i %A'}</div>
    </div>
    {paginate}
    <div class="navi-pages">
    Page {current_page} of {total_pages} pages  {pagination_links}
    </div>
    {/paginate}
    {/exp:comment:entries}
    
    
    
    <div class="user_comment">
    {exp:comment:form preview="graphembed/comment_preview"}
    
    {if logged_out}
    
    Name:
    
    <input type="text" name="name" value="{name}" size="50" />
    
    
    Email:
    
    <input type="text" name="email" value="{email}" 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" /></p>
    
    {/exp:comment:form}
    </div>
  • #2 / Aug 11, 2008 10:25am

    Robin Sowell

    13255 posts

    If the whole page is blank?  See what happens if you remove the captcha bit:

    {if captcha}
    Submit the word you see below:
    
    {captcha}
    
    
    <input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" />
    
    {/if}

    If it’s just the form not showing up- are you on a single entry page- one with the url_title or entry_id in the url?

    And- is this a Core version or the Personal/Pro version?  Wasn’t dead sure from the post.

  • #3 / Aug 11, 2008 11:17am

    lmb124

    38 posts

    I removed the captcha bit and the section is still blank.
    I’m useing the

    {comment_url_title_auto_path}

    on a href that goes to the page where the comment form and comments should appear.

    I placed a red border on the surrounding div to see if the template was even showing and the border shows but none of the content does.(SEE ATTACHED IMAGE)

  • #4 / Aug 11, 2008 11:17am

    lmb124

    38 posts

    Also i have the Core version Personal version.

  • #5 / Aug 11, 2008 11:19am

    Robin Sowell

    13255 posts

    Good call on the styling.  If it shows, it’s unlikely it’s a php error.  Make sure comments are enabled for the given entry- check in ‘options’ when you edit the entry.  And make sure commenting isn’t expired- though I’d expect something different if it were.

  • #6 / Aug 11, 2008 11:42am

    lmb124

    38 posts

    LOL ok that weblog entry had comment disabled 😛 !But I had to hard-code comment entry

    {exp:comment:entries weblog="submission" url_title="working_art"}

    . So now it’s displaying comment only for that entry but none of the other entries. Is there a way to dynamically have to comment on every entry instead of hard coding it?

  • #7 / Aug 11, 2008 11:45am

    Robin Sowell

    13255 posts

    😉  Yep- that would do it.  And- should be dynamic as long as you are on a single entry page- meaning url_title in the url- generally 3rd segment.  Is it possible to share the relevant url you’re using to view the page?

  • #8 / Aug 11, 2008 12:22pm

    lmb124

    38 posts

    Yes that possible.I’m not sure how it will work in your end because i have it set to membership required. I can disable that for testing i guess.

    Anyway,
    This is the Showcase Pagewhere the

    {comment_url_title_auto_path}

    takes you to the Showcase Details Page. But at this moment only then the hard coded entry “working art” the other entries are not displaying the comment form.

  • #9 / Aug 11, 2008 1:03pm

    lmb124

    38 posts

    Does the page have to be a ‘Single Entry’ Page to work?

  • #10 / Aug 11, 2008 1:07pm

    Robin Sowell

    13255 posts

    It has to be to work dynamically.  Er- that’s a simplification.  But it’s moot- looks like those are single entry pages:
    http://keshding.com/eecore/index.php/site/showcase_detail/broadway_motors/

    broadway_motors is a url title- right?  Looks like it.  Take out the url_title parameter.  You shouldn’t need it.  Yell back when you have and let’s see what’s up.

  • #11 / Aug 11, 2008 2:45pm

    lmb124

    38 posts

    I have it working but the only thing is i’m having to go and edit each weblog entry in the options section and enable comments.
    But in the admin > Weblog Administration ›  Weblog Management i have Allow comments in this weblog? maked as YES.
    So why is it defaulting to disable? And is there a way to change this to where it’s default to enabled? ❓

  • #12 / Aug 12, 2008 11:21am

    Robin Sowell

    13255 posts

    It should default to ‘Yes’ if you have ‘allow comments’ checked for the given weblog.  But- if it wasn’t checked when the entry was made- would have defaulted to not checked.  For a quick check- go add a new entry in that weblog- is it checked now?  If so- that’s what was up.

    (If you have a billion of these and you want to switch all of the ones in a given weblog to ‘yes’ for comments, I could likely come up with a quick query to do it- so yell back if you need it.)

  • #13 / Aug 12, 2008 12:12pm

    lmb124

    38 posts

    Yes i would like that query! Because i added a new weblog entry and it’s still defaults to No.

  • #14 / Aug 12, 2008 12:15pm

    Robin Sowell

    13255 posts

    Blarg- let’s get that bit working first.  Should default to ‘yes’.  And the query just fixes old ones, so…

    This is the personal version of EE - right?  NOT CORE.  (Because I don’t have Core and can’t swear how it works).

    Paste you’re whole footer from the cp here.

    Let me know any extensions you have installed.

    And… You’re dead sure that the weblog is set to ‘allow comments’?

  • #15 / Aug 13, 2008 9:06pm

    lmb124

    38 posts

    Yes, this is the personal version and im positive that the weblog is set to “Allow Comment” in the admin section.
    Footer from control panel states:

    ExpressionEngine 1.6.3 - © Copyright 2003 - 2008 - EllisLab, Inc.
    Script executed in 2.0929 seconds   21 SQL queries used
    Build:  20080319

    I do have extensions installed:
    Ez_rate_wc
    File, by Mark Huo
    URL Field Extension
    Simple Uploader

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

ExpressionEngine News!

#eecms, #events, #releases