ThemeShaper Forums » Thematic

[closed]

THEMATIC_COMPATIBLE_COMMENT_HANDLING

(7 posts)
  • Started 3 years ago by krowchuk
  • Latest reply from krowchuk
  • This topic is resolved
  1. Hi,

    found in page.php...

    // calling the comments template
    if (THEMATIC_COMPATIBLE_COMMENT_HANDLING) {
    if ( get_post_custom_values('comments') ) {
    // Add a key/value of "comments" to enable comments on pages!
    thematic_comments_template();
    }
    } else {
    thematic_comments_template();
    }

    So, I decided to give this a spin and made a custom key/value of comments, which did not turn comments on for that page.

    Is there something else I need to add into my child functions.php to activate this feature?

    Posted 3 years ago #
  2. read the release notes sticky

    http://forums.themeshaper.com/topic/thematic-0976-is-online-important-release-notes

    it says exactly how to enable thematic compatible comments (as well as body classes, etc)

    Posted 3 years ago #
  3. That's already in my functions.php!

    I popped it all in there when I grabbed the dynamic classes.
    So... is there something else I need to add or is this supposed to be it?

    // Unleash the power of Thematic's dynamic classes
    
    define('THEMATIC_COMPATIBLE_BODY_CLASS', true);
    define('THEMATIC_COMPATIBLE_POST_CLASS', true);
    
    // Unleash the power of Thematic's comment form
    
    define('THEMATIC_COMPATIBLE_COMMENT_FORM', true);
    
    // Unleash the power of Thematic's feed link functions
    
    define('THEMATIC_COMPATIBLE_FEEDLINKS', true);
    Posted 3 years ago #
  4. It looks like we left one out in that thread.

    add:

    define('THEMATIC_COMPATIBLE_COMMENT_HANDLING', true);

    to restore the custom field activated page comments.

    Posted 3 years ago #
  5. Thanks em hr,

    I have added that one as well, but I don't see any change. Perhaps I am not understanding how this works...

    I added a custom field key of comments with the value of comments as per

    // Add a key/value of "comments" to enable comments on pages!

    but I still have to tick the comments on box? which I could do without this function added...

    What am I misunderstanding here?

    Cheers!
    Chris

    Posted 3 years ago #
  6. Hi Chris,

    With Thematic 0.9.6.2 and earlier if you wanted comments on "Pages" you would need to:

    1. set the "Discussion" settings to allow comments on on the Admin>Pages>EditPages or Admin>Pages>NewPage screen.
    2. add a custom field/key of comments to have Thematic display the comment form and comments on that page.

    So step one was enabling comments via WP. Step two was enabling comments display via the theme.

    Being able to have a master switch that turned off comment display on "Pages" by default and allow custom field control over comments on a per-page basis was intended to be a feature of Thematic.

    This was later disabled by default in 0.9.7.6. Adding the constant enables the older feature set again.

    -Gene

    Posted 3 years ago #
  7. Ah thanks Gene for the explanation.

    I guess in a nutshell, because I started using Thematic after this was disabled in 0.9.7.6 I don't really need to concern myself with it? I can just use the WP function to tick the allow comments box for specific pages. Yes? At any rate, that works for me.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.