1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

reCaptcha 0.6

Discussion in 'Plugins' started by Nick, Mar 17, 2010.

  1. Nick

    Nick Well-Known Member

    reCaptcha
    Version: 0.6
    Author: Nick Ramsay
    Created on: 2010/03/17
    Last Updated:
    2010/11/19
    Tested on: Hotaru 1.4.2
    Plugins Required: None
    Plug & Play: Yes
    Supported: Yes

    Description
    The web's most popular anti-spam captcha system. By itself, it doesn't do anything, but other plugins can utilize it.

    Instructions
    1. Upload the "recaptcha" folder to your plugins folder.
    2. Install it from Plugin Management in Admin.
    3. To use it, you'll need to register at http://recaptcha.net/, get your keys and put them in Admin -> Plugin Settings -> reCaptcha.

    Notes for Plugin Developers
    Including reCaptcha in your plugin is quite simple. It uses two plugin hooks:

    PHP:
    $h->pluginHook('show_recaptcha'); // this should be wrapped in a form

    $result $h->pluginHook('check_recaptcha'); // check the captcha

    switch($result['ReCaptcha_check_recaptcha'])
    {
        case 
    'empty':
            
    // show error message for an empty captcha
            
    break;
        case 
    'error':
            
    // show error message for an incorrect answer
            
    break;
        case 
    'success':
            
    // captcha completed correctly
            
    break;
        default:
            
    // do nothing
    }
    For a working example, see /recaptcha/recaptcha_settings.php from approx. line 63.

    Revision History
    v.0.6 2010/11/17 - Nick - Fix for invalid argument error
    v.0.5 2010/09/17 - Nick - Fix for reCaptcha echo / return issues
    v.0.4 2010/09/08 - Nick - Fix for reCaptcha not being displayed
    v.0.3 2010/09/08 - Nick - Fix for not loading existing settings during upgrade
    v.0.2 2010/09/05 - George - Added the language, theme from the reCaptcha API.
    v.0.1 2010/03/17 - Nick - Released first version

    Please click "Rate Thread" and give this plugin a rating. Thank you.
     

    Attached Files:

    Last edited by a moderator: Sep 5, 2010
  2. hangbowl

    hangbowl New Member

    hmmm... if i am not wrong, i've see reCaptcha at user signin plugins ?
     
  3. Nick

    Nick Well-Known Member

    :confused: :confused: :confused:

     
  4. hangbowl

    hangbowl New Member

    aaahh... you mention that, sorry. i'm so tired in this few days. didn't read that :D
     
  5. Nick

    Nick Well-Known Member

    Hehe, I forgive you! :p
     
  6. nothingman

    nothingman Active Member

    I wonder why the recaptcha letters won't show up on Internet Explorer 8 for my site :confused: -> My registration Page

    Hotaru Version: 1.1.4
     
  7. Nick

    Nick Well-Known Member

    It's not just reCaptcha, all the images on your registration page are huge!!! (IE8 with compatibility mode OFF)

    nothingman_images.png
     
  8. caponx

    caponx New Member

    Hi
    I need help how to enable captcha on the submit page. I want a page where people can send link etc but i want to rule out the bots by implemet the recaptcha on the submit page.
    Im not a pro in PHP but if anyone got some helping hand here i would be very happy.
    I use the Shibuya Theme atm :) ( Great theeme btw )
    (sorry for bad english)

    EDIT..Hmm mayby i dont need it on the submit page, because i cant see that i can turn off " must be logged in to post" this one is forced isnt it?
    I wanted people to be able to post without register if its possible?
     
    Last edited: May 10, 2010
  9. Nick

    Nick Well-Known Member

    Sorry, it's not possible with the current plugins.
     
  10. petsagouris

    petsagouris Design & Development

    I've updated the plugin to version 0.2.0.
    You now can customize the language and choose one of the 4 default themes.

    Now the only thing missing for this plugin is the custom theming of the reCaptcha widget, maybe this will happen later on when there is need for it.
     
    Nick likes this.
  11. dragon

    dragon New Member

    ReCaptcha Problem

    I hope I'm posting this in right forum.

    I activated Recaptcha in plug-in management and got keys from Google, who now own Recaptcha.
    However, the plugin does not remember the private key, and the recaptcha does not show up when testing it in the plugin or on the registration form.

    Any advice or suggestions would be most welcome.

    Thanks!
     
  12. dragon

    dragon New Member

    Anyone have any ideas or suggestions for this?
     
  13. dragon

    dragon New Member

    Never mind guys. I removed this in favour of TOS Anti-spam.
     
    Last edited: Jan 29, 2011
  14. done

    done New Member

    still works fine for me
     
  15. carlo75

    carlo75 Design & Development

    Anyone has experienced this problem?

    In admin settings:
    Code:
    Warning: Invalid argument supplied for foreach() in --->/content/plugins/recaptcha/recaptcha_settings.php on line 142
    
    and in use (like from contact page)

    Code:
    Notice: Undefined index: recaptcha_i18n_lang in --->/content/plugins/recaptcha/libs/recaptchalib.php on line 117
    Thanks in advance
    regards
     
    Last edited: Oct 25, 2011
  16. sfifabian

    sfifabian New Member

    I have a question.

    I filled out the public key and private key fields and tested the reCaptcha in the plugin section, it works just fine. The problem is I don't see the recaptcha in the registration or login page.

    How can I solve this?
    Do I have to do something else?
     
  17. sfifabian

    sfifabian New Member


    I could make it work. At least now I see the recaptcha in the register page

    But there is another problem, when I try to register a user I get this:

    CSRF error. Please try again.
    Please confirm your password and try the captcha again
    An email has been sent to the address provided.
    Please confirm it to complete registration.
    Thank you!


    ???
     
  18. narc

    narc Well-Known Member

    need help, recaptcha version 0.6 dont work with hotaru 1.7.4 :(

    Code:
    Catchable fatal error: Argument 1 passed to ReCaptcha::loadSettings() must be an instance of Hotaru, instance of Libs\Hotaru given, called in /httpsdocs/content/plugins/recaptcha/recaptcha.php on line 46 and defined in/httpsdocs/content/plugins/recaptcha/recaptcha.php on line 104
     
  19. valMETNG

    valMETNG Administrator Staff Member Admin

    I've never used this plugin and don't have a recaptcha account to test. Would you please PM me you public and private key so I can test on my base build? The line numbers given in the error don't seem to correspond to the plugin code from what I'm seeing.
     
  20. valMETNG

    valMETNG Administrator Staff Member Admin

    Thanks. For some strange reason, a number of functions in multiple files were calling "Hotaru $h" instead of just $h. Probably a search and replace mistake. Try these files.
     

    Attached Files:

    narc likes this.

Share This Page