User roles in DNN 3.13 and Cutesoft menu

Last post 05-12-2005, 3:27 PM by Mariette. 9 replies.
Sort Posts: Previous Next
  •  05-07-2005, 6:49 AM 6480

    User roles in DNN 3.13 and Cutesoft menu

    I have created new security roles in DNN for my forum. This role is called "Forum Admins" and I want the users who are part of this security group to have full Cutesoft menus but I don't want those users to be a member of the Administrators group in DNN.
     
    How do I do that?
     
    Bye
    Mariette
  •  05-07-2005, 4:24 PM 6493 in reply to 6480

    Re: User roles in DNN 3.13 and Cutesoft menu

    Mariette,
     
    You need to open and edit CEHtmlEditorProvider.vb file. Then recompile your project.
     
    We don't have any better solution right now. If you need any further help, please let me know.
     
     

    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

  •  05-09-2005, 6:16 PM 6541 in reply to 6493

    Re: User roles in DNN 3.13 and Cutesoft menu

    I can recompile, no problem. But it would be nice if you could tell me where to start?
  •  05-09-2005, 6:31 PM 6542 in reply to 6541

    Re: User roles in DNN 3.13 and Cutesoft menu

    Mariette,
     
    Great.
    I'll write a step by step intruction tonight.
     
     

    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

  •  05-10-2005, 9:59 AM 6552 in reply to 6542

    Re: User roles in DNN 3.13 and Cutesoft menu

    Mariette,
     
    Step 1:

    Add the following code into your web.config file.
        ....
         Forum_Admins_AutoConfigure = "Full"
         Forum_Admins_SecurityPolicyFile = "admin.config"
         Forum_Admins_DisableItemList = ""
         Forum_Admins_AllowPasteHtml = "true"
         Forum_Admins_EditorOnPaste  = "default"
         Forum_Admins_ReadOnly = "false"
         Forum_Admins_ShowBottomBar ="true"
         Forum_Admins_ShowHtmlMode = "false"
         Forum_Admins_ShowPreviewMode = "true" 
        ...
     
    Step 2:

    Open the CEHtmlEditorProvider.vb file, adding the following private variables:
        ....
            Private _forum_admins_autoconfigure As String
            Private _forum_admins_securitypolicyfile As String
            Private _forum_admins_templateitemlist As String
            Private _forum_admins_disableitemlist As String
            Private _forum_admins_allowpastehtml As Boolean
            Private _forum_admins_editoronpaste As String
            Private _forum_admins_readonly As Boolean
            Private _forum_admins_showbottombar As Boolean
            Private _forum_admins_showhtmlmode As Boolean
            Private _forum_admins_showpreviewmode As Boolean
        ...

    Step 3:

    Open the CEHtmlEditorProvider.vb file, adding the following code into the New() subroutine:
        ....
               If Not Null.IsNull(objProvider.Attributes("Forum_Admins_AutoConfigure")) Then
                    _forum_admins_autoconfigure = objProvider.Attributes("Forum_Admins_AutoConfigure")
                End If
                If Not Null.IsNull(objProvider.Attributes("Forum_Admins_SecurityPolicyFile")) Then
                    _forum_admins_securitypolicyfile = objProvider.Attributes("Forum_Admins_SecurityPolicyFile")
                End If
                If Not Null.IsNull(objProvider.Attributes("Forum_Admins_TemplateItemList")) Then
                    _forum_admins_templateitemlist = objProvider.Attributes("Forum_Admins_TemplateItemList")
                End If
                If Not Null.IsNull(objProvider.Attributes("Forum_Admins_DisableItemList")) Then
                    _forum_admins_disableitemlist = objProvider.Attributes("Forum_Admins_DisableItemList")
                End If
                If Not Null.IsNull(objProvider.Attributes("Forum_Admins_AllowPasteHtml")) Then
                    _forum_admins_allowpastehtml = Boolean.Parse(objProvider.Attributes("Forum_Admins_AllowPasteHtml"))
                End If
                If Not Null.IsNull(objProvider.Attributes("Forum_Admins_EditorOnPaste")) Then
                    _forum_admins_editoronpaste = objProvider.Attributes("Forum_Admins_EditorOnPaste")
                End If
                If Not Null.IsNull(objProvider.Attributes("Forum_Admins_ReadOnly")) Then
                    _forum_admins_readonly = Boolean.Parse(objProvider.Attributes("Forum_Admins_ReadOnly"))
                End If
                If Not Null.IsNull(objProvider.Attributes("Forum_Admins_ShowBottomBar")) Then
                    _forum_admins_showbottombar = Boolean.Parse(objProvider.Attributes("Forum_Admins_ShowBottomBar"))
                End If
                If Not Null.IsNull(objProvider.Attributes("Forum_Admins_ShowHtmlMode")) Then
                    _forum_admins_showbottombar = Boolean.Parse(objProvider.Attributes("Forum_Admins_ShowHtmlMode"))
                End If
                If Not Null.IsNull(objProvider.Attributes("Forum_Admins_ShowPreviewMode")) Then
                    _forum_admins_showpreviewmode = Boolean.Parse(objProvider.Attributes("Forum_Admins_ShowPreviewMode"))
                End If
        ...
     
    Step 4

    Open the CEHtmlEditorProvider.vb file, adding the following code into the Initialize() subroutine:

        ....
            Dim  IsForum_Admins As Boolean
            IsForum_Admins = PortalSecurity.IsInRoles("Forum Admins")
        ...
     
    Step 5

    Open the CEHtmlEditorProvider.vb file, change the following code block:
        from:
     
                If Isadmin Then
                 ....
                ElseIf Isregistered Then
                    ...
                Else
                    ...
                End If
         to:
     
                If Isadmin Then
                 ....
                ElseIf Isregistered Then
                    ...
                ElseIf IsForum_Admins Then
                    _temp_templateitemlist = _forum_admins_templateitemlist
                    _temp_disableitemlist = _forum_admins_disableitemlist
                    _temp_allowpastehtml = _forum_admins_allowpastehtml
                    _temp_securitypolicyfile = _forum_admins_securitypolicyfile
                    _temp_readonly = _forum_admins_readonly
                    _temp_showbottombar = _forum_admins_showbottombar
                    _temp_showhtmlmode = _forum_admins_showhtmlmode
                    _temp_showpreviewmode = _forum_admins_showpreviewmode
                    _temp_editoronpaste = _forum_admins_editoronpaste
                    _temp_autoconfigure = _forum_admins_autoconfigure
                Else

                    ...
                End If
     
    That's it!
     

    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

  •  05-10-2005, 10:03 AM 6553 in reply to 6552

    Re: User roles in DNN 3.13 and Cutesoft menu

  •  05-11-2005, 3:55 AM 6575 in reply to 6553

    Re: User roles in DNN 3.13 and Cutesoft menu

    Does not work. Copied your CEHtmlEditorProvider.vb to Providers\HtmlEditorProviders\CEHtmlEditorProvider. I recompiled and copied the new DotNetNuke.CEHtmlEditorProvider.dll to the bin folder and editted the web.config. The security group I added in DNN is called Forum Admins and I checked this against the name in CEHtmlEditorProvider.vb, is the same.
     
    What did I do wrong?
  •  05-12-2005, 1:22 AM 6609 in reply to 6575

    Re: User roles in DNN 3.13 and Cutesoft menu

    Hello? Any news to this?
  •  05-12-2005, 9:53 AM 6615 in reply to 6609

    Re: User roles in DNN 3.13 and Cutesoft menu

    Mariette,
     
    I updated the CEHtmlEditorProvider.vb file. Please download the source code again.
     
    Keep me posted
     
     

    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

  •  05-12-2005, 3:27 PM 6629 in reply to 6615

    Re: User roles in DNN 3.13 and Cutesoft menu

    Thanks, that worked just fine :-)
View as RSS news feed in XML