Support » Plugin: SI CAPTCHA Anti-Spam » SI CAPTCHA Anti-Spam position under Submit Commet

  • Resolved Pattaya_Web


    SI CAPTCHA Anti-Spam is appearing under the submit comment button and I’m unsure of what to move and where to move it.

    Any assistance will be appreciated. I believe it involves this section of the comment.php

    <?php } ?>
    <?php if ( $comment->comment_author_url ) { ?>
    <th scope="row"><?php _e('URL'); ?></th>
    <td><a href="<?php echo $comment->comment_author_url; ?>"><?php echo $comment->comment_author_url; ?></a></td>
    <?php } ?>
    <th scope="row" valign="top"><?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?></th>
    <td><?php echo $comment->comment_content; ?></td>
    <p><?php _e('Are you sure you want to do this?'); ?></p>
    <form action='comment.php' method='get'>
    <table width="100%">
    <td><a class="button" href="<?php echo admin_url('edit-comments.php'); ?>"><?php esc_attr_e('No'); ?></a></td>
    <td class="textright"><?php submit_button( $button, 'button' ); ?></td>
    <?php wp_nonce_field( $nonce_action ); ?>
    <input type='hidden' name='action' value='<?php echo esc_attr($formaction); ?>' />
    <input type='hidden' name='c' value='<?php echo esc_attr($comment->comment_ID); ?>' />
    <input type='hidden' name='noredir' value='1' />
Viewing 2 replies - 1 through 2 (of 2 total)
  • You are using WP3?

    You may have a theme that has a not properly coded comments.php

    When diagnosing missing or misplaced CAPTCHA field on comment form….
    The version of WP makes a difference…

    (WP2 series)
    Your theme must have a
    <?php do_action('comment_form', $post->ID); ?>
    tag inside your /wp-content/themes/[your_theme]/comments.php form. Most WP2 themes do. The best place to locate the tag is before the comment textarea, you may want to move it if it is below the comment textarea.

    (WP3 series)
    Since WP3 there is new function comment_form inside
    Your is theme probably not up to current code to call that function from inside comments.php.
    WP3 theme does not need the do_action(‘comment_form’… code line inside
    Instead, it uses a new function call inside comments.php:
    <?php comment_form(); ?>
    If you have WP3 and still have the missing captcha, make sure your theme has
    <?php comment_form(); ?>
    inside /wp-content/themes/[your_theme]/comments.php
    (look inside Twenty Ten theme for proper example)

    Was this any help?

    Hi Mike,
    Thanks. I had read that int he FAQs but was looking in the wrong place.

    Works like a charm.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SI CAPTCHA Anti-Spam position under Submit Commet’ is closed to new replies.