EditWrx Knowledge Base Home
 Search       Login   Register   Members   Help   Home 
Search by username


Delete Function
 Moderated by: Keith  
 New Topic   Reply   Print 
AuthorPost
nlcorlandonet
Member
 

Joined: Wed Jan 10th, 2007
Location:  
Posts: 1
 Posted: Wed Jan 10th, 2007 08:06 pm
 Quote  Reply 
I plan to give away sites with editwrx.  How can I remove the "Delete" button from the "Open File" dialog box, but keep it in the "Image Upload" dialog?

I do not want users to be able to delete files, however they will need to delete images that they may have uploaded.  Thanks.

Keith
Moderator
 

Joined: Fri Apr 8th, 2005
Location:  
Posts: 578
 Posted: Thu Jan 11th, 2007 08:45 am
 Quote  Reply 
You can't do that without customizing the installation. There is a setting in User Setups that removes the Delete Folder and Delete File & Rename File buttons from the Open File, SaveAs, and File Upload dialog boxes, but there is no way to turn off file deleting for everything except a certain type of file.

To customize:

1) /library/htm/openpage.txt line 90 change visibility:$DF to visibility:hidden to hide the delete file button.

On Unix server give that file only 0444 permissions, on Windows server set ReadOnly on the file, to prevent your customization from being overwritten during an Update.


 Current time is 05:09 pm




Powered by WowBB 1.62 - Copyright © 2003-2004 Aycan Gulez