User Tools

Site Tools


Sidebar

admin_menu:registration_setup:registration_code_form:start

This is an old revision of the document!


Registration Code Form

The very first step in the user registration process is to place a user into a user group. If you only have one user group or more than one user group but no use of the registration code this step is automatically completed with the only user group choice there can be, the default user group setup within the user group admin tool. But if you make use of the registration code your users will automatically see the step when they attempt to register. The default registration code form is displayed to the new registrant asking for their registration code. If the client does not have one they can click the "no registration code" button and be automatically placed in the default user group. If that user does have a registration code this is the form they would enter that code. Entering a registration code that does not match any of the registration codes attached to user groups within the admin tool will force the display of this form again. Many of our license holders have requested a form to allow their client to choose from the user groups they have registration codes attached to. Below is are instructions on creating a form to allow new registrants to choose which user group they want to be in. You do not need to display all user groups as a choice if you do not want to.

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.1235667469.txt.gz · Last modified: 2014/09/25 16:55 (external edit)