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::_( '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!