|
Enable icons for specific role
Last post 08-29-2007, 9:46 PM by Adam. 12 replies.
-
07-26-2007, 5:39 PM |
-
jyotsna
-
-
-
Joined on 03-19-2007
-
-
Posts 43
-
-
|
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 |
-
07-31-2007, 6:52 PM |
-
jyotsna
-
-
-
Joined on 03-19-2007
-
-
Posts 43
-
-
|
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 |
-
jyotsna
-
-
-
Joined on 03-19-2007
-
-
Posts 43
-
-
|
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 |
-
08-23-2007, 3:58 PM |
-
jyotsna
-
-
-
Joined on 03-19-2007
-
-
Posts 43
-
-
|
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 |
-
08-24-2007, 2:31 PM |
-
jyotsna
-
-
-
Joined on 03-19-2007
-
-
Posts 43
-
-
|
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 |
-
jyotsna
-
-
-
Joined on 03-19-2007
-
-
Posts 43
-
-
|
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 |
-
08-28-2007, 7:44 PM |
-
jyotsna
-
-
-
Joined on 03-19-2007
-
-
Posts 43
-
-
|
Re: Enable icons for specific role
Thanks for your reply.
No luck though.
Thanks
Jyotsna
|
|
-
08-29-2007, 7:17 PM |
-
jyotsna
-
-
-
Joined on 03-19-2007
-
-
Posts 43
-
-
|
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 |
|
|
|