Any wordpress plugin image captcha with shortcode

3.5k views Asked by At

I am trying to use a Image Captcha plugin on my website.

Currently I am using google reCaptcha plugin with V2.

But I need a captcha with Image (like Flexible Captcha), I tried using it, but Image dosen't load for this plugin.

I searched for many, but I want it with short code, so that I can place it on my custom forms.

Or If anyone knows how to remove image issue with "Flexible Captcha" plugin, please post your solution.

Edit:

I also tried to use the Securimage-WP plugin as suggested by drew010. Following is the output of plugin:

On Admin settings for plugin: enter image description here

On Login page: enter image description here

Note: My website URL is like http:abc.com/myWebFolder/

Is this thing breaks the plugin to work or it could be the theme issue.

Thanks

3

There are 3 answers

1
drew010 On

My plugin Securimage-WP offers a shortcode for putting a captcha on a custom form.

The plugin also defines a function which you can then call to validate the submitted CAPTCHA.

I have posted a gist here which shows a WordPress page that uses the shortcode on a form and then validates the form and CAPTCHA. Note: Since this page uses PHP, you will need a plugin (I use Exec-PHP) that allows you to run PHP code in posts and pages.

If you need to validate the CAPTCHA in a form processor that is independent of WordPress, you can hook into WP and the plugin by including wp-load.php from the root of your WordPress install.

Comment if you have any questions. Hope this helps!

1
user1400290 On

thank you drew010 for your help, I made complete new installation of wordpress & used your plugin & it worked, then I also used Flexible Captcha plugin & that also worked. Then in order to debug the real problem I add my custom plugin code in new Wordpress. Then it braked. Therefore, to debug more I added each method in my plugin & tested it worked with method. The culprit was following code:

/**/
?>

<?php 
 function displayLoginForm() {

 /*
ob_start();
get_template_part( 'signin-form' );
$ret = ob_get_contents();  
ob_end_clean();  
return $ret; */ 
ob_start();  
include(ABSPATH . "wp-content/plugins/tus-forms/Views/sign-in.php"); 
 $output = signin_get_clean();
 return $output;

 }
 ?>

Changing above into following solved my problem:

 function displayLoginForm() {

     /*
    ob_start();
    get_template_part( 'signin-form' );
    $ret = ob_get_contents();  
    ob_end_clean();  
    return $ret; */ 
    ob_start();  
    include(ABSPATH . "wp-content/plugins/tus-forms/Views/sign-in.php"); 
     $output = signin_get_clean();
     return $output;

 }

?>

But I still don't know the real reason behind this issue? but finally it worked.

Thanks

0
naveenkumar.s On

Captcha On Login This plugin is more flexible with image and its having another feature include of blocking ip and removing ip from blocked. I am using this plugin it is really good.

enter image description here