MaciejO Posted January 10, 2011 Report Share Posted January 10, 2011 Hello, always were interested how to do recaptcha that would work with phpvms on "Cutstom Pages", were trying to do something this morning, but i think its still to hard for me, if anyone has done it could you please share it or guide a bit? Thanks for help, Maciej. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted January 10, 2011 Moderators Report Share Posted January 10, 2011 HI, just take a look at your registration form tpl if im not mistaken you can just copy the recaptcha code and paste that on to another page, if its an external page you will need to include the codon config, include '//path/to/core/codon.config.php'; Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 10, 2011 Administrators Report Share Posted January 10, 2011 Is it on a phpVMS page? If it's a separate .php page, reCaptcha has instructions on their website Quote Link to comment Share on other sites More sharing options...
MaciejO Posted January 10, 2011 Author Report Share Posted January 10, 2011 So this is the page : http://www.olbifgroup.net/olf/index.php/pages/register-cv its created using custom pages in phpvms cms, i want to add captcha to here, but when i tried to use what Mark posted (registration form tpl captcha) <?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?> i got the error : Fatal error: Call to undefined function recaptcha_get_html() in /home/olbifgro/public_html/olf/core/pages/register-cv.htm on line 227 Maciej. Quote Link to comment Share on other sites More sharing options...
MaciejO Posted January 11, 2011 Author Report Share Posted January 11, 2011 I forgot to add code of error after i included file, Warning: include() [function.include]: Failed opening '/../codon.config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/olbifgro/public_html/olf/core/pages/register-cv.htm on line 2 And if i give path to http://www.olbifgroup.net/olf/core/codon.config.php, error is : Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/olbifgro/public_html/olf/core/pages/register-cv.htm on line 2 Warning: include(http://www.olbifgroup.net/olf/core/codon.config.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/olbifgro/public_html/olf/core/pages/register-cv.htm on line 2 Warning: include() [function.include]: Failed opening 'http://www.olbifgroup.net/olf/core/codon.config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/olbifgro/public_html/olf/core/pages/register-cv.htm on line 2 Anyone ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.