Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! (Pro...  Adding fields to registration
Previous Previous
 
Next Next
New Post 8/19/2008 3:08 PM
Unresolved
User is offline Chad Hensley
24 posts
10th Ranked


Adding fields to registration 

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 3:42 PM
User is offline Michael Washington
2848 posts
ADefWebserver.com
5th Ranked










Re: Adding fields to registration 

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
* ADefWebserver.com
* DNN Module Developer's Guide
* IWEB - DNN Web Services
* Silverlight and DotNetNuke
 
New Post 8/20/2008 11:09 AM
User is offline Chad Hensley
24 posts
10th Ranked


Re: Adding fields to registration 

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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! (Pro...  Adding fields to registration
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Integral Hosting | DNN only $14.95/month
Experienced .NET hosting on Windows 2003, ASP.NET 1.1 & 2.0, MSSQL with real technical support.
www.integralhosting.com
Aricie
Aricie is one of the French pioneers and experts in DotNetNuke technology.
www.aricie.com
AFUEGO!
Looking for Free DNN Hosting?
www.AFUEGO.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP