You need to Register for free and Login to post a message in the forum.

Forum

Subject: Registration Tutorial
Prev Next
You are not authorized to post a reply.

Author Messages
mcox
Nuker
Nuker
Posts:14

06 Sep 2006 11:39 AM  
I liked your registration tutorial.  It was very good and full of great ides that I would have never considered.  Once someone has registered, is there any way to get a report of the registration.  Right now you can go into users adn edit the profiles but if I will need to print off registrations. 

Can the registration details be emailed, if so that may be good enough.

Mike
leesykes
Nuke Master II
Nuke Master II
Posts:2927

06 Sep 2006 4:56 PM  
Glad you found the tutorial useful. - When a user registers you should receive an email notification, it is sent to the administrators email address - Make sure that the email facilities are set up in your DNN installation for this to work. - Check the Host / settings / smtp

Having said this, I don't know if the registration will email across the full details that are specified in a custom registration form.

You can check the emails that are sent out by going to:

Host Menu / Language Editor / and scroll down

Otherwise, it may require some core code modifications to get the features you require.

If you have access to your SQL database via Enterprise Manager, then you could also potentially create an SQL query to extract the data you require and then save it into an excel file.

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

11 Sep 2006 12:48 PM  
mcox

Did you find a solution to your issue? I have a similar need to get the details of the registration.


Lee
I am creating a site where a person can register for a product, or just register for updates to products. There are different required fields for each type of registration. Is there a way to have more than one registration profile to handle this scenario?

Thanks Lee. I think I just struck the jackpot with these Registration videos. They more than paid for the subscription.
leesykes
Nuke Master II
Nuke Master II
Posts:2927

11 Sep 2006 3:28 PM  
If you wish to create different registration profiles, the only way I can think of doing this is to create several portals within your DNN installation.

Each portal can be setup with a different registration form.

The other option would be to just have several tick boxes on your one registration form asking the user to tick what information they are interested in.

Thanks,

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

25 Oct 2006 2:58 PM  
One thing that I did find is when you go into Security Roles and then click on the security role to view all tthe registered users, you can click on each user and get a report f their registration.  If you used a  container with the Print function enabled, that report may print out relatiively decent.
msbcgsch
Nuker
Nuker
Posts:15

26 Oct 2006 11:18 PM  
Lee

Is it necessary to have both a Username and a Display name in the registration? If you remove the Display name will it display the Username as a display Name? If you can remove DisplayName, how do you do it?

Thanks.

Mark
msbcgsch
Nuker
Nuker
Posts:15

26 Oct 2006 11:24 PM  
Lee

Do you see any problems with using a custom registration page with only a few required fields. Then writing my own registration page where I have additional required fields. I would read the existing data out of the database to populate my own registration page, then when the user submits, I would write all the data back into the database.

I'm doing this because all the user profile data I need is already there for them to register for products. I need mailing address,etc, but I'd like them to just be able to register with a Username/Password/email to get a newsletter and update notices to the site. Does this sound like a reasonable approach or is there a better way?

Thanks Lee.
leesykes
Nuke Master II
Nuke Master II
Posts:2927

27 Oct 2006 6:54 AM  
Hello,

From a quick look, it appears as though you can't remove display name. - Display name is now used for the name that is displayed next to the login / logout link.

I don't know why they have done it this way, seems a bit overkill to me.

With a custom registration page, you shouldn't have any problems, but I have not attempted it so can't really provide a lot of advice. - What I would say is check out the actual register module and see how that interacts with the new version of DNN (This module still uses the old layout of the registration form). It maybe worth just creating a completely new registration module and customizing it to your needs.

There are a few posts on here regarding custom registration forms, so i would have a read through those as well. (for pre DNN4.3.x)

Let us know how you get on,

Thanks,

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

28 Oct 2006 3:52 PM  

Lee

I had another idea on how to create two different registration pages.  What if I just made a copy of the ../Admin/security/register.ascx page and modified the Validator fields?  I know somewhere the fields require validation based upon whether the "required field" checkbox is checked.  Would this be easy to override and just have static validators for each field?

Thanks Lee.

msbcgsch
Nuker
Nuker
Posts:15

30 Oct 2006 3:33 PM  
In case anyone else wants to create a quick & easy custom registration page, here's what I did and it seems to work very well.

I created a new ascx module with labels, texboxes, and dropdownlists, to hold all of the users profile data that and credential data (firstname/lastname/email/displayname) that I want the user to enter. Then I filled in the fields with existing profile data like this:
...
txtCity.Text = UserInfo.Profile.GetPropertyValue("City")
...
If the user hasn't already given this information, it will just appear as a blank textbox.

Finally, I put a "Register" button with the code to write these values to the UserInfo object, like this:
...
UserInfo.Profile.SetProfileProperty("City", txtCity.Text)
...

Followed by this line which writes everything back to the database
UserController.UpdateUser(PortalId, UserInfo)

I still need to Validate the user input before I enter it, but that's not the topic here.

That's basically it. I had one problem - the credential name was not the same as the Profile Name - and I solved that by writing back to both, like this:

UserInfo.Profile.SetProfileProperty("FirstName", txtFirstName.Text) ' Writes to "UserProfile" table
UserInfo.FirstName = txtFirstName.Text ' Writes to "Users" table


One
leesykes
Nuke Master II
Nuke Master II
Posts:2927

31 Oct 2006 3:44 AM  
Hello,

Thanks for posting the info,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
wynander
Nuke Newbie
Nuke Newbie
Posts:1

07 Mar 2008 8:45 AM  
I also liked the registration tutorial.

I have been putting regular expressions in the property validations window (eg to ensure that only post codes of a valid format are submitted) and this works fine.

However, I have not been able to find a way to make regexp work on First Name or Last Name by amending the FirstName and LastName properties.
First Name and LastName have the Required and Visible check boxes unchecked as recommended in the tutorial (ie to remove the second instances of First Name and Last Name from the customised registration form)

Any ideas?

Thanks

John Pollard
stein
Nuke Newbie
Nuke Newbie
Posts:2

01 May 2008 9:28 AM  

Hi there,
I am trying to update property in User Profile. For example i created a new property "CompanyName". How can i update/insert value for "CompanyName"
I am following "One" advise from the above post

UserInfo.Profile.SetProfileProperty("City", txtCity.Text)

UserInfo.Profile.SetProfileProperty("CompanyName", txtCompanyName.Text)

but it is not working for me. Have anybody came across any solution for custom property values?
help will be appreciated.

Thanks
Aleem Qureshi


One said..............

In case anyone else wants to create a quick & easy custom registration page, here's what I did and it seems to work very well.

I created a new ascx module with labels, texboxes, and dropdownlists, to hold all of the users profile data that and credential data (firstname/lastname/email/displayname) that I want the user to enter. Then I filled in the fields with existing profile data like this:
...
txtCity.Text = UserInfo.Profile.GetPropertyValue("City")
...
If the user hasn't already given this information, it will just appear as a blank textbox.

Finally, I put a "Register" button with the code to write these values to the UserInfo object, like this:
...
UserInfo.Profile.SetProfileProperty("City", txtCity.Text)
...

Followed by this line which writes everything back to the database
UserController.UpdateUser(PortalId, UserInfo)

I still need to Validate the user input before I enter it, but that's not the topic here.

That's basically it. I had one problem - the credential name was not the same as the Profile Name - and I solved that by writing back to both, like this:

UserInfo.Profile.SetProfileProperty("FirstName", txtFirstName.Text) ' Writes to "UserProfile" table
UserInfo.FirstName = txtFirstName.Text ' Writes to "Users" table


One
stein
Nuke Newbie
Nuke Newbie
Posts:2

01 May 2008 9:50 AM  
I figured it out. You need to use InitialiseProfile function before using SetProfileProperty function

UserInfo.Profile.InitialiseProfile(PortalSettings.PortalId)

UserInfo.Profile.SetProfileProperty("CompanyName", txtCompanyName.Text)


and it works!!

Thanks
Aleem Qureshi
You are not authorized to post a reply.
Forums > Users Lounge > DNN Creative Articles > Registration Tutorial



ActiveForums 3.7

Latest Forum Posts

RE: Problem in front end by leesykes
The first place I would look is in your skin code, the code for the ControlPanel should look somethi...
RE: Registration Module - Title Repeating Twice by leesykes
Yes, most of the work has been already done for you in the free skins that are available on DNN crea...
Problem in front end by kaustav_kar
Hi,In my website which is in Dot Net Nuke is showing the control panel in the front end in all the p...
RE: Registration Module - Title Repeating Twice by jncraig
Creating a custom container isn't necessary!Lee has been including a "transparent, no title" skin wi...
RE: Registration Module - Title Repeating Twice by Tripytaka
Leesykes, Thank you for your prompt reply. I have un-ticked the display container setting and it ...
RE: Free website monitor by inetwiz
Another free site monitor website is http://www.contentsitemonitor.com This site allows to you to pe...
RE: PowerDNN by jazzylily
I have spoken with Tony Valenti today.  He seems like a nice man and has assured me that he will loo...
RE: Any Idea On A Module For The Following? by leesykes
I haven't seen anything that will do this in one area. Looks like you may need a custom module for t...
RE: Google Maps Tutorial Website by mgordon
Hi,I took a look at your site.  It was not bad at all.My only suggestion would be to somehow delinea...
RE: PowerDNN by DavidWSnow
I have been with PowerDNN for about a year now. No performance degradation issues.They do seem to go...
RE: PowerDNN by mgordon
JazzLilly,Please let us know if your issues get resolved.  I'm getting ready to start a contract for...
RE: Any Idea On A Module For The Following? by mgordon
OK, thanks Joe. Anyone else have any ideas? Thanks! Mark
RE: Any Idea On A Module For The Following? by jncraig
Yikes! I guess my answer is no. I don't know of a module that will meet your needs on this one.
RE: Any Idea On A Module For The Following? by mgordon
Hi Joe, No, you were answering someone else's question. Please re-read my question at the top. ...
RE: Changing top navigation bar item by jncraig
Great!
RE: Creating anchors across modules by jncraig
I have had no problem inserting anchors. If you want to place anchors at the top or bottom of modul...
RE: Registration Module - Title Repeating Twice by leesykes
That's interesting, I have never seen that before!But, after adding the user accounts module to the ...
RE: PowerDNN by MobileNow
Hi JazzLilly,Is there a phone number I can reach you at?  I'd like to talk with you about your issue...
RE: Creating anchors across modules by leesykes
it should be possible to add anchor points anywhere on a page, all you need to do is work out how to...
RE: Media in internet explorer. by leesykes
if you are only adding images to the page, I would simply use the text HTML module and this should g...
AppTheory
RSS Feeds