Guys,
The new provider for DNN 3.x is done.
Please download the control from:
With this new provider, we fully integrated the Cute Editor with DNN 3.0 security roles.
Typical Scenarios:
Case I:
You have a commuinity site. You allow all the users post and input the new content in a particular module.
But you want to have set some toolbar limitations based on the user roles.
1. The admins should have access to all the editor toolbars.
2. The registed users should have access to some simple editor toolbars.
3. The visitors should read only.
You can achieved this using the editor configurations below:
<add name="CEHtmlEditorProvider"
type="DotNetNuke.HtmlEditor.CEHtmlEditorProvider, DotNetNuke.CEHtmlEditorProvider"
providerPath="~\Providers\HtmlEditorProviders\CEHtmlEditorProvider\CuteSoft_Client\CuteEditor\"
Admin_AutoConfigure = "Full"
Registered_AutoConfigure = "Simple"
Guest_ReadOnly = "true"
/>
</providers>
Case 2:
You have a commuinity site. You allow all the users post and input the new content in a particular module.
However in this case you want to control user access to the server resources.
1. The admins/registed users/visitors should have different image/document/flash/media folder.
2. The admins can upload files/delete files/create folders/delete folders.
3. The registed users can upload files but can't delete files/create folders/delete folders.
4. The visitors users can use the existing images/flashes/medias/documents, but can't upload files/delete files/create folders/delete folders.
5. The registed users can't upload more than 200k files. The max image dimension restriction is 640X 480.
5. The registed users can only upload *.gif, *.jpg,*.doc.*.zip files.
.........
You can achieved this using the following steps:
1. Modify your editor configurations and Map Each role to a specific security policy file:
<add name="CEHtmlEditorProvider"
type="DotNetNuke.HtmlEditor.CEHtmlEditorProvider, DotNetNuke.CEHtmlEditorProvider"
providerPath="~\Providers\HtmlEditorProviders\CEHtmlEditorProvider\CuteSoft_Client\CuteEditor\"
Admin_SecurityPolicyFile = "admin.config"
Registered_SecurityPolicyFile= "member.config"
Guest_SecurityPolicyFile= "guest.config"
/>
</providers>
2. Create your own security policy files or edit the existing security policy file.
Admin.config | member.config | guest.config |
<?xml version="1.0" encoding="utf-8" ?> <configuration> <security name="RestrictUploadedImageDimension">false</security> <security name="AutoResizeUploadedImages">false</security> <security name="MaxImageWidth">6400</security> <security name="MaxImageHeight">4800</security> <security name="MaxImageSize">10000</security> <security name="MaxMediaSize">10000</security> <security name="MaxFlashSize">1000</security> <security name="MaxDocumentSize">10000</security> <security name="ImageGalleryPath">~/Admins</security> <security name="MediaGalleryPath">~/Admins</security> <security name="FlashGalleryPath">~/Admins</security> <security name="FilesGalleryPath">~/Admins</security> <security name="ThumbnailWidth">80</security> <security name="ThumbnailHeight">80</security> <security name="ThumbnailColumns">5</security> <security name="ThumbnailRows">3</security> <security name="AllowUpload">true</security> <security name="AllowDelete">true</security> <security name="AllowCopy">true</security> <security name="AllowMove">true</security <security name="AllowCreateFolder">true</security> <security name="AllowDeleteFolder">true</security> <security name="ImageFilters"> <item>.jpg</item> <item>.jpeg</item> <item>.gif</item> <item>.png</item> </security> <security name="MediaFilters"> <item>.avi</item> <item>.mpg</item> <item>.mpeg</item> <item>.mp3</item> </security> <security name="DocumentFilters"> <item>.txt</item> <item>.doc</item> <item>.pdf</item> <item>.zip</item> <item>.rar</item> <item>.avi</item> <item>.mpg</item> <item>.mpeg</item> <item>.mp3</item> <item>.jpg</item> <item>.jpeg</item> <item>.gif</item> <item>.png</item> </security> </configuration> | <?xml version="1.0" encoding="utf-8" ?> <configuration> <security name="RestrictUploadedImageDimension">true</security> <security name="AutoResizeUploadedImages">true</security> <security name="MaxImageWidth">640</security> <security name="MaxImageHeight">480</security> <security name="MaxImageSize">200</security> <security name="MaxMediaSize">200</security> <security name="MaxFlashSize">200</security> <security name="MaxDocumentSize">200</security> <security name="ImageGalleryPath">~/member</security> <security name="MediaGalleryPath">~/member</security> <security name="FlashGalleryPath">~/member</security> <security name="FilesGalleryPath">~/member</security> <security name="ThumbnailWidth">80</security> <security name="ThumbnailHeight">80</security> <security name="ThumbnailColumns">5</security> <security name="ThumbnailRows">3</security> <security name="AllowUpload">true</security> <security name="AllowDelete">false</security> <security name="AllowCopy">false</security> <security name="AllowMove">false</security> <security name="AllowCreateFolder">false</security> <security name="AllowDeleteFolder">false</security> <security name="ImageFilters"> <item>.jpg</item> <item>.jpeg</item> <item>.gif</item> <item>.png</item> </security> <security name="MediaFilters"> <item>.avi</item> <item>.mpg</item> <item>.mpeg</item> <item>.mp3</item> </security> <security name="DocumentFilters"> <item>.doc</item> <item>.zip</item> </security> </configuration> | <?xml version="1.0" encoding="utf-8" ?> <configuration> <security name="RestrictUploadedImageDimension">true</security> <security name="AutoResizeUploadedImages">false</security> <security name="MaxImageWidth">1</security> <security name="MaxImageHeight">1</security> <security name="MaxImageSize">1</security> <security name="MaxMediaSize">1</security> <security name="MaxFlashSize">1</security> <security name="MaxDocumentSize">1</security> <security name="ImageGalleryPath">~/guest</security> <security name="MediaGalleryPath">~/guest</security> <security name="FlashGalleryPath">~/guest</security> <security name="FilesGalleryPath">~/guest</security> <security name="ThumbnailWidth">80</security> <security name="ThumbnailHeight">80</security> <security name="ThumbnailColumns">5</security> <security name="ThumbnailRows">3</security> <security name="AllowUpload">false</security> <security name="AllowDelete">false</security> <security name="AllowCopy">false</security> <security name="AllowMove">false</security> <security name="AllowCreateFolder">false</security> <security name="AllowDeleteFolder">false</security> <security name="ImageFilters"> <item>.jpg</item> <item>.jpeg</item> <item>.gif</item> <item>.png</item> </security> <security name="MediaFilters"> <item>.avi</item> <item>.mpg</item> <item>.mpeg</item> <item>.mp3</item> </security> <security name="DocumentFilters"> <item>.doc</item> <item>.zip</item> </configuration> |
| | |
| | |
Let me know if you have any questions or inputs.
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