how to make possible to view the captcha box in the comments ?
-
I try few extensions to have a captcha with the comments, but the captcha box does not appear in the comment’s’block. I think the problem should be in the wp-includes => wp_comments.php wich have perhaps an old code.
Can someone help me to resolve this issue ?
-
Which wordpress version you are using?
Please try this plugin.
https://www.ads-software.com/plugins/captcha/I hope, this will work.If you still have same issue then let me know.
I try with this plugin, but it still the same problem…
I can’t see tha captcha and if I post a comment, I see an error (in french): Erreur: Merci de compléter le CAPTCHA. Appuyez sur le bouton retour de votre navigateur et essayez de nouveau.
traduction : “Error: Please complet the CAPTCHA. Press the button Back to refresh the page and try again.”Google Captcha (reCAPTCHA) plugin allows you to implement a super security Captcha into web forms. This plugin can be used for login, registration, password recovery, comments forms
so you can install https://www.ads-software.com/plugins/google-captcha/Ok, I try with google-captcha, but I see nothing in the comments, It’s possible to post a comment, but there is no captcha…
It is strange… I have a look in the single.php folder. It’s seem to be correct :
<?php get_header(); ?> <div class="mh-wrapper clearfix"> <div id="main-content" class="mh-content"><?php while (have_posts()) : the_post(); get_template_part('content', 'single'); mh_after_post_content(); comments_template(); endwhile; ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>
and the comments.php look like this :
<?php /* Comments Template */ if (post_password_required()) { return; } if (have_comments()) { $comments_by_type = separate_comments($comments); if (!empty($comments_by_type['comment'])) { $comment_count = count($comments_by_type['comment']); ?> <div id="mh-comments" class="mh-comments-wrap"> <h4 class="mh-section-title"> <?php printf(_n('1 Comment on %2$s', '%1$s Comments on %2$s', $comment_count, 'mh-edition-lite'), number_format_i18n($comment_count), get_the_title()); ?> </h4> <ol class="commentlist mh-comment-list"> <?php echo wp_list_comments('callback=mh_edition_lite_comments&type=comment'); ?> </ol> </div><?php } if (get_comments_number() > get_option('comments_per_page')) { ?> <nav class="mh-comments-pagination"> <?php paginate_comments_links(array('prev_text' => __('«', 'mh-edition-lite'), 'next_text' => __('»', 'mh-edition-lite'))); ?> </nav><?php } if (!empty($comments_by_type['pings'])) { $pings = $comments_by_type['pings']; $ping_count = count($comments_by_type['pings']); ?> <h4 class="mh-section-title"> <?php printf(__('%s Trackbacks & Pingbacks', 'mh-edition-lite'), $ping_count); ?> </h4> <ol class="pinglist mh-ping-list"> <?php foreach ($pings as $ping) { ?> <li id="comment-<?php comment_ID() ?>" <?php comment_class('mh-ping-item'); ?>> <?php echo '<i class="fa fa-link"></i>' . get_comment_author_link($ping); ?> </li> <?php } ?> </ol><?php } if (!comments_open()) { ?> <p class="mh-section-title mh-no-comments"> <?php _e('Comments are closed.', 'mh-edition-lite'); ?> </p><?php } } else { if (comments_open()) { echo '<h4 id="mh-comments" class="mh-section-title mh-comment-form-title">' . __('Be the first to comment', 'mh-edition-lite') . '</h4>' . "\n"; } } if (comments_open()) { comment_form(array( 'title_reply' => __('Leave a Reply', 'mh-edition-lite'), 'comment_notes_before' => '<p class="comment-notes">' . __('Your email address will not be published.', 'mh-edition-lite') . '</p>', 'comment_notes_after' => '', 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . __('Comment', 'mh-edition-lite') . '</label><br/><textarea id="comment" name="comment" cols="45" rows="5" aria-required="true"></textarea></p>' )); } ?>
What’s the matter ? I still don’t understand how to get visible the captcha in the comments !!
in my functions.php, I’ve got :
/***** Custom Comment Fields *****/ if (!function_exists('mh_edition_lite_comment_fields')) { function mh_edition_lite_comment_fields($fields) { $commenter = wp_get_current_commenter(); $req = get_option('require_name_email'); $aria_req = ($req ? " aria-required='true'" : ''); $fields = array( 'author' => '<p class="comment-form-author"><label for="author">' . __('Name ', 'mh-edition-lite') . '</label>' . ($req ? '<span class="required">*</span>' : '') . '<br/><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 ', 'mh-edition-lite') . '</label>' . ($req ? '<span class="required">*</span>' : '' ) . '<br/><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', 'mh-edition-lite') . '</label><br/><input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30" /></p>' ); return $fields; } } add_filter('comment_form_default_fields', 'mh_edition_lite_comment_fields');
I think the problem can be the order of the forms…
sorry, before it was a file in the folder /includes calles mh-custom-functions.php
Hi rodinux,
thanks for using MH Edition lite.
You need to configure the particular plugins properly. For example when you use the Captcha by BestWebSoft plugin, it won’t show the CAPTCHA when you are logged into your website.
If you want to enable the CAPTCHA for logged in users, then you need to uncheck the Hide CAPTCHA in Comments form for registered users option which you can find in the Basic options panel of the plugin.
Ok, thanks, I finally resolved the issue with google Captcha by websoft. Thanks for your attention.
Also, my problem was because I have check comments on Jetpack, I have to deactivate it
Finally, I use Captcha by BestWebSoft as you say, and it’s working fine.
- The topic ‘how to make possible to view the captcha box in the comments ?’ is closed to new replies.