disable file view

Last post 05-30-2007, 4:19 PM by djlurch. 2 replies.
Sort Posts: Previous Next
  •  05-30-2007, 12:19 PM 30231

    disable file view

    Multiple users access CE on my domain. CE is used to generate document templates. I have no need or desire for them to access the file manager aspects.

    Specifically, when they click on the Add Image icon, a window pops up. In that window are two big boxes. The left hand box gave a file path error. I disabled the error by commenting out the response.write foo on the page loading in that frame.

    I attempted to comment out/delete the code for the two boxes and for the file save (etc) icons. Doing so caused JS errors. Evidently the page loader accesses elements within these things and the page chokes if they aren't present.

    As a hack I did a <span style="display:none"> ...element </span> to hide the elements.

    Wouldn't it make sense for there to be a master setting that disables any file manager functionality. Is it in the software already? I can't find it.

  •  05-30-2007, 1:25 PM 30236 in reply to 30231

    Re: disable file view

    djlurch,
     
    You can disable the delete, edit, create folder, delete folder... functions of the file manager.
     
    However the whole file manager can not be disabled. It allows the users to browser all images and pick any image they like.
     
    If you still want to disable the file manager, you have two choices.
     
    1. Disable this insert image button and add your own insert image custom dialog.
     
    2. Open CuteEditor_Files\Dialogs\InsertImage.asp file. Change the following code:
     

       <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
         <td valign="top" style="width:270px">
          <iframe src="browse_Img.asp?<%=setting %>&GP=<%=Current_ImageGalleryPath%>" id="browse_Frame" frameborder="0" scrolling="auto" style="border:1.5pt inset;width:270px;height:246px"></iframe>  
         </td>
         <td valign="top" style="width:326px">
          <div style="border:1.5pt inset; Padding:0; vertical-align: top; overflow: auto; width:100%; HEIGHT: 250px; BACKGROUND-COLOR: white;">
           <div id="divpreview" style="BACKGROUND-COLOR: white; height:100%;width:100%">
            <img id="img_demo" alt="" src="../images/1x1.gif" />
           </div>
          </div>
         </td>
        </tr>
        <tr>
         <td colspan="2" style="height:2">
         </td>
        </tr>
       </table>
     
     
    to:
     

       <table border="0" cellspacing="0" cellpadding="0" width="100%" style="display:none">
        <tr>
         <td valign="top" style="width:270px">
          <iframe src="browse_Img.asp?<%=setting %>&GP=<%=Current_ImageGalleryPath%>" id="browse_Frame" frameborder="0" scrolling="auto" style="border:1.5pt inset;width:270px;height:246px"></iframe>  
         </td>
         <td valign="top" style="width:326px">
          <div style="border:1.5pt inset; Padding:0; vertical-align: top; overflow: auto; width:100%; HEIGHT: 250px; BACKGROUND-COLOR: white;">
           <div id="divpreview" style="BACKGROUND-COLOR: white; height:100%;width:100%">
            <img id="img_demo" alt="" src="../images/1x1.gif" />
           </div>
          </div>
         </td>
        </tr>
        <tr>
         <td colspan="2" style="height:2">
         </td>
        </tr>
       </table>

    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-30-2007, 4:19 PM 30251 in reply to 30236

    Re: disable file view

    Adam:

    Thank you for the response. That is what I did.

    I would like to suggest this option for the wishlist.




View as RSS news feed in XML