A button that checks you are not a robot

Parameters


Usage:

[{RecaptchaButton action="alertMe" text="Am I A Robot ?"}] Missing configuration value for recaptcha-key
//OpenForum/Extensions/RecaptchaButton/renderer.sjsvar text = extension.getAttribute("text"); var action = extension.getAttribute("action"); var config = openForum.retrieveObject("config"); var key = config.getValue("recaptcha-key"); if(typeof key == "undefined") { return( "<b>Missing configuration value for recaptcha-key</b>" ); } return "<script src=\"https://www.google.com/recaptcha/api.js\"></script>" + "<button" + " class=\"g-recaptcha button\"" + " data-sitekey=\"" + key + "\"" + " data-callback=\"" + action + "\">" + text + "</button>";