Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Adding fields to registrationAdding fields to registration
Previous
 
Next
New Post
8/19/2008 5:08 PM
 

Hello,

I have a "unique" client that wants extra fields added to user registration in addition to username, first name, last name etc.   They want address, phone etc etc added to the actual registration of the user.  These fields will populate another table, as they do not want to use the available DNN profile.  Like I said, they're unique. 

I figured out how to change the labels by going to the Languages Editor.  How do I add fields to this form?  Right now I can't figure out how dnnpropertyeditor id=userEditor control is created.  I think I found the code behind in the source, DNN\Source\Library\Controls\User.vb, but am not sure where the actual presentation layer is created since it isn't created in the code behind.

I realize this may mean changing the core, but we don't have a choice.  We also have to break up the username into 3 text boxes, one for each section of SSN.  Yep, they want SSN as their username.  Please don't ask. :)

 Thanks,

 Chad

 BTW pasting into this forum is a bit buggy.  I assume you guys already knew that though.

 
New Post
8/19/2008 5:42 PM
 

The "cleanest" way is to make a custom module that gathered the information you need and created the account for the user.

This would not require you to change the Core code or do anything that you would regret later.

You can create a user with code such as:

UserController.CreateUser(objUserInfo)
 



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
8/20/2008 1:09 PM
 

Thanks Michael.  I think that is a great idea.  If I were doing it from scratch that is the method I would use.

I actually am using the WorkControl UserManager Module because of it's flexibility of allowing non-admins to register users.  I have decided to hide the entire DNN "UserEditor" control and put the required form on the page.  I then edit the source of WorkControl to supply the CreateUser Method with the appropriate variables just to register the user in DNN, but also capture the other data and insert it into a non-DNN profile table.

I guess that is sort of a custom module but WorkControl gave me a bit of a head start on coding, and also allows me (out of the box) to allow the assigment of roles etc on registration. 

Thanks again.

Chad

PS I don't think notification is working either as I never got an email saying you responded.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Adding fields to registrationAdding fields to registration


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out