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.0DotNetNuke built-in usersDotNetNuke built-in users
Previous
 
Next
New Post
5/15/2007 8:41 AM
 

    Hi, i am totaly new to DotNetNuke although i have great experience in web apps using c# .net 2003 and 2005. I want to add some new fields in the dnn created database table "Users" and access all the fields through a Users object, when the users logs into the system. But i seem to have difficulty in finding a way to access the dnn user, either as a class or as a session variable etc.
    I mean, since a user logs in, the application will probably have to know the logged user during the session. Is there any way to access the logged user, and even better is there any way to edit the dnn internal class?

Thanks in advance!

 
New Post
5/15/2007 9:35 AM
 

to extend the user profile, there is a UI, that will handle it. Go to Manage User Accounts in admin menu and select "Manage Profile". Now you can add your own properties and specify order, groups etc.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/15/2007 9:58 AM
 

First of all, thanks a lot for the response. But i have to ask, is there any way to retrieve the logged user through the Session?

 
New Post
5/15/2007 1:17 PM
 

what do you mean, accessing the site log?


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/16/2007 2:56 AM
 

I mean that when the users logs into the system, the application has to keep the user details somewhere (i suppose the session would be a good practice) so that the application knows the user rights all the time. For example the application has to know when a page is accessible for a specific user, which is well dome through the dnn administration.

    But what about if i need to access the user that is logged in, through my code, for another reason, other than the page accessibility. For example, i want a page to be accessible to the user "testUser" for a limited period, or for a specific number of requests. In that case i have, let's say, 10 initial requests in a custom db table called UserServices and i want to decrease the requests ny one, each time the "testUser" logs in. So i have to access the UserID (from the Users DNN table) of the "testUser", find the corresponding record in the UserServices table and decrease the "requests" field by one.

Do you have any idea how i can do that...?

Thanks again for the responses!

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DotNetNuke built-in usersDotNetNuke built-in users


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