Enable icons for specific role

Last post 08-29-2007, 9:46 PM by Adam. 12 replies.
Sort Posts: Previous Next
  •  07-26-2007, 5:39 PM 31934

    Enable icons for specific role

    Hi
     
    I purchased cute editor for DotNetNuke. I have enabled all icons of the editor to the admin, and restricted some icons to the registered users. Now i need to know how i should enable the icons (icons visible to the admin) to a particular role, who in turn will be registered users of my site. Is there a way i can do this in the web.config file.
    Please reply as soon as possible.
     
    Thanks
     
  •  07-27-2007, 11:53 AM 31953 in reply to 31934

    Re: Enable icons for specific role

    >>Now i need to know how i should enable the icons (icons visible to the admin) to a particular role, who in turn will be registered users of my site
     
    1. Open the web.config file and find the Cute Editor section
     
    2. Modify the following items, make sure they are same as admin's


    Registered_AutoConfigure = "Full_noform"
    Registered_DisableItemList= ""
     
     
     
     
     

    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

  •  07-31-2007, 6:52 PM 32060 in reply to 31953

    Re: Enable icons for specific role

    Adam
     
    This the cute editor part of my web.config
     
    <add name="CEHtmlEditorProvider" type="DotNetNuke.HtmlEditor.CEHtmlEditorProvider, DotNetNuke.CEHtmlEditorProvider" providerPath="~\Providers\HtmlEditorProviders\CEHtmlEditorProvider\CuteSoft_Client\CuteEditor\" UseDNNRootImageDirectory="true" UseDNNDefaultWidth="true" RemoveServerNamesFromUrl="true" UseRelativeLinks="true" RenderRichDropDown="true" UseSimpleAmpersand="false" CustomCulture="" ThemeType="Office2003_BlueTheme" DisableAutoFormatting="false" BreakElement="div" EditorBodyStyle="background-color:#ffffff" Admin_AutoConfigure="Full" Admin_SecurityPolicyFile="admin.config" Admin_TemplateItemList="" Admin_DisableItemList="InsertTemplate" 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" Registered_AutoConfigure="Full" Registered_SecurityPolicyFile="default.config" Registered_TemplateItemList="" Registered_DisableItemList="InsertTemplate,Print,Find,ToFullPage,FromFullPage,CleanCode,PasteText,PasteWord,Break,InsertDate,InsertTime,ToggleBorder,InsertChars,InsertText,InsertFieldSet,InsertFlash,InsertMedia,InsertDocument,InsertRowTop,InsertRowBottom,DeleteRow,InsertColumnLeft,InsertColumnRight,DeleteColumn,InsertCell,DeleteCell,EditRow,EditCell,MergeRight,MergeBottom,HorSplitCell,VerSplitCell,InsertForm,InsertTextBox,InsertInputText,InsertInputPassword,InsertInputhidden,InsertListBox,InsertDropDown,InsertRadioBox,InsertCheckBox,InsertInputSubmit,InsertInputReset,InsertInputButton,JustifyFull,JustifyNone,RemoveFormat,InsertUnorderedList,Subscript,Superscript,StrikeThrough,InsertHorizontalRule,InsertAnchor,SelectAll,SelectNone,AbsolutePosition,BringForward,BringBackward,ToggleBorder,DocumentPropertyPage,Help,CssClass,CssStyle,FormatBlock,Links,Codes,Images" 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" Guest_AutoConfigure="Minimal" Guest_SecurityPolicyFile="default.config" Guest_TemplateItemList="" Guest_DisableItemList="InsertTemplate,Print,Find,ToFullPage,FromFullPage,CleanCode,PasteText,PasteWord,Break,InsertDate,InsertTime,ToggleBorder,InsertChars,InsertText,InsertFieldSet,InsertFlash,InsertMedia,InsertDocument,InsertRowTop,InsertRowBottom,DeleteRow,InsertColumnLeft,InsertColumnRight,DeleteColumn,InsertCell,DeleteCell,EditRow,EditCell,MergeRight,MergeBottom,HorSplitCell,VerSplitCell,InsertForm,InsertTextBox,InsertInputText,InsertInputPassword,InsertInputhidden,InsertListBox,InsertDropDown,InsertRadioBox,InsertCheckBox,InsertInputSubmit,InsertInputReset,InsertInputButton,JustifyFull,JustifyNone,RemoveFormat,InsertUnorderedList,Subscript,Superscript,StrikeThrough,InsertHorizontalRule,InsertAnchor,SelectAll,SelectNone,AbsolutePosition,BringForward,BringBackward,ToggleBorder,DocumentPropertyPage,Help,CssClass,CssStyle,FormatBlock,Links,Codes,Images" 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" />
     
    So is it enough if i just change the following Registered_AutoConfigure="Full_Norm" and Registered_DisableItemList="InsertTemplate". In this case what icons will be visible to the registered users?
     
    Thanks
    Jyotsna
  •  08-23-2007, 1:36 PM 32783 in reply to 32060

    Re: Enable icons for specific role

    Adam
     
    I guess you know you can create n number of roles in dotnetnuke. I want to have some icons enabled for one role and disabled for the other. i have a role called editor (which is different from admin), but all the icons enabled for admin should be seen by the editor.
    Registered users should not see these icons.
    Is there a way i can do this. I was not able to figure out from the code you sent me.
    Please help me.
     
    Thanks
    Jyotsna
  •  08-23-2007, 1:47 PM 32786 in reply to 32783

    Re: Enable icons for specific role

    Jyotsna,
     
    This is very easy.
     
    >>Registered users should not see these icons.
     
    For example, you want to disable the "Bold", "Italic" button for role (Registered users) and disble "Print" button for a new role (MyRole).
     
    You can add the following code into Cute Editor section of your web.config file.
     
    Registered_DisableItemList = "Bold, Italic"
    MyRole_DisableItemList = "Print"
     
    Notice in the above string, the first part is your role name. The second part is the property name.
     
     
     
     
     
     
     
     
     

    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

  •  08-23-2007, 3:58 PM 32804 in reply to 32786

    Re: Enable icons for specific role

    That works great!!! thanks a lot.
     
    Now if the editors(role) use the WYSIWYG editor - when he clicks on the 'image gallery' he is not able to see the pre populated images that are there in the site. But if the admin logins in and uses the 'image gallery' he is able to see the prepopulated images. i used all the property that i sused by the admin for the editor(Role) too.
    This happens even for the registered users. (but it is fine for registered users)
     
    Whdat should i do to get all the prepopulated images in the site for the editor(Role) as we get for the admin.
     
    Thanks
     
  •  08-23-2007, 4:54 PM 32812 in reply to 32804

    Re: Enable icons for specific role

    jyotsna,
     
    In the Cute Editor for DNN provider, we define the above logic: Only admin can have access to all images. Fot the other roles, they can only access the images belong to their own role.
     
    If you want to change this logic, please open CEHtmlEditorProvider.vb and modify the following code:
     
                        If role = "Admin" Then
                            tempfolder = ""
                        ElseIf role = "Registered" Then
                            tempfolder = "Member"
                        ElseIf role <> String.Empty Then
                            tempfolder = role
                        End If
     
    to:
                        tempfolder = ""
     
    Then recompile your provider project.
     

     
     

    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

  •  08-24-2007, 2:31 PM 32868 in reply to 32812

    Re: Enable icons for specific role

    Adam
     
    I changed the code and recompiled, but it still doesnt seem to work.
    Am i missing something.
     
    Thanks
     
  •  08-28-2007, 2:25 PM 33003 in reply to 32868

    Re: Enable icons for specific role

    Adam
     
    This is the edited code. Let me know if i am making any mistakes:
     

    If role = "Admin" Then

    tempfolder = ""

    ElseIf role = "Registered" Then

    tempfolder = "Member"

    ElseIf role = "Editor" Then

    tempfolder = ""

    ElseIf role <> String.Empty Then

    tempfolder = role

    End If

     

    I also copied the new dll's to Dotnetnuke bin folder. But still it doesnt work.
    Please reply
    Thanks
     
  •  08-28-2007, 4:20 PM 33007 in reply to 33003

    Re: Enable icons for specific role

                        If role = "Admin" or role = "Editor" Then
                            tempfolder = ""
                        ElseIf role = "Registered" Then
                            tempfolder = "Member"
                        ElseIf role <> String.Empty Then
                            tempfolder = role
                        End If

    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

  •  08-28-2007, 7:44 PM 33008 in reply to 33007

    Re: Enable icons for specific role

    Thanks for your reply.
    No luck though.
     
    Thanks
    Jyotsna
  •  08-29-2007, 7:17 PM 33069 in reply to 33008

    Re: Enable icons for specific role

    Adam

    I solved this problem and it is working fine. I added  UseDNNRoleASFileNamePrefix="false" to the web.config

    Thanks a lot for your help.

     

     

     

  •  08-29-2007, 9:46 PM 33073 in reply to 33069

    Re: Enable icons for specific role

    jyotsna,
     

    I apologize. I forgot this property: UseDNNRoleASFileNamePrefix and pointed you to a wrong direction.

    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