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...Skins, Themes, ...Skins, Themes, ...Install skin for ADMIN userInstall skin for ADMIN user
Previous
 
Next
New Post
9/23/2010 2:56 PM
 
I think most of the danger comes from the use of ASP.NET code in the skin, in both HTML and ascx skins
 
New Post
9/24/2010 11:06 AM
 
Hi by battle friends! thaks for your comments! Obviously isn't possible to know what is safe or not, and obviously like host user I need to know the admin user and hope that they are "safe" user. But If I can I doesen't want to give host role to the admin user! only for upload the skin. I'like what Antony Slater write in his post, but now there isn't a module that do that! And the solution are two - find a work around - find a volounter with time for write this module Another stupid idea, only for speak, ll be find the button for install the template AND MODIFY THE CODE by Rmartin Any Idea
 
New Post
9/24/2010 11:37 AM
 
Hei My friends, following my stupid Idea!!!!
It work!!! And my client is happy, And He is allway an Admin user

Directory
DesktopModules\Admin\Extensions

Extensions.ascx.vb

row 530
replace
Actions.Add(ModuleContext.GetNextActionID, Services.Localization.Localization.GetString("ExtensionInstall.Action", LocalResourceFile), ModuleActionType.AddContent, "", "action_import.gif", Util.InstallURL(ModuleContext.TabId, ""), False, SecurityAccessLevel.Host, True, False)

with
'Actions.Add(ModuleContext.GetNextActionID, Services.Localization.Localization.GetString("ExtensionInstall.Action", LocalResourceFile), ModuleActionType.AddContent, "", "action_import.gif", Util.InstallURL(ModuleContext.TabId, ""), False, SecurityAccessLevel.Host, True, False)
Actions.Add(ModuleContext.GetNextActionID, Services.Localization.Localization.GetString("ExtensionInstall.Action", LocalResourceFile), ModuleActionType.AddContent, "", "action_import.gif", Util.InstallURL(ModuleContext.TabId, ""), False, SecurityAccessLevel.Admin, True, False)

Install.ascx.vb
CheckSecurity function
row 264

add
.......
                End Select
            End If
           
            '========== allow Admin user install extension
            if PortalSecurity.IsInRole("Administrators") then
                allowAccess = true
            End If
            '============================================================
           
            If Not allowAccess Then
                Response.Redirect(NavigateURL("Access Denied"), True)
......


row 287
replace

If Not ModuleContext.PortalSettings.UserInfo.IsSuperUser Then

with

'If Not ModuleContext.PortalSettings.UserInfo.IsSuperUser Then
If (Not ModuleContext.PortalSettings.UserInfo.IsSuperUser) and (not PortalSecurity.IsInRole("Administrators")) Then



IT'S SO BRUTAL, i accept more then one suggestion!

If you want you can make only the Install.ascx modify and give to your client the link to the Install area! For example if you whant that only one admin can add extension!!!!!!

bye bye rmartin
 
New Post
9/24/2010 12:01 PM
 
First problem! The skin are installed in _default/Skin directory, I want /Portal/0/Skin any idea Rmartin
 
New Post
9/30/2010 9:45 AM
 
suggestion?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Install skin for ADMIN userInstall skin for ADMIN user


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