[Plugin: SI CAPTCHA Anti-Spam] Integration of SI Captcha in Custom Comments Form
-
Hello,
I’m trying to implement SI Captcha into a wordpress site I made but the captcha image and fields do not appear. After checking other posts it would seem that the plugin is designed to work with the standard WordPress comments.php form. However my theme uses a custom comments form and I have tried to utilize the info given in other posts here, to get it to work with my theme’s custom comments.php but I can’t seem to get it to work. I’ve tried for the past two days and still have had no luck. Is there anyone who can look at the code from my comments.php file and tell me what I should change to make this work? The code from the comments.php file is as follows:
?> <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.', 'adora' ); ?></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() ) : ?> <h5><?php printf( _n( 'One Response to "%2$s"', '%1$s Responses to "%2$s"', get_comments_number(), 'adora' ), number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); ?></h5> <?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', 'adora' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'adora' ) ); ?></div> </div> <!-- .navigation --> <?php endif; // check for comment navigation ?> <ol class="all-comments"> <?php wp_list_comments( array( 'callback' => 'adora_comments' ) ); ?> </ol> <?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', 'adora' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'adora' ) ); ?></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 echo __( '', 'adora' ); ?></p> <?php endif; // end ! comments_open() ?> <?php endif; // end have_comments() ?> <?php if ( comments_open() ) : ?> <h5><?php echo __('Leave a comment','adora') ?></h5> <p><?php echo get_option('ermad_blog_comment_text', "Feel free to leave a comment."); ?></p> <div class="clearfix spt"> <form method="post" id="commentform" action="<?php echo bloginfo('wpurl'); ?>/wp-comments-post.php"> <div class="form-comment"> <div class="left"> <div> <label><?php echo __('Your name','adora'); ?></label> <div class="input"><input name="author" id="author" value="" type="text" /></div> </div> <div> <label><?php echo __('E-mail','adora'); ?></label> <div class="input"><input type="text" name="email" id="email" value="" /></div> </div> <div> <label><?php echo __('Website (optional)','adora'); ?></label> <div class="input"><input type="text" name="url" id="url" value="" /></div> </div> <?php if (!is_mobile()){ echo '<a href="#" class="form-button">'.__('Submit comment','adora').'</a>'; } ?> </div> <div class="right"> <div> <label><?php echo __('Your Comment:','adora'); ?></label> <div class="textarea"><textarea name="comment" id="comment" rows="5" cols="25"></textarea></div> <?php if (is_mobile()){ echo '<input type="submit" style="width:inherit;" value="'.__('Submit comment','adora').'">'; } ?> </div> </div> </div> <div><input name="comment_post_ID" value="<?php echo $post->ID ?>" type="hidden" /></div> </form> </div> <?php endif; // end ?> </div><!-- #comments -->
https://www.ads-software.com/extend/plugins/si-captcha-for-wordpress/
- The topic ‘[Plugin: SI CAPTCHA Anti-Spam] Integration of SI Captcha in Custom Comments Form’ is closed to new replies.