Re: Requiring Board Guidelines Before Registration?
> I have been trying to set up my site so you must view an agreement before registering. I have read the article here but this is not what I want. I want users to have to read a page with my agreement and the options "I Agree" and "I Don't Agree".
> How do I do this?
Should be pretty easy to do with Javascript. You'll need to edit the tiki-register.tpl template. Something like this may work:
Copy to clipboard
<!-- function show(id) { if (document.getElementById(id).style.display == 'none') { document.getElementById(id).style.display = ''; } } function hide(id) { document.getElementById(id).style.display = 'none'; } //--> <p>The full text of the agreement goes here.</p> <p>Agree <input type="radio" name="eula" value="agree"><br /> Disagree <input type="radio" name="eula" value="disagree"></p> <div id="disagreeTbl" style="display:none;"> You must agree before registering. </div> <div id="agreeTbl" style="display:none;"> Contents of register.tpl goes here. </div>
Put the full content of register.tpl inside the agreeTbl DIV. This is just a 5 minute hack, so YMMV.
HTH,
-Rick