H2O can be used to create your own custom User Registration form for the DotNetNuke portal. To do this, you just need to setup the field mapping of the controls on your form to map to the fields in the users profile for registration and mark the forms project as  User Registration form - Click Here for a screen shot of this option.  These registration mappings are entered into the H2O Control Script field of the control.  

You can also display or collect (and store in a hidden field) information about the currently logged in user into your form.  These tags need to entered into the controls Default Field.  To have H2O do this for you, select the information you want to collect from the Profiles drop down in the Edit Controls screen of your form.  Click here for a screen shot.

The goal is to automatically set control values when the form is loaded, so these tags need to be entered into the Default Values field as shown in the image to the left.

Below is a list of the tags you can use in the Default Field:

  • UserID: Fills the field value with the current user's User ID
  • LastName: Fills the field value with the current user's Last Name
  • FirstName: Fills the field value with the current user's First Name
  • FullName: Fills the field value with the current user's Full Name
  • AffiliateID: Fills the field value with the current user's Affiliate ID
  • Email: Fills the field value with the current user's email address
  • PortalID: Fills the filed value with the current Portal ID
  • Now: Fills the filed value with the current date
  • Cell: Fills the filed value with the current user's cell phone number
  • City: Fills the filed value with the current user's city
  • Country: Fills the filed value with the current user's country
  • FAX: Fills the filed value with the current user's fax number
  • IM: Fills the filed value with the current user's IM ID
  • Postal: Fills the filed value with the current user's postal code
  • Region: Fills the filed value with the current user's region
  • Street: Fills the filed value with the current user's street address
  • Telephone: Fills the filed value with the current user's telephone number
  • Unit: Fills the filed value with the current user's unit
  • WebSite: Fills the filed value with the current user's web site address

Setting Up Your own User Registration Module

When creating a custom User Registration form for DotNetNuke with H2O, at minimum, you should create fields for First Name, Last Name, User Name, Password, Password Confirm and Email Address. Without these fields, you may have problems creating the accounts in DotNetNuke.

  • To connect a field in your H2O form to a field in the DotNetNuke Registration Profile, use the H2O Script keywords that begin with UserReg_.
  • DO NOT connect the form directly with a DNN Table. This is unnecessary since H2O will automatically update and/or create the profile after you check the “Is DNN User Registration” option in the Projects Detail screen.
  • If you need to start off with a current list of users, use the “Import Data” function from the Project Details screen to import users from the DotNetNuke Users Table.
  • You must check the option “Is DNN User Registration” in the H2O Project containing your registration form.
     

The following is a list of Field Mappings you can use the H2O Script field of a control to map the control to a field in the DNN User Profile.  These will added to the Control Script field for you by selecting the related item in the Profiles drop down in the Edit Controls screen of your form.

  • UserReg_FirstName: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_LastName: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_Password: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_PasswordConfirm: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_UserName: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_Unit: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_Street: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_City: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_Region: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_Postal: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_Country: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_Telephone: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_Email: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_Cell: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_Fax: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_IM: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
  • UserReg_WebSite: Used with User Registration option in Projects to connect this field to the DNN Registration fields.
     

 



Copyright 2009 by OnyakTech
Privacy StatementTerms Of Use