Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: fyi: WP-reCAPTCHA works fine with BuddyPress


Peter Kirn
Participant

@peterkirn

Here we go, here’s the issue: I understand how to hook in now, and I’m correctly writing errors to $bp->signup->errors. I’m just unclear on how to accurately display those errors for the ‘captcha’ field. Right now, my signup is validating properly and even recording the correct errors; I just can’t display the errors on the actual form. (Doh!)

Here’s my display code:
http://pastebin.com/QcMXCTGz

Here’s how I’m recording errors (which is in fact working):
if (empty($_POST) || $_POST == ”) {
$bp->signup->errors = __( ‘Please fill in the reCAPTCHA form.’, ‘buddypress’);
}

And for context, the whole plug-in, though most of it’s the old wp-recaptcha code (I’ll clean this up and put it on GitHub shortly)
http://pastebin.com/urNP96Nz

Skip to toolbar