How to customize the DNN's Register Module
Last Post 11/20/2010 6:08 AM by Joseph Craig. 59 Replies.
Author Messages
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
01/18/2006 8:23 AM  

Dear Lee,

 

Hope you are doing fine. We want to modify the DNN’s register module. With DNN’s basic fields, we want to add few customized fields. Can you please tell me how should we do this.

 

We have open the DNN source code and now trying to change design of register page from Register.ascx. And also thinking to change the code from Register.ascx.vb. Is it right approach?

 

An immediate reply would be appreciated.

 

Thanking you,

 

Sandi

Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
01/18/2006 2:28 PM  
Hello Sandi,

I'm good thanks. I've recently discovered this module which allows you to create customised registration forms for your users - it should cover exactly what you need:

http://dnn310.ucanuse.com/PortalMod...fault.aspx

I've heard mixed views on the module, so I would encourage you to test it thoroughly first before using it in a production environment.

I haven't used this module yet so i can't provide any advice, but it looks perfect for the job.

Hope this helps,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
01/19/2006 10:37 AM  

Dear Lee,

Thank you for prompt reply. I already have gone this link before. And basically we cannot afford to buy anything, but want to develop that module. So please suggest where we can get help regarding how to develop/customize Register module.

We have now found that there are two controls ( user/addresses ), which DNN is using into register module. So we are thinking to change these controls.....

Or add our new control (we have created new control but not know how to use it into existing register module..)... Please let us know which option could be better for this..

Please reply as soon as possible.

Thanking you,

Sandip

Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
01/19/2006 11:02 AM  
Ok, If you are going to develop your own module then think carefully how you are going to do it.

For instance, I would not alter any of the core tables or procedures for DNN. - The reason for this is because it will cause you a massive headache if you want to upgrade your installation in the future.

If I was programming this I would create a completely separate module which would link to the user account by the User ID - so in your own user table you will have a User ID number which will link to the User ID number in the DNN users table.

From here you can build your module and forms to collect any data that you require.

(This is all theory, I haven't put it into practice)

Within DNN once you have created your separate module you can place the user account module and your module on the same page to collect the data you require. (see this post for how to configure DNN for this)

Or a better method would be to take elements of the account module that you require and create a module that inserts data into the user table and then into your own user table.

To do this you would have to insert data into the DNN user table, collect the userID that has just been created in the DNN user table and then insert that UserID into your personal user table with the additional data that you have collected.

These are my first thoughts and would probably  be where I would personally start working. - Other developers may approach this from a completely different angle, so it maybe worth asking for second and third opinions.

I would try the asp.net forums (in the Custom Modules section), especially when you begin developing the module as the developers there will be able to share their experiences and thoughts with you.

The main thing I would say is do not alter any of the core code, tables, procedures etc.

Follow this link for Resources for Developing DNN Modules

Hope this provides you with a starting point,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
01/19/2006 11:29 AM  
Dear Lee,
Thank you again for your quick reply. I am feeling nice that we thinks exactly same. Infact we have already design the database accordingly (for using USERID into our tables).
We are doing the same things which you are suggesting...thanks for your suggestions and instructions... we won't change any core code (atleast not major things...)..
We are trying to instert data into our tables...but was getting some error and then DNN's registration was abruptly ending without creating new login..
I will re-debug and see how to make it work...will update you again on further developments..
Thank you for your help.

Thanking you,
Sandi
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
01/19/2006 1:04 PM  
Great, that sounds good, will be interested to hear how you get on.

The first step I would take is to just learn how to insert data from your form into your table without worrying about the UserID, once you have worked out how to add data to a table from DNN you should be able to move onto the next step and integrate it with the user table.

It sounds like you are well on your way, good luck,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
01/30/2006 7:43 AM  

Dear Lee,

 

Thanks for your support…

 

I have completed half of the module. Now, I am able to save/update registration forms from our database. We are storing few fields (username, password and confirm password) into DNN’s database as well as our database. We are taking these information from our own controls and saving into DNN’s (User, profile etc) tables. As we have completed our own registration form; now we want to hide the DNN’s controls (User, Address) so that we can just show our controls. From registration page, when we tried to put those controls into comments, we got JavaScript errors. As some of the validetors are getting called and there is ‘undefined’ value into those validators.

 

 

 

We are thinking to comment that (javascript) code too… with taking care that it should called for rest modules. So are we going right…. or is there any other way to hide the DNN’s control.

 

 

 

Please reply as soon as possible…

 

Thanking you,

 

Sandi
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
01/30/2006 8:00 AM  
Hello Sandi,

Glad to hear you are making progress.

If I want to hide asp.net controls then I will control this directly from the asp.net code.

I can't recall the code off the top of my head, but you can set it so that you set the visibility of a control based on what security role a user is assigned to.

So for instance, if you only want the administrators access to view the control, you can set it up so that it queries what security role the user is assigned to and if they are an administrator it will then set the visibility of the control to true.

Does this make sense?

Have you looked at the Seabury videos - I think they cover that. - Otherwise I would have a look at the code for another module where they implement links that are displayed dependant on who is logged in - the forum module or repository module should cover this.

Hope this helps, thanks,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
01/30/2006 8:22 AM  
Dear Lee,
Thanks for quick response…
Yes I know that we can hide the rows or controls from ASP.net code (by setting visibility false)… but when we tried this we were getting errors of javascript… that is some of that validators are not as object or undefined. (Since they are hide..)
Another problem in this case is though we hide it, it takes space on the form… so If we hide user control..(which has first name, last name, username, password, confirm, email and website…)… we wont see it on registration page but still there will be space…. In the last we can also remove that space by using some html coding…
But our first problem is after hiding or commenting control, there should not be any error comes on page…

Regarding code for role checking… that we can do..but we want only one registration page, which should visible to all, so this is not the issue.
We will try to remove/hide control and remove the errors. Please suggest any other source or way to do this…
Thanking you,
Sandi
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
01/30/2006 8:38 AM  
Hi Sandi,

I may have mis-understood how you have created you module, but if you have created a completely separate module which is not an edit of the original registration page with your own asp.net controls, why do you have elements of the original DNN registration form that you no longer require?

Can't you simply just delete these controls and remove the validation?

Thanks,


Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
01/30/2006 9:46 AM  
Dear Lee,
We have changed the DNN’s registration page and put our own controls (Customer Control and Contact Control). While doing this we preferred to use DNN’s Registration page, since we want to use rest DNN’s functions. Now we have our controls at registration page and we want to remove ‘User’ and ‘Address’ control.
We will try to hide them or remove them with their code and validation java script. We are not able to find, from where it’s validation script is calling. Once we find this we will remove it. So that no call to script will be given. Hope you have cleared what is our problem. So, mean while if you find any help on this please send us.
Thanking you,
Sandip
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
01/30/2006 9:51 AM  
Hello,

Ok, that makes more sense now. - I would personally create a completely separate module as it will make it easier for upgrading in the future. - But if you are sticking with this method, you will find the code for the address section and other DNN controls in the controls folder - address.ascx file.

Thanks,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
01/30/2006 11:27 AM  

Dear Lee,

 

We have commented the code for User control from registration page. Also in User control we have remove the Requiredfieldvalidators. Still we are getting javascript error in function ValidatorOnLoad() {} and one more function. (I have pasted some funcations here from webUIvalidation.js... I copied it where I got error while debug it...)

 

We have removed validators from User.ascx and code from user.ascx.vb. Also Removed code from Registration page (register.ascx and register.ascx.vb) which is calling User control. And still that script is calling.  We don’t why and from where is getting called.

 

We just want to stop that script to be called. And I think we can’t to that as this file is having path as http://localhost/…WebUIValidation.js  . There is no such file exist when I search through my machine.

 

So this may be the run time generated file. Well, so we need to restrict to get calling this file.

 

Can  you suggest some way , how to do this.

 

Thanking you,

 

Sandi

************************************

http://localhost/...webUIvalidations.js

var Page_ValidationVer = "125";
var Page_IsValid = true;
var Page_BlockSubmit = false;
function ValidatorUpdateDisplay(val) {
    if (typeof(val.display) == "string") {   
        if (val.display == "None") {
            return;
        }
        if (val.display == "Dynamic") {
            val.style.display = val.isvalid ? "none" : "inline";
            return;
        }
    }
    val.style.visibility = val.isvalid ? "hidden" : "visible";
}
function ValidatorUpdateIsValid() {
    var i;
    for (i = 0; i < Page_Validators.length; i++) {
        if (!Page_Validators.isvalid) {
            Page_IsValid = false;
            return;
        }
   }
   Page_IsValid = true;
}
function Page_ClientValidate() {
    var i;
    for (i = 0; i < Page_Validators.length; i++) {
        ValidatorValidate(Page_Validators);
    }
    ValidatorUpdateIsValid();   
    ValidationSummaryOnSubmit();
    Page_BlockSubmit = !Page_IsValid;
    return Page_IsValid;
}
function ValidatorCommonOnSubmit() {
    event.returnValue = !Page_BlockSubmit;
    Page_BlockSubmit = false;
}
function ValidatorEnable(val, enable) {
    val.enabled = (enable != false);
    ValidatorValidate(val);
    ValidatorUpdateIsValid();
}
function ValidatorOnChange() {
    var vals = event.srcElement.Validators;
    var i;
    for (i = 0; i < vals.length; i++) {
        ValidatorValidate(vals);
    }
    ValidatorUpdateIsValid();   
}
function ValidatorValidate(val) {   
    val.isvalid = true;
    if (val.enabled != false) {
        if (typeof(val.evaluationfunction) == "function") {
            val.isvalid = val.evaluationfunction(val);
        }
    }
    ValidatorUpdateDisplay(val);
}
function ValidatorOnLoad() {
    if (typeof(Page_Validators) == "undefined")
        return;
    var i, val;
    for (i = 0; i < Page_Validators.length; i++) {
        val = Page_Validators;
        if (typeof(val.evaluationfunction) == "string") {
            eval("val.evaluationfunction = " + val.evaluationfunction + ";");
        }
        if (typeof(val.isvalid) == "string") {
            if (val.isvalid == "False") {
                val.isvalid = false;                               
                Page_IsValid = false;
            }
            else {
                val.isvalid = true;
            }
        } else {
            val.isvalid = true;
        }
        if (typeof(val.enabled) == "string") {
            val.enabled = (val.enabled != "False");
        }
        ValidatorHookupControlID(val.controltovalidate, val);
        ValidatorHookupControlID(val.controlhookup, val);
    }
    Page_ValidationActive = true;
}

Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
01/30/2006 11:45 AM  
Hello,

I would suggest putting a request into the module development forum here: http://forums.asp.net/98/ShowForum.aspx

Hopefully they will be able to provide you with further advice,

thanks,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
02/03/2006 8:01 AM  
Hello Lee,
Hope you are doing fine..
I have removed the controls successfully... Glad to let you know that the solution behind it was very simple.... Just remove the register line (on top of the page, which uses to register the control) and controls tag from register.ascx.... thats all and rest is workign fine..
No control ref in register page hence no error.... :-)
Thanks,
Sandi
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
02/03/2006 8:10 AM  
Hello, Yes I'm good thanks.

- Ah yes, of course! The solutions are always very simple!

Cheers,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
Jimmy Singal
Nuker
Nuker
Posts:14


--
02/22/2006 6:42 AM  

Hi Sandip and Lee,

I also working on to change the register module. Could you help me also with the step by step and which files that you change?

Please advise...

Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
02/22/2006 6:51 AM  
Hello,

The first thing I would do is check out this module:
http://dnn310.ucanuse.com/PortalMod...fault.aspx

to see if it fits your needs, it may save you a lot of time with programming. - I haven't used the module, so I can't provide any feedback on it, but it may help. - Otherwise perhaps Sandi could provide a few pointers for getting started?

Thinking about it, Sandi, if you want to put an article together, I could publish it on the magazine with a link back to you if you wish.

Thanks,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
Jimmy Singal
Nuker
Nuker
Posts:14


--
02/22/2006 6:56 AM  
Hello Lee,
Thanks for the fast reply, yes I have been read about this "ucanuse" module but the problem is we are in the early stage of define a portal so I am not sure if the management is willing to buy a 3rd party module.

If Sandi can provide an example it will be great. Also it will be perfect if it's a separate module.

Kind Regards,
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
02/22/2006 7:53 AM  

Hi J_Singal,

For changing register module you will have to change core code. So first make sure that you have source copy of DNN.

Then do as per following.

1. Try with one single text box first. Change register control and add simple text box to it. Just to sure for GUI is working.

2. Then try to change code and insert values into your table from your text box.

3. Above both steps are for just getting confidence that things are working. Then you can start with making controls and add bellow to user control (which is in register module).

I am assuming that you have gone through the core code to understand how DNN's register module works.

Let me know if get success in first two..then we will go further..

Sandi

Jimmy Singal
Nuker
Nuker
Posts:14


--
02/22/2006 9:27 AM  
Hi Sandi,
Thanks.. Ok.. today I already put 2 textbox and 1 dropdownlist into a new usercontrol called "asefuser.ascx".
And after that I add this new usercontrol to "Register.ascx" just below the "user.ascx".

BTW I am using DNN 4.02

But what I am confuse is that I also have to change others files as well, like those are in the DotNetNuke.Library/Components/Users/UserInfo.vb and
DotNetNuke.Library/Components/Users/UserProfile.vb

Am I doing the correct way?
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
02/22/2006 11:22 AM  
Hi J_Singal,
You have created your own usercontrol and added into register.ascx is right. Now
tell me whether you want to change registration form completely or partially.
If completely then you don’t need to change DotNetNuke.Library/Components/Users/UserInfo.vb. You can create your own class files (asefuserinfo.vb and asefusercontroller.vb) and use it.
If partially then you will have to change DotNetNuke.Library/Components/Users/UserInfo.vb and adjust your fields with UserInfo fields… actually this is very easy as you will just have to add your fields everywhere.

Note: I would suggest create your own classes and controls. And then just remove DNN’s controls from register page and call yours.

Sandi
Jimmy Singal
Nuker
Nuker
Posts:14


--
02/23/2006 12:12 AM  
Hi Sandi,
Yes that's right I have added my usercontrol to the register.ascx.
And actually I only need to change this registration form partially.

I have tried to create my own classes and controls but as I remember last time when I tried, at the end I always end up to change some core classes that I didn't really want to change. this classes are something related to UserProfile class or UserInfo class.

Thanks Sandi & Lee, I hope you can help me on this
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
02/24/2006 4:58 AM  
Hi J_Single,

Ok, if you want to change registration form partially then no problem. Go ahead and change core classes...there is no harm in it.. I had also changed it and tested it was working fine. In registration there are three controls. You can directly change any of it. Or add your own and replace with existing one. (If you replce then you will have create own classes.) If you modify DNN's control then modify accordingly to all places (.vb files)...this will resolve your problem..
Let me know for further problems...
Sandi
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
02/24/2006 5:12 AM  
Just remember that if you adjust the core code, if you want to upgrade DNN at any point you will have to also backup / re-add the core changes that you have made.

It is much easier for future development to add features to DNN (modules) rather than change the core. -  Just something to consider.

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
Jimmy Singal
Nuker
Nuker
Posts:14


--
02/24/2006 10:20 AM  
Hi Sandi and Lee,
Thanks for your suggestions. Currently I try to do it in separate module. I copied the register.aspx to my new module folder and start develop from there.
Will get back to you next week
Jimmy Singal
Nuker
Nuker
Posts:14


--
02/28/2006 8:43 PM  
Hello there,
Good news, I successfully make changes to the registration module. Thanks for both of you!
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
03/01/2006 10:19 AM  
Thats Good.
Darryl Wright
Nuke Newbie
Nuke Newbie
Posts:9


--
03/13/2006 6:43 AM  
Hi Guys

I see everyone here is having great successes in modifying the registration module. I'm glad I'm not the only person that needs to do so. Which files need to be modified such that I can add fields to the registration from and remove fields from the form? Also when adding and removing fields what effectively is being changed in the core of the DNN framework?

I will also require that the login module be modified once the registration module is complete because the fields that I will require the User to enter are not a username and password.
Darryl Wright
Nuke Newbie
Nuke Newbie
Posts:9


--
03/16/2006 4:56 AM  
Posted By sandip on 03 Feb 2006 8:01 AM
Hello Lee,
Hope you are doing fine..
I have removed the controls successfully... Glad to let you know that the solution behind it was very simple.... Just remove the register line (on top of the page, which uses to register the control) and controls tag from register.ascx.... thats all and rest is workign fine..
No control ref in register page hence no error.... :-)
Thanks,
Sandi


Hi Sandi

I see that you managed to find successfully sort out the javascript problem you were having. Which line exactly were you removing in the register.ascx file to get rid of the javascript errors?

Thanks
Darryl
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
03/21/2006 5:35 AM  
Hi Darryl,
I was not in town for week and hence could not see all emails..
Well, you have to completly remove cotrol from register.ascx page. On top of the page each control registered is listed. So remove from there.
e.g. You may be see following line
< % @ Register TagPrefix="dnn" TagName="UserControl" Src="~/controls/UserControl.ascx" % >

Remove it.

Sandi
lionel luo
Posts:20


--
04/12/2006 11:05 PM  
hi, can you please give me some more steps I can follow, I'm new and try to do the same thing. many thanks.
sandi sandi
Nuke Active Member
Nuke Active Member
Posts:28


--
04/13/2006 3:10 AM  
Hi Darry,
Yes, I think I had rereplied this before some where. Any ways. For completly removing module remove first registration code (2-3 lines) from register.ascx. THis will remove that control cmpletely and use can use your control insted. Hope this will help you.
Regards,
sandi
Nandu
Nuke Newbie
Nuke Newbie
Posts:9


--
03/20/2008 6:17 AM  

Hi sandi and lee,

Great to hear you that you had got succeeded in modifying the registration page, i hav gone through your conversation with lee. I am also intended to customize the registration page. I am using the latest version 4.8.1. All you were speakin of register.ascx page, but i am sorry , i am not able to find it in my DNN site. I have gone through the core code. But couldn't able to find from where the data is retrieving and storing it in database, how was its going on? i got succeeded in adding fields to the registration page by adding the fields in userinfo.vb. but couldn't able to save the data to the database, please let me how can i overcome this?

Any help is appreciated.

Joseph Craig
DNN MVP
Posts:11667


--
03/20/2008 9:18 AM  
The registration code probably has been renamed. Look in subdirectories of the admin directory if you really must customize.

I would recommend instead that you take a look at DataSprings.com's Dynamic Registration module. It has a lot of flexibility and you won't have to redo the registration code every time you upgrade DotNetNuke.

Joe Craig, Patapsco Research Group
Complete DNN Support
Nandu
Nuke Newbie
Nuke Newbie
Posts:9


--
03/21/2008 10:54 AM  
Hi craig,
Thanks for your quick response, But i dont want to go for third party tool.
I would like to make changes like sandi,
any way thanks once again,

any help, really in needed.
Nandu
Nuke Newbie
Nuke Newbie
Posts:9


--
03/21/2008 11:00 AM  
Hi everybody,
I can add field controls to the register page in dnn 4.8.1, but couldn't able to store the data, First and foremost thing is, i am unable to find how dnn is accessing the database and where? plz help needed, its very urgent.

Thanks in advance
Joseph Craig
DNN MVP
Posts:11667


--
03/21/2008 7:31 PM  
Nandu,

If you must go the route of customizing the registration module, I'd recommend that you first spend some time learning how the DotNetNuke framework is put together.  The DotNetNuke Help area of adefwebserver.com is a good place to start.

As with most things it makes sense to spend some time learning, thinking and planning before you dive into the coding.

But, were I you, I'd probably spend my creative thinking time figuring out ways to raise the funds to purchase a product like the DataSprings Dynamic Registration module. 

Joe Craig, Patapsco Research Group
Complete DNN Support
Nandu
Nuke Newbie
Nuke Newbie
Posts:9


--
03/22/2008 2:03 AM  
Hi craig, ok, i will do that.
Thanks for your response.
Nandu
Nuke Newbie
Nuke Newbie
Posts:9


--
03/24/2008 7:15 AM  
Hi everybody,
I am using dotnetnuke 4.8.1 version, i want to customize register page in dotnetnuke. I got succeeded in adding textboxes to the page but facing some problems in storing that data in database. I had added an extra columns to the user table in database and even to the stored procedure 'adduser'. But when i try to load the data , i am facing with "The INSERT statement conflicted with the FOREIGN KEY constraint "FK_UserProfile_Users". The conflict occurred in database "Databasename", table "dbo.Users", column 'UserID'." When i remove the extra added control, then it works fine. Please help me to get rid of it.

Thanks.
Joseph Craig
DNN MVP
Posts:11667


--
03/24/2008 8:06 AM  
As I said in an earlier message, modifying the core code isn't a great idea. Modifying the data tables is an even worse idea.

Joe Craig, Patapsco Research Group
Complete DNN Support
Nandu
Nuke Newbie
Nuke Newbie
Posts:9


--
03/24/2008 8:44 AM  
hi craig,

          Thanks for your fast response, i got what you are trying to tell. But i did not change the database but rather i created a table and inserting data into it using the adduser stored procedure, let me know whether  am i going in a right way or  not? but i dont have any other option rather than developing the code, our company does not show any interest in buying the third party tools. Provide any other solution craig.

Thanks ,
Joseph Craig
DNN MVP
Posts:11667


--
03/24/2008 9:04 AM  
I'm sorry. You said that you added a column to the table. I guess I misunderstood what you were saying.

If you just used the existing stored procedure, it might be that you missed some other step. You might want to look at the code for the standard "Membership Provider" so that you can see how DotNetNuke adds users.

Joe Craig, Patapsco Research Group
Complete DNN Support
Nandu
Nuke Newbie
Nuke Newbie
Posts:9


--
03/25/2008 12:51 AM  
HI craig,
             feeling very happy in getting responses from you. I got succeeded in adding a table and inserting data to it. When i try to add an additional control to the register page in lib/components/users/userinfo.vb, the userid is going to set -1. when i remove this control, it is taking the userid as is from the database.But when i add control property, i am gettin an error as ""FK_UserProfile_Users". The conflict occurred in database "Dnn", table "dbo.Users", column 'UserID'.
The statement has been terminated.". if i try to add an extra control, shall i need to make any changes(not major) to the code to any where else? plz let me know. its very urgent. I am on deadline. i need to finish it asap.

Help needed.
Joseph Craig
DNN MVP
Posts:11667


--
03/25/2008 7:57 AM  
Nandu,

I don't know what you are doing wrong, but you are doing something wrong with the existing tables.

Joe Craig, Patapsco Research Group
Complete DNN Support
Nandu
Nuke Newbie
Nuke Newbie
Posts:9


--
04/01/2008 12:01 AM  
hi craig,
Thanks for your suggestion. I dont think so that i am going in a wrong way. i got succeeded in adding additional fields to the register page and able to save the data in database too. here i am using the adduser store procedure to pass these additional fields data to the database, i have created a new table with user_id in it.I hope , i am going in a right way. But now the problem is , my register page consists of 3 pages, and i need to display only some fields in register page1 and some other in page2 so on. I had added an attribute(pageid) in the propertyattributes. but not finding a way to check that page id. please suggest me where i can check for this page id.

Help needed.
sakthivel
Nuke Newbie
Nuke Newbie
Posts:2


--
07/24/2008 7:25 AM  
Hi Nandu / Craig, Can you please tell me how you added the extra field in User Registration, because I am also facing the same problem and my company also not ready to pay for third party tool. I am new to DNN. Please help me!
Joseph Craig
DNN MVP
Posts:11667


--
07/24/2008 6:20 PM  
On the User Accounts page, click Manage Profile Properties. Then, use the dropdown menu to Add New Profile Property.

Joe Craig, Patapsco Research Group
Complete DNN Support
Web Tech
Nuke Newbie
Nuke Newbie
Posts:1


--
08/02/2008 11:56 PM  
 Hi to all Great Gun (DNN),

I am strater and just moved to dnn.

First thing i want to know how to start with dotnetnuke source code because i need to modify register page with providing all role into that section so that user can select available role at the time of signup.

When i downloaded the source code and Start in .net 2005 , got massive error around(79+).


So, plz guide me who to do that. Provide brief as long as you can becuse i m knew to dnn.



Thank you,

Ajit

Joseph Craig
DNN MVP
Posts:11667


--
08/03/2008 9:46 AM  
I would strongly recommend that you should not modify the source code to provide that functionality. If you do, you will be following a path that makes it very difficult to update.

Instead, I'd recommend a module like Datasprings' Dynamic Registration. It will provide the functionality that you need.

If, though, you intend to go the modification route, I'd recommend that you try doing this as an additional module, so that you can upgrade and will then only have to deal with your module if necessary. As for help with the source code, I'd recommend that you look for help at the adefwebserver.com site. But ... do this as a module, NOT as a core modification.

Joe Craig, Patapsco Research Group
Complete DNN Support
Vik
Nuker
Nuker
Posts:13


--
06/03/2010 10:01 PM  
I am using latest DNN installation and I can not find Register.ascx file anywhere in my DNN Visual Studio project. Where is it?
Joseph Craig
DNN MVP
Posts:11667


--
06/04/2010 7:47 AM  
Desktop Modules/Admin/Authentication/login.ascx and login.ascx.vb include the registration code.  These are actually separate from the Authentication provider.  You do not have to rewrite this to create a new authentication provider.

Joe Craig, Patapsco Research Group
Complete DNN Support
riinggao
Nuke Newbie
Nuke Newbie
Posts:1


--
08/20/2010 10:32 PM  
hi Mr. Josep ,thanks for all the help here are the steps that i perform to set parent portel ...
iRohan
Nuke Newbie
Nuke Newbie
Posts:3


--
11/18/2010 10:22 PM  
Respected Sir,

i am new in DNN Development , We are using DNN 5.5.1 for development , we want to change in dnn Core Register module add some extra field in that module ,but we cant understood the flow of the DNN System where to add these filed and exact location of the stored procedure is getting called to add new user in the users Table of the DNN 5.5.1,
so plz help us .

iRohan
Nuke Newbie
Nuke Newbie
Posts:3


--
11/18/2010 10:25 PM  
Respected sir ,

I want to know the any books aviable for DNN Core Module Development or DNN CORE SYSTEM How the DNN Framwork is working , plz help us .
Joseph Craig
DNN MVP
Posts:11667


--
11/19/2010 6:19 AM  
When you say that you want to add an extra field in the Register Module, exactly what do you want to add.  The registration module can be customized.  See:

It is usually not a good idea to modify the DotNetNuke core.  It is better to add your own custom modules and providers.

It is also a good idea to use available third party modules. For Registration, I recommend the Dynamic Registration and Dynamic Login modules from DataSprings.com.

Joe Craig, Patapsco Research Group
Complete DNN Support
Joseph Craig
DNN MVP
Posts:11667


--
11/19/2010 6:21 AM  
For books, the DotNetNuke Professional 4 and DotNetNuke Professional 5 books are quite good.  For module development, the book by Mitchel Sellers is good.  There is also a book by Michael Washington that has received good reviews.

Joe Craig, Patapsco Research Group
Complete DNN Support
iRohan
Nuke Newbie
Nuke Newbie
Posts:3


--
11/20/2010 1:58 AM  
Respected Sir,

Thanks for replay us ,
i want to know the life cycle of the DNN , can you provide any document .
Balaji L
Nuker
Nuker
Posts:13


--
11/20/2010 2:29 AM  
I want to develop my site in DNN. can I use my won project architecture. if i can use so how to intract with DNN. eg. i want to create Registraion. what is steps of this???? please help me quickly i am waiting for reply
Joseph Craig
DNN MVP
Posts:11667


--
11/20/2010 6:08 AM  
The books that I mentioned will help quite a bit.  There also are documents that can be downloaded at dotnetnuke.com.

Joe Craig, Patapsco Research Group
Complete DNN Support


---