Hi Michael,
I made a plugin that runs before file methods are called, so I can make sure the image being deleted is not an individual thumbnail. They have permission to delete the main image, but not the individual ones in each country folder.
My plugin checks for the string "_thumb" or _full" in each $fullpath and then returns false if it finds the string, so then it doesn't delete the file.
It works fine to prevent the deletion, but I get the message "Nan files could not be deleted" in the status bar.
1 - Is it possible for the file_name or quantity to be echoed here instead of "Nan" (like it does when the main image is deleted)?
2 - I would like to have a popup box display to say "You must first delete the main image" or something similar. Is there an error message popup function already in place somewhere that I can call ? If not, can I use javascript here? What's the best way to do this?
Thanks!
Tracy
Joomla 1.6.3
JFU 2.14
Server: localhost / development site