WordPress.org

Forums

Captcha by BestWebSoft
[resolved] Comment Form disappears when activating plugin (3 posts)

  1. Alkarod
    Member
    Posted 2 years ago #

    Greetings.

    I have a problem with the plugin. When activated, my form for comments disappears.

    Looks like some kind of error originates in the function that generates the form. The only code that returns is:
    <form action="http://www.movired.com/wp-comments-post.php" method="post" id="">
    <p class="form-submit">
    <input name="submit" type="submit" id="" value="" />
    <input type='hidden' name='comment_post_ID' value='621' id='comment_post_ID' />
    <input type='hidden' name='comment_parent' id='comment_parent' value='0' />
    </p>
    <p class="cptch_block">
    <input type="hidden" name="cptch_result" value="oNs=" />
    <input type="hidden" value="Version: 2.4" />
    tres + 2 = <input type="text" autocomplete="off" name="cptch_number" value="" maxlength="2" size="2" style="width:20px;margin-bottom:0;display:inline;font-size: 12px;width: 30px;" />
    </p>
    </form>

    As you see, the form that is generated does not contain any field and submit button does not have its full attributes.

    Thank you very much for your help

    http://wordpress.org/extend/plugins/captcha/

  2. someguy03
    Member
    Posted 2 years ago #

    I am having this problem as well. I just emailed the developer regarding this.

  3. bestwebsoft
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

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

    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 file. Most WP2 themes
    already do. The best place to locate the tag is before the comment
    textarea, you may want to move it up if it is below the comment
    textarea.

    (WP3 series) Since WP3 there is new function comment_form inside
    /wp-includes/comment-template.php. Your theme is 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
    /wp-content/themes/[your_theme]/comments.php. Instead, it uses a new
    function call inside comments.php: <?php comment_form(); ?> If you
    have WP3 and still have captcha missing, make sure your theme has
    <?php comment_form(); ?> inside
    /wp-content/themes/[your_theme]/comments.php. (look inside the Twenty
    Ten theme's comments.php for proper example)

    Regards.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Captcha by BestWebSoft
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.