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...Building ExtensionsBuilding ExtensionsModulesModulesModify the Registration, Login and User Profile ModulesModify the Registration, Login and User Profile Modules
Previous
 
Next
New Post
2/21/2011 7:29 PM
 
For what its worth - Ive long thought that there is a large failing in the DNN core with regard to the Login, Registration and User Profile pages not being template driven.

These same questions appear over and over again on the forums.

Westa
 
New Post
2/22/2011 3:14 AM
 
I can't disagree with your opinion, Westa.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/4/2011 5:59 AM
 
Hey guys,

thanks for your support so far.
Unfortunately, I think I'm still stuck a little bit...

I have created an own module, inserted it on a test page and tried to adopt the functionality of the modules you've mentioned, but the registration form is not showing up as I intended.
At first I tried to re-use the code of the Authentication.ascx.vb file, which only seems to bring up a configuration form for the login module, so I think this not the module module I'm searching for.
I could also upload a screenshot of the output to make my thoughts clearer, but I've not figured out to use the Image Manager to upload images in here yet...
Anyway, the code of the ViewProfile module doesn't seem correct to me either, and therefore I also tried the code from the User.ascx and User.ascx.vb files in the Security directory, which produces a more registration-like output, but unfortunately only when I'm logged in.

As you probably can see, I'm still a little confused about which files are really containing the registration functionality I am seeking for and how I should adopt which code into my own module to make it work.
Also I'm not sure about how to alter the data providers of my module or how to create an own membership provider.

Furthermore, I think I should mention that I'm programming my own module in C# rather than VB, because I'm more familiar with the language and converting the VB code to C# has not been a problem until now.

Any help on these topics would be greatly appreciated.

Kind regards,
Chris
 
New Post
3/4/2011 9:37 AM
 
I must have to say that the way the current dnn system works is rather messy and confusing.

It all revolves around the users.ascx and manageusers.ascx and profile.ascx files - intermingled with layers of rather confusing controls driven by dnnpropertycontroleditor.  

Basically, manageusers.ascx looks at a lot of different parameters and works out which part of the user system it needs to display.

The main trick is that manageusers inherits from UserModuleBase as opposed to PortalModuleBase - one of the bigger differences between the two classes is that the userinfo context in managerusers does not automatically show the currently logged on user.

In portalmodulebase if you look at userid you will always see the user id of the currently logged in user.
In usermodulebase however, by default userid will be -1 or no user.

This is how manageusers works out that it needs to display the rego version instead of the user profile version when it is displayed on its own - as opposed to being displayed .

But to be honest - I still really think you would be better looking at a membership provider type solution - instead of trying to hack your way around the built in modules.

Ultimately all the built-in modules make calls down into the membership providers.

Westa
 
New Post
3/5/2011 10:39 AM
 
Thanks for your quick reply and your explanations Westa.

Actually, after some tries I thought about the possibility that one of the modules could be the manager for multiple functionalities, but I was not sure which one.
So, if I would like to adopt the features of the "controller" module into my own module, would it be sufficient to use the code of the manageusers files? And if yes, how should which parameters be set in order to produce an output similar to the core registration form?

Regarding your advice to go for a solution based on a membership provider:
I respect your experience in this case, but I also have hardly a clue how to start with it.
Does someone of you know a good tutorial explaining the implementation of such a membership provider for DNN 5+?

Thanks in advance.
Chris
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesModify the Registration, Login and User Profile ModulesModify the Registration, Login and User Profile Modules


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