Re: disable file view

  •  05-30-2007, 1:25 PM

    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

View Complete Thread