Products

Solutions

Resources

Partners

Community

About

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.0how to add an existing admin module for regular users to use?how to add an existing admin module for regular users to use?
Previous
 
Next
New Post
1/13/2008 7:11 PM
 

There are many great modules in Admin and Host, I want to make some of them available for other roles (besides admin) to use. For example, add to other tabs. How to do that?

Thanks

 
New Post
1/14/2008 4:42 AM
 

there are some examples around, where people modified an admin module for non-admin use, but be aware, that the core admin modules are currently designed for admin use and might not provide proper security settings, when used outside admin/host menu.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/14/2008 11:25 AM
 

Thanks Sebastian. Could you provide more information where to find those examples where admin modules have been turned into non-admin use. Any web site? Thanks

 
New Post
1/16/2008 1:37 PM
 

I just found on the web from Brian Orrel's blog: http://blogs.parivedasolutions.com/borrell/archive/2005/09/25/DNNBulkEmail.aspx 

I've always wanted to be able to allow end-users the ability to use the DotNetNuke Bulk-Email functionality without giving them full admin access to the site.

Even if the DotNetNuke Gods did not want to provide that functionality, I figured it couldn't be that difficult to get to work.  Sure enough, it wasn't.

First, I went into Module Definitions and created a new Module and Module Definition -- I called mine “Pariveda Newsletters” but you could call it whatever you want.  I then added a View control to the Module.  It doesn't matter what control you pick because you will be manually changing it later.

Then I ran the following SQL update statement to point my new module to the “Admin” Bulk Email control.

UPDATE ModuleControls
SET ControlSrc = 'Admin/Users/BulkEmail.ascx'
FROM ModuleControls MC
JOIN ModuleDefinitions MD on (MC.ModuleDefID = MD.ModuleDefID)
JOIN DesktopModules DM on (MD.DesktopModuleId = DM.DesktopModuleId)
WHERE DM.FriendlyName = 'Pariveda Newsletters'

Now you can place the “Pariveda Newsletters” control anywhere you darn well please and set security appropriately.  It's up to you.

 

 
New Post
8/19/2008 12:37 AM
 

I can't say whether Brian's approach worked in prior versions, but it doesn't work with DNN version 4.8.4 that I'm using.  Setting a module so that it shows up in the list of available modules is much simpler than the SQL statement and approach that Brian had to undertake.

The desktopmodules table includes an attribute for 'isadmin'.  Modules that have this attribute set to 'true' do not appear on the available list, while modules that are set to 'false' do appear.  So the solution is to simply change this attribute in this table from true to false for the Bulk Email module.

The SQL is simply:

Update desktopmodules
set isadmin = 0
where friendlyname = 'Bulk Email'

Then the module appears in the list of available modules that can be applied to any page.  Be sure to set the module permissions restrictive enough so that undesired use of your email account doesn't occur!

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0how to add an existing admin module for regular users to use?how to add an existing admin module for regular users to use?


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