Using new recaptcha with VBulletin

262 views
Skip to first unread message

Derek Serianni

unread,
Dec 3, 2014, 1:10:56 PM12/3/14
to reca...@googlegroups.com
I use reCAPTCHA for my vbulletin site.

How can I start using it?

D.

Hongshu Liao

unread,
Dec 3, 2014, 3:23:14 PM12/3/14
to reca...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to recaptcha+...@googlegroups.com.
To post to this group, send email to reca...@googlegroups.com.
Visit this group at http://groups.google.com/group/recaptcha.
For more options, visit https://groups.google.com/d/optout.

Derek Serianni

unread,
Dec 3, 2014, 4:13:13 PM12/3/14
to reca...@googlegroups.com
You will have to bear with me as I am not a coder by any means.

In vBulletin it uses "style templates" to call human verification.

This is the style template that currently exists for my site (using the old version of recaptcha)

How would I modify this to use the new version?


<div class="blockrow">
<label for="recaptcha_challenge_field">{vb:rawphrase image_verification}</label>

<input id="hash" type="hidden" name="{vb:raw var_prefix}[hash]" value="{vb:raw humanverify.hash}" />
<vb:if condition="$humanverify['load_js']">
<script type="text/javascript">
var RecaptchaOptions = {
theme : '{vb:raw humanverify.theme}',
callback: function() {document.getElementById('recaptcha_response_field').tabIndex = 1;}
<vb:if condition="$humanverify['langcode']">,lang : '{vb:raw humanverify.langcode}'</vb:if>
};
function reloadRecaptcha(){
if( typeof(Recaptcha) != 'undefined')
{
Recaptcha.create("{vb:raw humanverify.publickey}", "recaptcha_block", RecaptchaOptions);
}
}
</script>
</vb:if>
<div id="recaptcha_block">
<vb:if condition="$humanverify['load_js']">
<vb:if condition="$show['recaptcha_ssl']">
<script type="text/javascript" src="https://www.google.com/recaptcha/api/challenge?k={vb:raw humanverify.publickey}">
<vb:else />
<script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k={vb:raw humanverify.publickey}">
</vb:if>
</script>
</vb:if>
</div>

<noscript>
<vb:if condition="$show['recaptcha_ssl']">
<iframe src="https://www.google.com/recaptcha/api/noscript?k={vb:raw humanverify.publickey}" height="300" width="400" frameborder="0"></iframe>
<vb:else />
<iframe src="http://www.google.com/recaptcha/api/noscript?k={vb:raw humanverify.publickey}" height="300" width="400" frameborder="0"></iframe>
  </vb:if>
  <textarea name="recaptcha_challenge_field" rows="3" cols="40" tabindex="1"></textarea>
  <input type="hidden" name="recaptcha_response_field" value="manual_challenge" />
</noscript>

</div> 



Reply all
Reply to author
Forward
0 new messages