R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
Custom User Registration Explained
Last Post 01 Jan 1900 05:00 AM by . 28 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Page 1 of 212 > >>
Author Messages Informative
mrwebslingerUser is Offline
Basic Member
Basic Member
Posts:357

--
30 Oct 2006 12:11 AM  
OK, Upon playing with the custom user registration function of v 1.9.0 I wanted to explain a couple of things that aren't covered in the documentation yet. See Page 28 in the latest documentation for the basics.

First off, make sure the first action is to assign a blank name to -1. In the documentation, it almost looks like a 1 because of a line break but that would edit the host info which you don't want to do.

The required fields that will need to be populated are:
Username, Password, Email,PortalID and RoleID. I also have FirstName, LastName and DisplayName but I don't think they are required to create a user.

Now, you will probably want to assign the user a Role of 1 and 2, subscriber and user so simply just repeat the assignment with the different values.

The first mistake I made was leaving out the PortID and RoleID. It populated the user among the proper tables but DNN didn't recognize the user so those 2 values are important.

I will attach an xml file. It's not formatted, no verification and isn't petty but it works and will give you a jump start.

Thanks Bi4ce for this functionality, this is an awesome addition to and already superior module!

Attachment: RegisterUser.xml

rtoneriiUser is Offline
Basic Member
Basic Member
Posts:308

--
30 Oct 2006 02:53 PM  
mrwebslinger,
I am a little confused. I go to page 28 of the document (http://dnn.bi4ce.com/Desktopmodules/ListX/Bi4ce.ListX.Documentation.pdf) and I do not see anything about user registration. Am I looking at the right document?


mrwebslingerUser is Offline
Basic Member
Basic Member
Posts:357

--
30 Oct 2006 03:20 PM  
Assuming you are looking at the documentation for 1.9.0 on Page 28 under the Action:Assignment, Bi4ce has added the ability to tie into the UserInfo to create registrations. Look about half way down the page for UserInfo and it explains the basics of Editing and Creating Users for you Portal.

For clerification on the above instructions, Make sure you assign RoleID twice, Once to a value of 1, the next time to a value of 2. This will assign the user to both the subscription role and registered user role. If you want to assign them to any other roles, you will need to add more assignment with the appropriate RoleID.



rtoneriiUser is Offline
Basic Member
Basic Member
Posts:308

--
30 Oct 2006 04:24 PM  
I see it now... I will have to try and and play with this some.

Thanks


bebek1User is Offline
New Member
New Member
Posts:14

--
08 Nov 2006 11:57 PM  
Thanks for the info.

The next step I'm trying to do is to load up the user profile into UserInfo object, as described in the manual.

I've tried assigning the UserId value to <UserInfo>, leaving the name property blank, but this approached didn't work at all for me. Is there anything missing from the manual?

I imagine once you have load up the UserInfo object, all you have to do is use [UserInfo.FirstName] to output the First Name and so on.

Has anyone worked out how to do this?


mrwebslingerUser is Offline
Basic Member
Basic Member
Posts:357

--
09 Nov 2006 03:24 PM  
Alot depends on what information you want. If you just want FirstName, LastName, DisplayName you can get that straight from the Users table.

Select FirstName,LastName,DisplayName FROM Users WHERE UserID=[UserID,System]

Then just use the column values for your default form values.


RaynellUser is Offline
New Member
New Member
Posts:53

--
10 Nov 2006 06:07 PM  
I tried to get the XML you attached but could not download it. Also, how do you just add a role to the currently loaded user?


Thanks,
FLARoman


rtoneriiUser is Offline
Basic Member
Basic Member
Posts:308

--
10 Nov 2006 09:23 PM  
Try just right clicking on it and selecting "Save As" If you try to just pop it open and save it, your browser will try to process it.

Rick


mrwebslingerUser is Offline
Basic Member
Basic Member
Posts:357

--
12 Nov 2006 08:52 PM  
I need to update you all on this procedure. The PortID needs to be assinged first, before anything else. This will assure that the correct ProfilePropertyDefenitionID get assinged correctly. In my example, it was using a portal id of NULL which is reserved for the super user accounts I believe. It will just mess up things when you go to query that info. Also, DNN can't get that info when sending password reminders and stuff.

Note, I also moved the role assingments to the top just in case that is needed.

Raynell, I haven't added a role to any current users yet using ListX. If I get around to that function, I will post it for you.


emaynardUser is Offline
Basic Member
Basic Member
Posts:182

--
18 Nov 2006 01:06 AM  
Maybe this isn't possible as bebk1 outlines below, but I could really use this capability to pull out specific Profile settings.

Is it possible to simply load the UserInfo object and then reference the UserInfo.Profile settings directly in your HTML views?

Or do we need to assign the UserInfo object and then individually assign each Profile setting we wish to use?

Or are none of the above possible?

I know I could pull out the Names very easily as MrWebslingersuggest, but I want access to the Profile Settings as easily as possible in this case

thanks

-eric


Posted By bebek1 on 11/08/2006 6:57 PM

Thanks for the info.

The next step I'm trying to do is to load up the user profile into UserInfo object, as described in the manual.

I've tried assigning the UserId value to <UserInfo>, leaving the name property blank, but this approached didn't work at all for me. Is there anything missing from the manual?

I imagine once you have load up the UserInfo object, all you have to do is use [UserInfo.FirstName] to output the First Name and so on.

Has anyone worked out how to do this?





bebek1User is Offline
New Member
New Member
Posts:14

--
20 Nov 2006 01:21 AM  
Hi there,

How do I log the user in after the user registered?

Thanks,


RaynellUser is Offline
New Member
New Member
Posts:53

--
21 Nov 2006 05:11 PM  
Thanks...

I will try to use this in the near future...let me know if there are any updates. BTW...i think the only way to do role assignments is to do it directly to the table. on another topic, is it better to use stored proc instead of SQL? I know there is better control with stored procs but I see no examples of how to use them.


ldownesUser is Offline
New Member
New Member
Posts:53

--
05 Dec 2006 10:52 PM  
Just signed in to your site. Very nice and Thanks for the help here on custom registration. Question. On your user page -After you register and go to edit your profile, how did you implement the changes password feature? I've been searching all day and can't find a way to get the module out of the basic dnn user account module.


zingernetUser is Offline
New Member
New Member
Posts:48

--
06 Dec 2006 04:32 AM  
ldownes,

Thanks for your interest. The Change password module is actually a custom DNN (non-listx) module that we created by implementing the code used in the DNN core. Hopefully Listx will include such features in the future, but for now, this seems to work fine.

Steve


kevinmschreinerUser is Offline
Advanced Member
Advanced Member
Posts:729

--
06 Dec 2006 03:50 PM  
You can do this easily with ListX - if you only want to change the password. In versions of DNN eariler than 3.3 you could also provide the ability to confirm the existing password before changing, but DNN 3.3 changed that handling of passwords so that they are not directly retrievable without inheriting from the newer membership libraries. ListX is built on the 3.0.13 release version of DNN so that it is backwards compatible.

To provide a Password: Password Confirm: box - grab the LP for the Custom registration - strip out everything except that portion of the credentials and then clear out everything from the Actions except for the Loading of the User (UserInfo assignment to -1) and the assignment of the Password value. Finally - keep the Save of the UserInfo also.

If you assign the UserInfo to a number greater than -1, it will load that user, and allow you to update the user. For instance, allowing the current user to change their own password - assign UserInfo to [UserId,System].

I am working heads down on the GoMap/Dotnetnuke:Map releases today but I will get a sample as per what I just dictated online at some point tomorrow.


ldownesUser is Offline
New Member
New Member
Posts:53

--
06 Dec 2006 04:40 PM  
If I understand your post correctly, this won't work in my case because I'm on version 4.3.5. ? Is that right? I know when I try to access the password using [UserInfo.Password, System] I get a message in the debugger stating "Dotnetnuke no longer supports this feature".

Can I still save to it but not retrieve it?


ldownesUser is Offline
New Member
New Member
Posts:53

--
06 Dec 2006 05:41 PM  
When I save an existing user's info as described, The user is logged out and has to re-log-in. Is this normal?


YodaRocksUser is Offline
New Member
New Member
Posts:3

--
12 Dec 2006 01:49 AM  
I hope it's okay to jump in on the tail end of this thread. I have had ListX for a while but am just now thinking about whether or not to use it. Here is what I need to do, and wonder if ListX can accomplish it:

I want to set up a user assgined to a non-admin role. The user ("User A") would have access to a tab that would contain a form. User A would complete the form with information (Username, Name, email address, password, etc.) of User B. Based on the response, the form would automatically assign to User B a role tied to the response. Then User A would continue by adding User C, User D, User E, etc.

I admit I have not spent even one minute with ListX or its manual, though I am certainly able to jump in if this is something that ListX can accomplish. Can it?

Thanks everyone!

Steve



YodaRocksUser is Offline
New Member
New Member
Posts:3

--
12 Dec 2006 01:53 AM  
Darn, the forum won't let me edit. Here's an equally acceptable solution. I wonder if ListX would also (or alternatively) let me do this:

User A, who does not have Admin rights, would have access to a list of already-registered users, sortable by roles. User A would click a user, open a record, and change the role. User A could then continue to change the roles of other users.

Thanks in advance!

Steve


kevinmschreinerUser is Offline
Advanced Member
Advanced Member
Posts:729

--
12 Dec 2006 02:10 PM  
YodaRocks - yes these things are very possible. ListX provides the ability to create any form structure as well functionality that you desire. This task would be rather simple and would require only a few simple factors: The HTML structure for the User creation form, and functionality to create the user / add the user to a role.


You are not authorized to post a reply.
Page 1 of 212 > >>


Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share