using reCAPTCHA on a page in Wordpress

86 views
Skip to first unread message

gmcalp

unread,
Oct 28, 2009, 3:22:07 AM10/28/09
to reCAPTCHA
Hi all,

I am trying to set up reCAPTCHA for use with a job listing entry form
on a website where I am using WP as a CMS.

I already have WP-reCAPTCHA installed (and it's working just fine)
but, as stated, this form isn't for comments.

I have the recaptchalib.php in a 'scripts' directory in my WP theme,
but when I try and reference it here:

require_once('scripts/recaptchalib.php'); ( have also tried the full
path: /wp/wp-content/themes/wsba_theme/scripts/recaptchalib.php)

to no avail. Nothing shows up. Actually, when I use the full path, I
get this error:

Warning: require_once(/wp/wp-content/themes/wsba_theme/scripts/
recaptchalib.php) [function.require-once]: failed to open stream: No
such file or directory in /home/bmet_admin/<my domain name>/wp/wp-
content/themes/wsba_theme/jobenter.php on line 235

Can anyone help me get this figured out please (hopefully I explained
it well enough)?

Thanks,
Geoff

Charles Sweeney

unread,
Oct 28, 2009, 7:23:31 AM10/28/09
to reCAPTCHA


gmcalp wrote:

> require_once('scripts/recaptchalib.php'); ( have also tried the full
> path: /wp/wp-content/themes/wsba_theme/scripts/recaptchalib.php)

That isn't the full path. This is:

/home/bmet_admin/<my domain name>/wp/wp-content/themes/wsba_theme/
scripts/recaptchalib.php

--
Charles Sweeney
http://FormToEmail.com
PHP mail script with reCAPTCHA

gmcalp

unread,
Oct 28, 2009, 2:35:36 PM10/28/09
to reCAPTCHA
I have tried the full path as well (forgot to say that in my first
post), still nothing.

I have also tried doing it via this method also, and it's still not
working:

http://blog.mclaughlinsoftware.com/2009/07/18/recaptcha-on-wordpress

On Oct 28, 4:23 am, Charles Sweeney <cont...@identipic.com> wrote:
> gmcalp wrote:
> > require_once('scripts/recaptchalib.php'); ( have also tried the full
> > path: /wp/wp-content/themes/wsba_theme/scripts/recaptchalib.php)
>
> That isn't the full path.  This is:
>
> /home/bmet_admin/<my domain name>/wp/wp-content/themes/wsba_theme/
> scripts/recaptchalib.php
>
> --
> Charles Sweeneyhttp://FormToEmail.com

gmcalp

unread,
Oct 30, 2009, 10:39:01 PM10/30/09
to reCAPTCHA
So, upon further testing, I have found that the code for inserting
reCAPTCHA is breaking my Wordpress theme. When I remove the code, the
page loads fine. Put it back in and I lose the right sidebar, footer
and background color.

Any ideas why? I could post the page template (with and without the
reCAPTCHA code) if you guys need me to.

Charles Sweeney

unread,
Nov 1, 2009, 1:16:09 PM11/1/09
to reCAPTCHA
gmcalp wrote:
> So, upon further testing, I have found that the code for inserting
> reCAPTCHA is breaking my Wordpress theme. When I remove the code, the
> page loads fine. Put it back in and I lose the right sidebar, footer
> and background color.
>
> Any ideas why? I could post the page template (with and without the
> reCAPTCHA code) if you guys need me to.

Try the forum on the Wordpress site? Sounds more like a styling issue
than a functional issue with reCAPTCHA.

--
Charles Sweeney

iCode4Beer

unread,
Nov 10, 2009, 8:11:02 PM11/10/09
to reCAPTCHA
Reply all
Reply to author
Forward
0 new messages