WordPress.org

Ready to get started?Download WordPress

Forums

Comment Form // PHP Help Needed! (3 posts)

  1. jstwst
    Member
    Posted 11 months ago #

    Hi guys,

    I've got a question about editing the original wordpress comment form. Let me first explain the problem.

    I'm using a theme which uses a very nice custom contact-form including a very nice captcha form.

    For comments, the theme uses the default wordpress comment form which can be found in /wp-includes/comment-template.php

    The thing is, I want the captcha form from the custom contact form included into the default comment form.

    I've found out that the contact-form (to be found in one direction up: /wp-content/themes/THEMEHERE/includes/contact-form.php) uses the following code to display the captcha:

    if(avia_get_option('contact-form-captcha') === 'active')
    	{
    		$elements['age'] =	array('type'=>'captcha', 'check'=>'captcha', 'label'=> __('Please proof that you are human by solving the equation','avia_framework'));
    	}

    Is there any way to include this captcha into the default comment form?

    Additional information:
    http://www.justinwust.com
    and the custom contact form with captcha: http://www.justinwust.com/contact/

    Thanks in advance!

  2. Somegirlwitha.com
    Member
    Posted 11 months ago #

    would it be easier just to use a plugin?

    http://wordpress.org/extend/plugins/search.php?q=captcha

  3. jstwst
    Member
    Posted 11 months ago #

    Yes, it is. But i've been unable to get the exact same format / markup with these plugins. Is the method I requested a hard one?

Reply

You must log in to post.

About this Topic