DNN roles and image dirs

Last post 10-18-2005, 5:19 PM by Adam. 9 replies.
Sort Posts: Previous Next
  •  09-27-2005, 6:34 PM 11104

    DNN roles and image dirs

    Hi
    On my sites, a few administrators with different edit priviliges will do the administration. Therefore, some are in a role called Restricted Admins, and some are in a role called Content Only Admins. The thing is, they need to share images, and a user "upgraded" from one of the roles to the other still needs to be able to access "his" old images. Is this possible? It seems like CuteEditor creates subdirectories for every role. Is there a good way to change this, or to set the image folder (in relation to the Portal root folder) on a per role basis?

    Also, how does CuteEditor treat a user belonging to several roles? Which bundle of settings does he get from web.config, and which folders get created for him?

    Cheers
    Jesper




  •  09-28-2005, 3:52 PM 11148 in reply to 11104

    Re: DNN roles and image dirs

    Any news on this? I really would like to see an answer to this because I have the same problem.
  •  09-28-2005, 10:15 PM 11159 in reply to 11148

    Re: DNN roles and image dirs

  •  10-04-2005, 7:02 AM 11356 in reply to 11159

    Re: DNN roles and image dirs

    Still waiting for an answer...
  •  10-05-2005, 11:07 AM 11421 in reply to 11356

    Re: DNN roles and image dirs

    In Version 4.5 you could handle this by programming it into the Provider by yourself - the trick was into sub Initialize RootImageDirectory...
  •  10-06-2005, 2:18 PM 11498 in reply to 11104

    Re: DNN roles and image dirs

    ...
  •  10-06-2005, 2:23 PM 11499 in reply to 11498

    Re: DNN roles and image dirs

    Sorry for the delay guys.
     
    But I do need more time to find a better explanation.

    It's not an easy question which I can reply right away.

     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-16-2005, 1:23 PM 11753 in reply to 11104

    Re: DNN roles and image dirs

    I really need an answer to this question, since we're probably buying the license tomorrow, and I need to ensure there's a path for upgrading users from one role to another in the future, without having to move image files and changing the links to every image in a site

    Cheers
    Jesper
  •  10-18-2005, 5:03 PM 11820 in reply to 11104

    Re: DNN roles and image dirs

    jesper,
     
    >>Also, how does CuteEditor treat a user belonging to several roles? Which bundle of settings does he get from web.config, and which folders get created for him?

    First please download the latest provider from here: Http://CuteSoft.net/download/DotNetNuke.CEHtmlEditorProvider.zip

    If the user belongs to Role A, Role B and Role C, the editor will check the Role A setting first.

    If the Role A setting is defined in the web.config, the Role A setting will apply to the current user.

    If not, the editor will check the Role B setting.

    If the Role B setting is defined in the web.config, the Role B setting will apply to the current user.

    ................

    If the editor can't find the setting at all, the Guest setting will apply to the current user.
     

    Example:


    Case 1:

    If the current user belongs to "Administrators", "Registered Users", the current user will use the following setting:

         Admin_AutoConfigure = "Full"
         Admin_SecurityPolicyFile = "admin.config"
         Admin_TemplateItemList = ""
         Admin_DisableItemList = ""
         Admin_AllowPasteHtml  ="true"
         Admin_EditorOnPaste  = "default"
         Admin_ReadOnly = "false"
         Admin_ShowBottomBar ="true"
         Admin_ShowHtmlMode  ="true"
         Admin_ShowPreviewMode  ="true"
         Admin_EnableStripScriptTags  ="false" 
         Admin_EnableContextMenu    = "true"
         Admin_EnableContextMenuEditing  = "true"  
         Admin_EnableContextMenuFormat   = "true"
         Admin_EnableContextMenuInsert  = "true"
         Admin_EnableContextMenuInsertAdvanced  = "true"
         Admin_EnableContextMenuInsertFiles = "true"
         Admin_EnableContextMenuInsertForms = "true"
         Admin_EnableContextMenuRelative = "true"
         Admin_EnableContextMenuTags = "true"
         Admin_EnableContextMenuVerbs = "true"    

    Case 2:

    If the current user belongs to "Site_Administrators", "Registered Users" but the "Site_Administrators" setting is not definded in your web.config, you the current user will use the following setting:

        Registered_AutoConfigure = "Full"
         Registered_SecurityPolicyFile = "default.config"
         Registered_TemplateItemList = ""
         Registered_DisableItemList = ""
         Registered_AllowPasteHtml  ="true"
         Registered_EditorOnPaste  = "default"
         Registered_ReadOnly = "false"
         Registered_ShowBottomBar ="true"
         Registered_ShowHtmlMode  ="true"
         Registered_ShowPreviewMode  ="true"
         Registered_EnableStripScriptTags  ="false" 
         Registered_EnableContextMenu    ="true" 
         Registered_EnableContextMenuEditing  = "true"  
         Registered_EnableContextMenuFormat   = "true"
         Registered_EnableContextMenuInsert  = "true"
         Registered_EnableContextMenuInsertAdvanced  = "true"
         Registered_EnableContextMenuInsertFiles = "true"
         Registered_EnableContextMenuInsertForms = "true"
         Registered_EnableContextMenuRelative = "true"
         Registered_EnableContextMenuTags = "true"
         Registered_EnableContextMenuVerbs = "true"


    Case 3:

    If the current user belongs to "Administrators", "Registered Users" but the "Administrators" setting and "Registered Users" setting are not definded in your web.config, you the current user will use the following setting:

         Guest_AutoConfigure = "Full"
         Guest_SecurityPolicyFile = "default.config"
         Guest_TemplateItemList = ""
         Guest_DisableItemList = ""
         Guest_AllowPasteHtml  ="true"
         Guest_EditorOnPaste  = "default"
         Guest_ReadOnly = "false"
         Guest_ShowBottomBar ="true"
         Guest_ShowHtmlMode  ="true"
         Guest_ShowPreviewMode  ="true"
         Guest_EnableStripScriptTags  ="false" 
         Guest_EnableContextMenu    ="true"  
         Guest_EnableContextMenuEditing  = "true"  
         Guest_EnableContextMenuFormat   = "true"
         Guest_EnableContextMenuInsert  = "true"
         Guest_EnableContextMenuInsertAdvanced  = "true"
         Guest_EnableContextMenuInsertFiles = "true"
         Guest_EnableContextMenuInsertForms = "true"
         Guest_EnableContextMenuRelative = "true"
         Guest_EnableContextMenuTags = "true"
         Guest_EnableContextMenuVerbs = "true"


     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-18-2005, 5:19 PM 11822 in reply to 11104

    Re: DNN roles and image dirs

     jesperottosson wrote:
    Hi
    On my sites, a few administrators with different edit priviliges will do the administration. Therefore, some are in a role called Restricted Admins, and some are in a role called Content Only Admins.
     
    It looks like you need to modify the provider (CEHtmlEditorProvider.vb).
     
    The following code will get you start:

                    -----
                    Dim trim(1) As Char
                    trim(0) = "/"c
                    Dim tempfolder As String = "Guest"
                    Dim Templatefolder As String = ""
                    If role = "Admin" or role = "Restricted Admins" or role = "Content Only Admins" Then
                        tempfolder = ""
                    ElseIf role = "Registered" Then
                        tempfolder = "Member"
                    ElseIf role <> String.Empty Then
                        tempfolder = role
                    End If                
                    -----

     jesperottosson wrote:
    Hi
    a user "upgraded" from one of the roles to the other still needs to be able to access "his" old images. Is this possible?


    If the user has been upgraded to admin level, the user can has access to all the old images.
     
     
     jesperottosson wrote:
    Hi
    It seems like CuteEditor creates subdirectories for every role. Is there a good way to change this, or to set the image folder (in relation to the Portal root folder) on a per role basis?
     

    CuteEditor creates subdirectories for every role (except the admin role).

    If you want to change it, please modify the provider (CEHtmlEditorProvider.vb).

    Hope it helps.

    Let me know if you have any further questions.

     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML