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.0extending user profile display, and control.extending user profile display, and control.
Previous
 
Next
New Post
1/7/2008 2:45 PM
 

Hi,

I would like to change the "User Profile" display in the "manage user" panel. And I would like to ask the following questions:

1) Under admin/Users/manageusers.aspx, where is the actual realization of dnn:profile ctlProfile, pnlProfile located? Particularly, if one wants to rearrange this panel, where/what should he look for? Is that true that, currently, dotnetnuke user profile is followed the flow implementation?

2) On the profile properties, I want to implement another data type, similar to the country pull-down-list. How do I implement such thing? Where are the country data located? If the USA is selected, the state list will be enable. Where/how is this controlled?

Any comment is greatly appreciated. Thank you very much.

 
New Post
1/8/2008 2:36 AM
 

I only can answer number two. To retrieve country pull down list from DotNetNuke Lists is like below :

First, add DotNetNuke.Common.Lists namespace.

Second, retrieve the collection using this approach :

ListController le = new ListController();
ListEntryInfoCollection leic = le.GetListEntryInfoCollection("Region","","Country.US");

Last, bind it to bindable control. For example, i use DropDownList :

DropDownList dl = new DropDownList();
dl.DataValueField = "Value";
dl.DataTextField = "Text";
dl.DataSource = leic;
dl.DataBind();

this.Controls.Add(dl);

CMIIW.

 
New Post
1/8/2008 3:37 AM
 

dnn:profile is just a tag to recognize that  you use this line inside your .ascx :

<%@ Register TagPrefix="dnn" TagName="Profile" Src="~/Admin/Users/Profile.ascx" %>

ctlProfile is the ID of your tag based on your tagprefix above. That's the ID that you want to manipulate from code behind. pnlProfile is just a panel control to show or hide the view of the profile.

For question number one, CMIIW, did you mean that you want to show User Profile to your custom module ? For example, to show user profile from logged in user ?

If so, first put Profile.ascx inside your .ascx :

<%@ Register TagPrefix="dnn" TagName="Profile" Src="~/Admin/Users/Profile.ascx" %>

Then, add the control:

<dnn:Profile id="ctlProfile" runat="server"></dnn:Profile>

In code behind, add this code in your Page_Init method (or in another method based on your scenario) :

ctlProfile.ID = "Profile";
ctlProfile.UserId = DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo().UserID;

Then you can load the profile's value from Page_Load (or in another method based on your scenario) like below :

ctlProfile.DataBind();

Is that what you mean ?

CMIIW.

 
New Post
1/8/2008 3:59 AM
 

I'm not sure about item #1, however for Item #2 login as Host and check "Lists" under the Host menu.

It's been quite some time since I worked with the Lists piece, so I'm afraid I can't really go into details on how to manipulate it for your needs.

 

 
New Post
1/8/2008 9:10 AM
 

Thank you, all, very much for helping me out. I gained alot insight into how dotnetnuke works, and I appreciate your helps very much.

I, however, could not understand where the actual realization of "user profile editor" layout located. I want to change it from the "flow" layout into the "grid" layout, but could not locate the actual code that implements this binding. Under the most examples, the page_load method creates applicable components, and adds these components into the panel, e.g.: pnlProfile; the panel layout property dictates how the components are layout, e.g.: flow, grid, etc.

Previous versions of dotnetnuke have implemented different layouts, and I try to combine these layouts for my specific application. Can you point out where should I devote my attention to. Thank you very much.

Your helps are greatly appreciated very much.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0extending user profile display, and control.extending user profile display, and control.


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