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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Display User Profile on New PageDisplay User Profile on New Page
Previous
 
Next
New Post
11/10/2009 7:04 PM
 

I made a module that I would like to add to the user profile for my site. It's a list of admin users they can contact if they have any questions (saves them from all coming to me with every single question :) )

I found the profile info is all in DesktopModules/Admin/Security/manageusers.ascx. I started off by putting my module straight onto this page using the register tags in asp:

<%@ Register TagPrefix="evi" TagName="InstAdmin" Src="~/DesktopModules/EviInstAdmin/EviInstAdmin.ascx" %>

I then display my module on the page:

<evi:InstAdmin ID="EviAdminList" runat="server" />

This works fine, but I don't like it as I'm modifying the core source which means I have to maintain it as things move forward. So I tried adding the manage users to my module like I did above:

 

<%@ Register TagPrefix="dnn" TagName="ManageUsers" Src="~/DesktopModules/Admin/Security/manageusers.ascx" %>

and then display it:

<dnn:ManageUsers ID="prof" runat="server" />

The problem I'm getting is some value is not being set when I call this and I get an error.  I noticed there is a PageNo tag for the manageusers and I tried setting that to 0 for the first page.  I also noticed there is a User tag that can go in, but I think it wants a UserInfo object in it.  I have no idea how to do that.  Here was my last shot:

<dnn:ManageUsers ID="prof" runat="server" PageNo="0" User="3" />

The 3 is my UserId which I just added for testing.  No luck.

Any ideas on how I can do this?  I know I could make my own profile page, even copy the code from manage users and do it that way.  But I'd like to stick with the code from the core files if possible.  I have a feeling it's just something I'm missing in ASP, but don't know what.

-Mike

 
New Post
11/11/2009 5:23 AM
 

do not touch the core. you can create a page (not included in menu) with user accounts module on it and your module. besides you need to specify this page in site settings for user accounts page. HTH


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/12/2009 11:23 AM
 

Thanks Sebastian.  I'm glad I asked.  That solution is much easier than what I was doing.  Users and Roles module on the page, deleted the Security Roles and User Accounts pieces and it works great.

Thanks again.

-Mike

 
New Post
11/12/2009 11:49 AM
 

 


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Display User Profile on New PageDisplay User Profile on New Page


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