Loading...
 
Features / Usability

Features / Usability


Re: Requiring Board Guidelines Before Registration?

posts: 3665 United States

> 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

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting