User Tools

Site Tools


Sidebar

admin_menu:registration_setup:registration_code_form:start

This is an old revision of the document!


Registration Code Form

You can use registration codes to place users in specific user groups at registration. Normally a client would need the registration before registering and then entering that registration in the registration code box at the front of the registration process and they would automatically be placed in the requisite user group. Some sites may want to give their clients a choice of which user group they wish to be placed based on their pricing needs. You can just list the registration codes within the instructions on the registration code page or you can create form like that described below that will enter the registration code for them as they choose it from a dropdown or a link within the page. How to create that is described here.

At the registration code page you can create a form or <a> links the client can use or click to place them within a user group of their choosing.

  1. You start by creating a page template specific for the registration code page (or Registration Code Form), if you do not have one already. (Default template for that page is Basic Page 1)
  2. Remove the (!MAINBODY!) tag from this new registration code template.
  3. Attach registration codes to all user groups that will appear as a choice. This is done through the USER GROUP admin tool by entering a registration code for each user group to use a registration code.
  4. Remove the registration splash page attached to each of the user group by removing the contents of the splash page. (if it's not working, remove the content with WYSIWYG editor turned off)
  5. Where the (!MAINBODY!) tag was you will hardcode in html the links or form to automatically enter the registration codes for the "user group" the user selected. In both examples below, 2 user groups are used one with registration code of regcode-group-a while the second group uses registration code of regcode-group-b

If using the "link" method create the links for each user group labelled the way you need to create html like:

<a href="register.php?registration_code=regcode-group-a">group a</a>
<a href="register.php?registration_code=regcode-group-b">group b</a>

When the user clicks one of the links the registration code will automatically be entered.

If using the "form" method create the html form like the one below…

<form action="register.php" method="post"> 
<select name="registration_code"> 
<option value="regcode-group-a">group a</option> 
<option value="regcode-group-b">group b</option> 
</select> 
<input type="submit" name="submit_registration_code" value="Submit >>" class="enter_registration_code_button" /> 
</form>

This can only be done within the Registration Code Form page. The registration code html "switches/links" cannot be entered directly into the registration information collection form.

admin_menu/registration_setup/registration_code_form/start.1235666848.txt.gz · Last modified: 2014/09/25 16:55 (external edit)