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.04.9.1 Adding "core" fields to user table4.9.1 Adding "core" fields to user table
Previous
 
Next
New Post
2/10/2009 4:02 AM
 

Ronald wrote

hi again,

on the page 2 you stated that i would first call a few login processes and then redirect the user to another page. would that be coded into the module or set up in dotnetnuke?

and the registration/login module, does that have to be only the fields i want to use when logging in or the full registration? because then i would need to make either a seperate login/register page since i only want the ID to be entered on registration and not on login. or i would need to edit the default login page to check for a valid ID, but this would mean i would have to edit again when i update

little edit/addition.

i cant seem to grab the custom field information by the  info.<fieldname> is there a special way to add this to the custom userinfo field?

and to clarify my previous post:

is the redirection handled by dotnetnuke or the module after registration/login
do i need to make a login module and include that on register (like DNN does) or seperate pages?
or do i need to adjust the default login file (admin/login.ascx)
since i want the ID to be entered only on registration.

 
New Post
2/10/2009 11:12 AM
 

Ronald wrote

hi again,

on the page 2 you stated that i would first call a few login processes and then redirect the user to another page. would that be coded into the module or set up in dotnetnuke?

and the registration/login module, does that have to be only the fields i want to use when logging in or the full registration? because then i would need to make either a seperate login/register page since i only want the ID to be entered on registration and not on login. or i would need to edit the default login page to check for a valid ID, but this would mean i would have to edit again when i update

I would go about it as a module; there is no reason to create a completely separate module package, you can create a separate module as part of a larger package (several core projects do this so you can look at some of those for examples on how to build the manifest file -- see the Forums module). 

For your registration module, by all means only put the fields that are required by DNN (username, password) and then the ones you want.  There is no need to include the full package (all the profile fields, etc) if you don't want to.  Just go for a bare-minimum that you need. 

Overall the premise is "Do all the customizations through a module" since that allows for upgrades with minimal amount of work.

Does that make sense? 


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
2/11/2009 2:58 AM
 

yes it does,

i made a register module and linked it to the registration. now two of the required fields arent in the default dotnetnuke fields, so how would i address them?

and how would i do the login? since it requires an extra process to run through before the login proceeds.
would i just modify the default one or make a custom module/page?

 
New Post
2/11/2009 3:33 PM
 

Ronald wrote

yes it does,

i made a register module and linked it to the registration. now two of the required fields arent in the default dotnetnuke fields, so how would i address them?

and how would i do the login? since it requires an extra process to run through before the login proceeds.
would i just modify the default one or make a custom module/page?

What are the fields?  Are they ones you had in the registration process or are these fields that are otherwise required?  If they are otherwise required you could a) include them in your registration or b) mark them required in the profile properties section and then in user settings mark "require valid profile for login" so when they next login it requires them to fill in that information.  Or maybe I'm reading this differently -- you have two required fields that they need to fill in but you don't have somewhere to put them?  If that's the case, put them in the custom profile properties (Users-->Manage Profile Properties) and then in the sample I emailed you I believe it shows how to fill info in for custom profile fields (such as their special "ID" you mentioned).

As for login -- I'd create your own login module (can be part of the greater package here) that checks the logic to log them in AND checks the "ID" to make sure it is valid and, if so, logs them in.  You can slap that on a page and then in the Site Settings you set your login page to that tab you create to put the module instance on.

As an example for logging them in, use DotNetNuke.Security.Membership.UserLoginStatus (enum) and DotNetNuke.Entities.Users.UserController.ValidateUser to validate the user and then DotNetNuke.Entities.Users.UserController.UserLogin to actually log them in.  Then proceed to redirect them as necessary (redirection is necessary so the cookies get set).

Hope that sets you in the right direction to complete your project.


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
2/12/2009 3:14 AM
 

the fields are required in the registration process, and i added them to profile properties but dont know how to insert the registration textbox values into them.

the sample you sent me only lead me to something that looks the opposite to me
ParticipationsController.InstitutionUserInsert(inst.ID, info.UserID);

i dont really see where it takes the custom field information and writes it to the DNN userprofile.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.04.9.1 Adding "core" fields to user table4.9.1 Adding "core" fields to user table


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