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  |  

ExactTarget - What's Your Score
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Customize the Registration form
Previous Previous
 
Next Next
New Post 11/29/2006 11:16 AM
User is offline Jeff Herington
18 posts
10th Ranked


Customize the Registration form 
Hello,

My goal: Have the UserName field always default to the registered user's email address and then to hide the UserName row whenever DNN builds a related form control. I do this to accomodate the SSO solution I devised of which currently uses the email address as the login. I was able to accomplish the UserName modification but only by doing a rough hack of the DNN PropertyEditorControl.vb and the UserInfo.vb.

I would prefer to be able to access the UserName textbox and lable via the ManageUsers.ascx (of which I cloned within my own PA for the SSO fix). Is there anything anyone can suggest regarding this? I was thinking somehow of getting a reference to the User.ascx's UserEditor object and then effect the visibility property kind of how I hacked it the PropertyEditorControl.vb? I don't know, I am open to any suggestion. Anyway, what is up with this UserName field anyway. I know the Microsoft provider needs it, but there should be a clearer way to work with these "required" fields...in my opinion.

Anyway, Thanks!

 
New Post 12/7/2006 9:32 AM
User is offline Peter Barclay
71 posts
10th Ranked


Re: Customize the Registration form 
Modified By Peter Barclay  on 12/7/2006 1:37:54 PM)

 <td class="SubHead" width="175">
  <dnn:label id="plUserName" runat="server" controlname="txtUsername" text="User Name:"></dnn:label></td>
 <td class="NormalBold" noWrap>
  <asp:textbox id="txtUsername" tabIndex="3" runat="server" cssclass="NormalTextBox" size="25"
   maxlength="175"></asp:textbox>
  <asp:label id="lblUsernameAsterisk" runat="server">*</asp:label>
  <asp:label id="lblUsername" runat="server"></asp:label>
  <asp:requiredfieldvalidator id="valUsername" runat="server" cssclass="NormalRed" display="Dynamic" errormessage="<br>Username Is Required."
   controltovalidate="txtUsername" resourcekey="valUsername"></asp:requiredfieldvalidator></td>

Then go to the vb page and look for this.

Public Property UserName() As String
Get
UserName = txtUsername.Text
End Get
Set(ByVal Value As String)
_UserName = Value
End Set
End Property

Then just change the line UserName=txtUsername.Text to be UserName=txtEmail.Text

ANY TIME I make a small change like this in the system. I usually use some kind of unique rem statement so that I can easily do a search for things I've changed or removed. So like on the vb page mine would look like this with an extra .,. so I can find it.REM.,. UserName = txtUsername.Text
UserName = txtUsername.Text

 

 

At one time I was thinking of doing something very similar. I wanted to just have my users use their email for login. The problem is, once you start changing this type of thing you have to do all of it. So to do this in DNN I was going to do this with this methodology. First, find an existing set of registration pages that you like. So for me, I like the UCanUse User Attribute Module. This one lets me do a lot of extending of the registration like adding new items. You can also do this with the DNN registration page though. Create a new project out of it. Copy the register and user.ascx and vb pages to it and do the changes. If you're looking for a quick and simple short cut you could just edit the exiting registration module page. The control that handles the user login is user.ascx under the directory \dotnetnuke\controls\. Go in there and change the user.ascx page. First what you do is just rem out the whole username row. Either rem out or delete this area of the ascx

 
 
New Post 12/7/2006 2:26 PM
User is offline Jeff Herington
18 posts
10th Ranked


Re: Customize the Registration form 

Now I'm really confused...

The registration form I want to change (DNN ver 3.3.6) is 'admin\users\ManageUsers.ascx' of which the user control that contains the 'UserName' object is 'admin\users\User.ascx'. It appears to me that this User.ascx holds a reference within a placeholder to 'controls\propertyeditor\PropertyEditorControl.vb' (referenced as 'UserEditor'). It seems the User.ascx.vb's 'Sub DataBind' routine is called to build the User.ascx UserName object (along with the other required registration objects e.g. Email). It appears the DataBind essentially causes the PropertyEditorControl to take the 'components\users\UserInfo.vb' class (in this case) and build the necessary objects (textboxes, labels, etc..). The PropertyEditorControl is reading attributes that decorate the class properties to determine how to handle building the UserName, ect. objects on the User.ascx control (in this case).

With that said, are you suggesting that I bypass this User.ascx and replace the reference in the ManageUsers.ascx with the 'controls\User.ascx' and then follow your instructions? If I do that it would seem I would then not have the dynamic registration field capability that the PropertyEditorControl now gives me??

And while I'm asking, possibly you or someone could tell me where/how DNN is updating the UserInfo class after the user selects register and the form postback occurs. I can not figure out how the text typed into the various textboxes i.e. UserName get hydrated into the associated UserInfo class...how is this happening, I can't find any sort of UpdateUser code that gets called in any of the User.ascx or parent classes. I see how the DataBind is called initially to build the textbox objects but where in the postback process are the textbox text values hydrated back into the UserInfo class??? A real mystery to me!

Any help on this would be very much appreciated!!

 
New Post 7/16/2007 10:19 PM
User is offline trantrongbang
1 posts
10th Ranked


Re: Customize the Registration form 

Please help me. I recently known about DNN. So now i want to change the registration form. Can you help me?

I want  to customize the dnn:propertyeditorcontrol

Thanks any way.

 
New Post 7/16/2007 11:40 PM
User is offline Sebastian Leupold
13223 posts
www.deutschnetnuke.de
1st Ranked












Re: Customize the Registration form 

login as admin, go to Manage User Accounts in Admin menu and use Manage Properties, to adopt the profile properties for the users.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Customize the Registration form
 


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.

 


Powered by Adcuent®.Com
Adcuent® Consulting & Technology offers custom development web applications and hosting projects under the brand of Powered by Adcuent®.Com
www.adcuent.com
Easily Build DNN Solutions with XMod
XMod makes it easy to build news articles, house listings, custom feedback forms, product reviews and much more - without programming
www.DNNDev.com
Software Development and Integration with DNN
HNP Solutions focuses on the pragmatic use of technology and process to meet an organization's business objectives. HNP Solutions employs seasoned Enterprise and Solution Architects, Delivery Managers and QA & Business Leads. Our capabilities range from project assessments & recommendations, design & code reviews, to full program implementations. We also work with organizations in need of senior staff augmentation purposes in the areas of Enterprise and Solution architecture.
www.hnpsolutions.com

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