User role not seeing images in gallery or files in file picker

Last post 12-22-2006, 10:07 AM by Adam. 3 replies.
Sort Posts: Previous Next
  •  12-19-2006, 6:59 PM 25238

    User role not seeing images in gallery or files in file picker

    I have added a user role to my dnn portal that allows the user to edit some text modules. this is fine using the cute editor, however when a user using this role needs to insert an image the files that are in any of the folders are not visible to them in the image gallery/ picker. i can see the images in the gallery fine when logged in as admin, and the use can see any images that they upload but not ones already there/ uploaded by the admin or ftp etc. Is there any reason for this, is there an option that needs to be set in the web.config? both admin and the new role are using admin.config, and all the same options within the web.config

    Ben

  •  12-20-2006, 10:59 AM 25248 in reply to 25238

    Re: User role not seeing images in gallery or files in file picker

    Ben,
     
    By default, on admin role can see all image, other role can only see images for their own. If you want to allow other role works as admin, you need to modify the provider project.
     
    Change:
     
                        If role = "Admin" Then
                            tempfolder = ""
                        ElseIf role = "Registered" Then
                            tempfolder = "Member"
                        ElseIf role <> String.Empty Then
                            tempfolder = role
                        End If
     
    to:
     
                        If role = "Admin" or role = "MyRole"  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

  •  12-22-2006, 4:58 AM 25313 in reply to 25248

    Re: User role not seeing images in gallery or files in file picker

    How would we go about this?

    We dont have a source code licence, so dont have the source code to recompile the editor. Is this needed? Is there no way this can be specified in the web.config, or a way the admin can assign images to roles? I.e admin uploads an image and allows other roles to view it in the gallery so it can be used by them.

    Ben

  •  12-22-2006, 10:07 AM 25316 in reply to 25313

    Re: User role not seeing images in gallery or files in file picker

    Ben,
     
    You don't need source code license to do that.
     
    I have talking about the CuteEditor for Dotnetnuke provider project.
     
    You can find this project in:
     
    Providers\HtmlEditorProviders\CEHtmlEditorProvider
     
     
     

    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