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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Add new fields to the defualt Registration page ?Add new fields to the defualt Registration page ?
Previous
 
Next
New Post
3/29/2007 9:42 AM
 

Hi, I try to add a few more fieldes to the default registration page, e.g., mother's maiden name, birth place, etc.  I figured out how to do this: it is through modifying DotNetNuke.Entities.Users.UserInfo and DotNetNuke.UI.UserControls.user in DotNetNuke.Library project.  It does what I need.  But my question is: how do I port my code changes in DotNetNuke.Library project to a new version of DotNetNuke?  (Right now I am on 4.4, but I want to upgrade to 4.5 soon)  Is there an automatic way to do this?  Do I have to manually modify the code for every version update?

Thanks a lot.

 

 
New Post
3/30/2007 8:46 AM
 

no reply? Hmmm...probably the original question is not clear. Let me try it out:

For code changes made in DotNetNuke.Library, is there a way to keeep these changes we I upgrade from 4.4.1 to 4.5?  Do I have to manually re-make these code changes after the version upgrade?

Anyone can help please ?  I thought this should be a common question but I cannot seem to find an answer by searching for post.....

 

 
New Post
3/31/2007 10:37 AM
 
 

From way I read what you have done I think you have been going in the wrong direction.

I'm doing something similar so here's what I have done.

I have a member file which contains information about members in a golf club. The user can registrer on the site and I then use the information entered by the user in my member file. In order to be able to synchronize user with member I have added a new field to the user profile which the user has to enter when he register on the site.

int totalRecords = 0;ArrayList arr = UserController.GetUsersByProfileProperty(this.PortalId, false, "Vgc Nr", "1234", 0, 1, ref totalRecords);

if (totalRecords > 0) UserInfo user = (UserInfo)arr[0]; 

The name of the field is name "Vgc Nr" and the code above looks up a user with the value "1234" for that new field.

I haven't made any changes to any of the DotNetNuke dll's and I don' expect to have to do that when upgrading to 4.5.

Hope it helps

 

 
New Post
4/1/2007 6:14 PM
 

Pas- Thank you for your reply, but, what is the code you use to "display" the new field in the registration form?  I have been struggling with this....  I am new to this DNN.

Thanks.

 
New Post
4/1/2007 7:04 PM
 

First rule of thumb for any framework -  Dont touch the core if you want upgradability.

If you do edit the core you are opening yourself up to potential problems with each new release since you will need to manually recode your changes into the code everytime.

>>>>>

It also seems like you are going around this problem the wrong way - adding additional elements to a users profile can be done directly thru the Manage User Profile.

And you can force these fields to appear in the Registration page by making them required and setting the Rego page to display the profile.

>>>>>

But in reality if you have gone as far as digging into DotNetNuke.library then you coding is more than up to building a simple custom rego page that displays the fields in exactly the layout you want.

Custom modules are a much more elegant way of modifying DNN since they dont touch the core - and will upgrade much more smoothly to new versions - in most cases.

We

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Add new fields to the defualt Registration page ?Add new fields to the defualt Registration page ?


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