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]
  • #16 / Aug 17, 2008 1:01pm

    Robin Sowell

    13255 posts

    Sorry this slipped by me for so long.  An update would be advisable, but let’s try two things.  First- disable all extensions- big button on the upper-right in ‘Admin- Utilities- Extensions Manager’.  Now go to add a new entry in that weblog- allow comments still unchecked by default?

    If so- let’s double check the db.  In ‘Admin- Utilities- SQL Manager- DB query form’ run

    SELECT weblog_id, deft_comments FROM exp_weblogs

    What’s that come back with?

  • #17 / Aug 17, 2008 3:53pm

    lmb124

    38 posts

    Ok i disabled the extensions and the allow comments still default to off when i added a new entry.
    I ran the Query and it came back with:

    weblog_id   deft_comments
    9   y
    10   y
    6   y
    4   y
    8   y
    7   y
    11   y

  • #18 / Aug 17, 2008 8:09pm

    Robin Sowell

    13255 posts

    DB definitely has them allowed.  If- on a new entry- the ‘Allow comments’ checkbox shows in the ‘options’ tab- and it’s unchecked?  Even with extensions disabled?  Do you mind pm’ing me superadmin access so I can see it in action.  Looking at the code, I’m not spotting how it could happen.

  • #19 / Aug 17, 2008 9:44pm

    lmb124

    38 posts

    ok i will do that.

  • #20 / Aug 17, 2008 10:06pm

    Matt Weinberg

    489 posts

    Sorry to jump in, but could it also be the “select allow comments by default” option in weblog preferences—>Administration Preferences?

  • #21 / Aug 17, 2008 10:15pm

    Robin Sowell

    13255 posts

    Hee- it could be.  But…  just logged in- and for a new entry, it was showing ‘allow comments’ checked for all but one weblog.  For that one, didn’t show the option at all.  In a quick double check, comments weren’t allowed for that weblog.  I flipped it so they were- weblog was ‘Resources Communitee’.

    Went through all of them via Publish tab- and all now show ‘Allow Comments’ checked.  Note- it’s only going to be for new entries.  Old entries will pick up whatever the existing permission is.

    But thanks, slapshotw.  Didn’t even cross my mind to double check that one.  (It’s ‘yes’ by default- but could have been flipped at some point in time and then forgotten.)

    Imb124- are new entries showing with ‘Allow comments’ checked for you, or is it still goofing?

  • #22 / Aug 18, 2008 9:30am

    lmb124

    38 posts

    No the comment still aren’t activated by default when i add a new entry to submissions or sub_wall . I’m adding my entry through a SAEF on the front end and when i view the page there still isn’t a form showing.

    The entries that have “allow comments” checked are because i manually went through the edit tab and checked all them.

    Any advise on why this happening?

  • #23 / Aug 18, 2008 10:59am

    lmb124

    38 posts

    I wonder! Is there something i have to call on the form to let the weblog to know to turn comments on?

  • #24 / Aug 18, 2008 11:02am

    Robin Sowell

    13255 posts

    No- it’s working on the publish page- I checked.  But sounds like the issue is occurring when you publish via the SAEF- correct?  What’s your code for the comment checkbox look like on the SAEF?  And note- this is going to apply to new entries.  For edits, you’ll need to handle them differently.

  • #25 / Aug 18, 2008 11:31am

    lmb124

    38 posts

    Ok i understand this is for new entries that fine 😊.
    Heres my code for the SAEF i don’t believe i have a check box for comments?

    
    									
  • #26 / Aug 18, 2008 11:38am

    Robin Sowell

    13255 posts

    Ah- that’s the problem.  Basically- if you don’t specify ‘y’ for the comments, then it will go in as ‘no’.  To allow them the option- and have it respect the backend settings- try adding

    <input type="checkbox" name="allow_comments" value="y" {allow_comments} /> Allow Comments

    Note- if you just want to always allow them, you could put it in as a hidden field

    <input type="hidden" name="allow_comments" value="y" />

    Make sense?

  • #27 / Aug 18, 2008 11:57am

    lmb124

    38 posts

    WOW! YES THAT MAKES ALOT OF SINCE! All this time it was something that simple AMAZING!

    WELL I AM VERY GRATEFUL FOR YOU TAKING THE TIME TO HELP WITH THIS!!! VERY VERY GRATEFUL!

    U ROCK!

  • #28 / Aug 18, 2008 11:59am

    Robin Sowell

    13255 posts

    😉  Well, I was slow because I was all focused on the backend rather than the SAEF.  Should have spotted it faster.  On the plus side- logging in helped get the email issue squared, so it’s all good.

    Glad it’s working now.  And I shall close this puppy out!

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

ExpressionEngine News!

#eecms, #events, #releases