× Joomla Facebook Connect support forum

Topic-icon reCaptcha on registration

Active Subscriptions:

None
14 years 10 months ago #1662 by Czerdrill
I take no credit for this. It was originally posted by Johnny Crivello at the JomSocial forums. He posted how to add reCaptcha to your registration and I am using his steps as it applies to JFBConnect:

1] Get public/private keys from reCaptcha website .
2] Download and enable the FREE JEZ reCAPTCHA Integrator Joomla Plugin available here at CMS market. Add your public and private key from step 1, then set the Inclusion Syntax radio button to "NO", and the Auto Verify to "Yes"
3] Edit your JFBConnect file: /JOOMLA/components/com_jfbconnect/views/loginregister/tmpl/default.php

Find:
<input type="submit" class="button" value="Register" />
		<input type="hidden" name="controller" value="loginregister" />
		<input type="hidden" name="option" value="com_jfbconnect" />
		<input type="hidden" name="task" value="createNewUser" />
		<input type="hidden" name="fbid" value="<?php echo $rawFbUserId?>" />
		<?php echo JHTML&#58;&#58;_( 'form.token' ); ?>
	</fieldset>

Directly above add:
<?php global $mainframe; $mainframe->triggerEvent('onCaptchaDisplay');  ?><br>

That's it. You can style the reCaptcha box to fit your site as you like. Thanks to Johnny Crivello again!
The topic has been locked.
Active Subscriptions:

None
12 years 7 months ago #13180 by maszek
Replied by maszek on topic reCaptcha on registration
It wouldn't harm to hear Sourcecoast's opinion on this issue...
The topic has been locked.
Support Specialist
12 years 7 months ago #13183 by alzander
Replied by alzander on topic reCaptcha on registration
Jan,
While the solution above was posted 2 years ago, the login/register page hasn't changed in a way that should break the above code. The solution we recommend for Captcha is "Fun Recaptcha", linked on the JED below. It can take a little effort to add, but it works with any form on a site without any modifications to the component. We use it on our registration page on SourceCoast (which uses Joomla's core registration, since we skip the registration form for Facebook/JFBConnect users), and it works great:
extensions.joomla.org/extensions/access-...curity/captcha/11139

Hope that helps,
Alex
The topic has been locked.