Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #329
    Josien
    Guest

    Hello,

    I don’t see the captcha on my comments page, here is my code:

    <?php

    /**
    * @package WordPress
    * @subpackage Kassyopea
    * @since Kassyopea 1.0
    */

    ?>

    <div id=”comments”>
    <?php if ( post_password_required() ) : ?>
    <p class=”nopassword”><?php _e( ‘This post is password protected. Enter the password to view any comments.’, ‘yiw’ ); ?></p>
    </div><!– #comments –>
    <?php
    /* Stop the rest of comments.php from being processed,
    * but don’t kill the script entirely — we still have
    * to fully load the template.
    */
    return;
    endif;
    ?>

    <?php
    // You can start editing here — including this comment!
    ?>

    <?php if ( have_comments() ) : ?>
    <h3 id=”comments-title”>
    <?php comments_number(__(‘geen reacties’, ‘yiw’), __(‘<span>1</span> reactie’, ‘yiw’), __(‘<span>%</span> reacties’, ‘yiw’)); ?>
    </h3>

    <?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) : // Are there comments to navigate through? ?>
    <div class=”navigation”>
    <div class=”nav-previous”><?php previous_comments_link( __( ‘<span class=”meta-nav”>←</span> Eerdere reacties’, ‘yiw’ ) ); ?></div>
    <div class=”nav-next”><?php next_comments_link( __( ‘Nieuwste reacties <span class=”meta-nav”>→</span>’, ‘yiw’ ) ); ?></div>
    </div> <!– .navigation –>
    <?php endif; // check for comment navigation ?>

      <?php
      /* Loop through and list the comments. Tell wp_list_comments()
      * to use twentyten_comment() to format the comments.
      * If you want to overload this in a child theme then you can
      * define twentyten_comment() and that will be used instead.
      * See twentyten_comment() in twentyten/functions.php for more.
      */
      wp_list_comments( array( ‘type’ => ‘reactie’, ‘callback’ => ‘yiw_comment’ ) );
      ?>

    <?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) : // Are there comments to navigate through? ?>
    <div class=”navigation”>
    <div class=”nav-previous”><?php previous_comments_link( __( ‘<span class=”meta-nav”>←</span> Older Comments’, ‘yiw’ ) ); ?></div>
    <div class=”nav-next”><?php next_comments_link( __( ‘Newer Comments <span class=”meta-nav”>→</span>’, ‘yiw’ ) ); ?></div>
    </div><!– .navigation –>
    <?php endif; // check for comment navigation ?>

    <?php else : // or, if we don’t have comments:

    /* If there are no comments and comments are closed,
    * let’s leave a little note, shall we?
    */
    if ( ! comments_open() ) :
    ?>
    <!–<p class=”nocomments”><?php _e( ‘ ‘, ‘yiw’ ); ?></p>–>
    <?php endif; // end ! comments_open() ?>

    <?php endif; // end have_comments() ?>

    <?php
    $commenter = wp_get_current_commenter();

    if ( is_user_logged_in() )
    $email_author = get_the_author_meta(‘user_email’);
    else
    $email_author = $commenter[‘comment_author_email’];

    $req = get_option( ‘require_name_email’ );
    $aria_req = ( $req ? ” aria-required=’true'” : ” );
    $url_avatar = get_template_directory_uri() . ‘//dfactory-53eb.kxcdn.com/images/noavatar.png’;
    $fields = array(
    ‘author’ => ‘<p class=”comment-form-author”>’ . ‘<label for=”author”>’ . __( ‘Name’ ) . ‘</label> ‘ .
    ‘<input id=”author” name=”author” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author’] ) . ‘” size=”30″‘ . $aria_req . ‘ /></p>’,
    ’email’ => ‘<p class=”comment-form-email”><label for=”email”>’ . __( ‘Email’ ) . ‘</label> ‘ .
    ‘<input id=”email” name=”email” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author_email’] ) . ‘” size=”30″‘ . $aria_req . ‘ /></p>’,
    ‘url’ => ‘<p class=”comment-form-url”><label for=”url”>’ . __( ‘Website’ ) . ‘</label>’ .
    ‘<input id=”url” name=”url” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author_url’] ) . ‘” size=”30″ /></p>’,
    );

    //$required_text = sprintf( ‘ ‘ . __(‘Required fields are marked %s’), ‘<span class=”required”>*</span>’ );
    $comment_args = array(
    ‘fields’ => apply_filters( ‘comment_form_default_fields’, $fields ),
    ‘comment_field’ => ‘<p class=”comment-form-comment”><label for=”comment”>’.__( ‘Uw reactie’, ‘yiw’ ).’ avatar</label><textarea id=”comment” name=”comment” cols=”45″ rows=”8″></textarea></p><div class=”clear”></div>’,
    ‘must_log_in’ => ‘<p class=”must-log-in”>’ . sprintf( __( ‘You must be logged in to post a comment.’ ), wp_login_url( apply_filters( ‘the_permalink’, get_permalink( get_the_ID() ) ) ) ) . ‘</p>’,
    ‘logged_in_as’ => ‘<p class=”logged-in-as”>’ . sprintf( __( ‘Logged in as %2$s. Log out?‘ ), admin_url( ‘profile.php’ ), $user_identity, wp_logout_url( apply_filters( ‘the_permalink’, get_permalink( get_the_ID() ) ) ) ) . ‘</p>’,
    ‘comment_notes_before’ => ”,
    ‘comment_notes_after’ => ”,
    ‘id_form’ => ‘commentform’,
    ‘id_submit’ => ‘submit’,
    ‘title_reply’ => __( ‘Laat een <span>reactie</span> achter’, ‘yiw’ ),
    ‘title_reply_to’ => __( ‘Laat den <span>reactie</span> achter voor %s’, ‘yiw’ ),
    ‘cancel_reply_link’ => __( ‘Annuleer reactie’, ‘yiw’ ),
    ‘label_submit’ => __( ‘Plaats reactie’, ‘yiw’ ),
    );

    comment_form( $comment_args );
    ?>
    </div><!– #comments –>

    #336
    Bartosz
    Keymaster

    Captcha should show up in the comments form. Maybe you are browsing the site and Hide captcha for logged in users is selected? In that case you won’t see the captcha. Only not logged users will.

    #338
    Josien
    Guest

    Thanks, that’s it…

    #5467
    falecomlincoln
    Participant
    This reply has been marked as private.
    #5470
    Bartosz
    Keymaster

    Hard to say. Captcha should work for all the default comment forms. If your comment form is customized there’s no reliable way we can hook into this and display captcha.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.