I've fixed the code from my previous post so reCAPTCHA is working properly now. There was no change to what I already posted about the Register.ascx.cs file, the only changes are in the Register.ascx file...
Here is my full Register.ascx file (changes from default are in bold):
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Register.ascx.cs" Inherits="DotNetNuke.Modules.Admin.Users.Register" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke.Web" Namespace="DotNetNuke.Web.UI.WebControls" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls"%>
<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>
<div class="dnnForm dnnRegistrationForm">
<div class="dnnFormItem">
<div class="dnnFormMessage dnnFormInfo"><asp:label id="userHelpLabel" runat="server" /></div>
</div>
<br/>
<div class="dnnFormItem dnnFormHelp dnnClear"><p class="dnnFormRequired"><span><%=LocalizeString("RequiredFields")%></span></p></div>
<div class="dnnFormItem dnnClear">
<dnn:DnnFormEditor id="userForm" runat="Server" FormMode="Short" />
<div class="dnnSocialRegistration">
<div id="mainContainer">
<ul class="buttonList">
<asp:PlaceHolder ID="socialLoginControls" runat="server"/>
</ul>
</div>
</div>
<div style="clear:both;">
<recaptcha:RecaptchaControl ID="recaptcha" runat="server" PublicKey="[PUBLIC KEY]" PrivateKey="[PRIVATE KEY]" />
<img src="/spacer.gif" onload="reload_captcha();" />
</div>
</div>
<div id="reCaptcha_widget" style="display:none;"></div>
<div id="captchaRow" runat="server" visible="false" class="dnnFormItem dnnCaptcha">
<dnn:label id="captchaLabel" controlname="ctlCaptcha" runat="server" />
<dnn:captchacontrol id="ctlCaptcha" captchawidth="130" captchaheight="40" ErrorStyle-CssClass="dnnFormMessage dnnFormError dnnCaptcha" runat="server" />
</div>
<ul id="actionsRow" runat="server" class="dnnActions dnnClear">
<li><asp:LinkButton id="registerButton" runat="server" CssClass="dnnPrimaryAction" resourcekey="cmdRegister" /></li>
<li><asp:LinkButton id="cancelButton" runat="server" CssClass="dnnSecondaryAction" resourcekey="cmdCancel" CausesValidation="false" /></li>
</ul>
</div>
<script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
<script type="text/javascript">
function reload_captcha(){
if($(".dnnFormValidationSummary").length > 0){
Recaptcha.create("[PUBLIC KEY]", "reCaptcha_widget",
{
theme:"red",
callback: Recaptcha.focus_response_field
});
}
}
</script>
(obviously change [PUBLIC KEY] and [PRIVATE KEY] to the actual public and private keys from google)
This is on DNN 6.2.5, btw