The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
CAPTCHA API - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17) +--- Thread: CAPTCHA API (/showthread.php?tid=49) |
CAPTCHA API - Ryan - Mar 11th, 2009 Hey, I'm trying to install reCAPTCHA and utilize the API with my forms, but where do I place the keys? The docs say in api.php "at the very top," but I see no variables already listed for them. Am I supposed to define the variables as such, underneath the "$g_api_version" and "$g_api_recaptcha_error" variables? PHP Code: $g_api_recaptcha_private_key = "6LcFewUAAAAAABZ2p9N9miHezsofyEPk6gGTrauq"; I'm trying to get this to work, but i've spent hours trying to figure all of this out. Sometimes PHP is tricky. Slowly but surely.. RE: CAPTCHA API - Ben - Mar 12th, 2009 Sorry, Ryan! You should add those two settings to your /global/config.php file, not the api.php file - the docs were outdated, there. The config.php file is always safe when it comes to upgrading: it's never overwritten. The api.php file sometimes is, hence the need to place the variables in that file. I'll go hunting through the docs right now to fix it. Sorry again! - Ben RE: CAPTCHA API - Ryan - Mar 12th, 2009 Ahh... ok. Thanks. I'll have to attempt my implementation again a little later. RE: CAPTCHA API - Ben - Mar 12th, 2009 Docs are fixed, btw. |