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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Make Users.ascx and ManageUsers.ascx Accessible to Non-AdminsMake Users.ascx and ManageUsers.ascx Accessible to Non-Admins
Previous
 
Next
New Post
11/14/2007 9:49 AM
 

I would like to create a custom admin role and include User Accounts in a page available to the new role.

I found a thread at http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/108/threadid/17217/scope/posts/threadpage/3/Default.aspx that offers a couple of ways to rty but I am unclear on how to achieve one suggestion.

Michael Flanakin suggests  'Basically, you'll need to create a new module directory in the DesktopModules directory, copy (and modify) the Users.ascx and ManageUsers.ascx controls (you probably won't have to change the Users.ascx control), and register it on the Host > Module Definitions page. To package it up, all you need is to zip up your .ascx files and create a .dnn metadata descriptor. You should copy one of the core module's .dnn file for a starting point - I suggest a simple module, like the Image module, for instance.

When you register the module definition and controls, the Users.ascx control should have a null key and a type of View. The ManageUsers.ascx control should have both a key and type of Edit.'

But i don't fully understand.

When he says 'Basically, you'll need to create a new module directory in the DesktopModules directory, copy (and modify) the Users.ascx and ManageUsers.ascx controls' should I create folders 'DesktopModules/Users/users.ascx and DesktopModules/ManageUsers/manageusers.ascx' or just one folder ''DesktopModules/Users' and put both controls in it?

I tried it the last way and I can add the users module no problem but the manage users module appears in the module drop down list but when I add it to the page it does not show up.

Further, once the module definitions are added, would I then add both modules to a single page? I guess so, right?

Thanks in advance for any feedback. I am using DNN .5.3 with VS.NET 2005 and SQL Server 2005  and I am controlling the server

 
New Post
11/14/2007 11:53 AM
 

If you are going to go about it this way, you would be having them I believe in 1 module with different control keys...


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
11/14/2007 12:01 PM
 

Thanks for your response Mitchell, I appreciate it. I did try adding both controls to one folder and having a null key for users.ascx and an identifying key of 'magageUsers' for manageUsers.ascx, then added the new module to the page but after selecting edit for a user, nothing appears.

Could you suggest another way of approaching this?

Currently I temporarily altered the 'IsAdmin' field in table 'DesktopModules' to allow it to appear in the admins' Control Panel module dropdown list, then added it to a new page, reset the 'IsAdmin' field, and am changing some of the source files to allow the manageUsers module to appear for my custom roles. I think I am on a good track here butI wonder if you have any other ideas.

 
New Post
11/14/2007 12:31 PM
 

You will need to make some modifications if going the second module route to configure the proper "edit key" to get to the manageusers.ascx file.

Your method is also a way of going with it, but you are modifying the core which will most likely break or get overwritten in future upgrades...


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
11/14/2007 1:42 PM
 

Tigris,

I´m not sure if this helps you, but take a look at this at DnnCreative. You hav eto be a subscriber though.

http://www.dnncreative.com/Home/Issues/Volume3/Issueno26/tabid/374/Default.aspx

Regards Petri

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Make Users.ascx and ManageUsers.ascx Accessible to Non-AdminsMake Users.ascx and ManageUsers.ascx Accessible to Non-Admins


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