Comments Plus not showing

Hi, seems my theme is not good for Comments Plus but I dont want to change it…

can you help me to solve the hooks problem? Im newbie at this “hooks” stuff.

Here is my comment.php and comment-template.php from WP

comment-template.php

http://www.pastebin.com/rrvLuxgD

comment.php

http://www.pastebin.com/zWF3cf5n

And here is the comments.php from my theme

http://www.pastebin.com/1F8ZNArs

Thanks in advance!

  • Timothy
    • Chief Pigeon

    Hey Juan, I hope you are well.

    Here is the form in the code:

    comment-template.php

    <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>">
    <?php do_action( 'comment_form_top' ); ?>
    <?php if ( is_user_logged_in() ) : ?>
    <?php echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity ); ?>
    <?php do_action( 'comment_form_logged_in_after', $commenter, $user_identity ); ?>
    <?php else : ?>
    <?php echo $args['comment_notes_before']; ?>
    <?php
    do_action( 'comment_form_before_fields' );
    foreach ( (array) $args['fields'] as $name => $field ) {
    echo apply_filters( "comment_form_field_{$name}", $field ) . "n";
    }
    do_action( 'comment_form_after_fields' );
    ?>
    <?php endif; ?>
    <?php echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); ?>
    <?php echo $args['comment_notes_after']; ?>
    <p class="form-submit">
    <input name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
    <?php comment_id_fields( $post_id ); ?>
    </p>
    <?php do_action( 'comment_form', $post_id ); ?>
    </form>

    So you could so this:

    <?php do_action("comment_form_before");?>
    <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>">
    <?php do_action( 'comment_form_top' ); ?>
    <?php if ( is_user_logged_in() ) : ?>
    <?php echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity ); ?>
    <?php do_action( 'comment_form_logged_in_after', $commenter, $user_identity ); ?>
    <?php else : ?>
    <?php echo $args['comment_notes_before']; ?>
    <?php
    do_action( 'comment_form_before_fields' );
    foreach ( (array) $args['fields'] as $name => $field ) {
    echo apply_filters( "comment_form_field_{$name}", $field ) . "n";
    }
    do_action( 'comment_form_after_fields' );
    ?>
    <?php endif; ?>
    <?php echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); ?>
    <?php echo $args['comment_notes_after']; ?>
    <p class="form-submit">
    <input name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
    <?php comment_id_fields( $post_id ); ?>
    </p>
    <?php do_action( 'comment_form', $post_id ); ?>
    </form>
    <?php do_action("comment_form_after");?>

    That should add the hooks you need. :slight_smile:

    Take care.

  • Timothy
    • Chief Pigeon

    Hey Juan.

    I’m not sure I follow your question?

    In the comment template you will find the html <form> tags, which I shown within the first code snippet.

    Popping the hooks around that as I did in the second code snippet should allow our plugin to overrule the form with ours.

    I didn’t see a form in the other file, did I miss it?

    If you are still unsure of something then please let me know. :slight_smile:

    Take care.

  • Timothy
    • Chief Pigeon

    Hey again. I could take a closer look for you.

    Please provide full network admin access and full FTP access. You can mail those details in using our contacts form:

    https://premium.wpmudev.org/contact/

    Be sure to mark it to my attention so that its not overlooked.

    Don’t worry if I don’t respond straight away, its late here and I’m about to sign off for the evening, but I will look into it once I get back to the computer. :slight_smile:

    Take care.

    Tim.

  • JuanMalaga
    • New Recruit

    Thanks Tim! Im trying to fix this since many hours ago :slight_frown:

    If i send the login details right now can you get a quick view for it please?! I dont want to continue working in the site having this problem and I love this plugin :slight_frown:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.