Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

How to disable right click so user can't delete photos

Last post 09-07-2012, 7:22 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  09-07-2012, 5:59 AM 74593

    How to disable right click so user can't delete photos

    Using PHP image gallery with Classic Layout and if a user right clicks on any photo the menu allows the user to delete the photo?

    I used a script to disable on the photogallery page, but it doesn't work on the photos.

     

    thanks

    JBWebWorks 


    JBWebWorks
  •  09-07-2012, 7:22 AM 74596 in reply to 74593

    Re: How to disable right click so user can't delete photos

    Hi JBWebWorks,

     

    The delete function handle by property "AllowEdit". When you set it to true, then the delete function is enable, false mean disable. 

     

    $gallery->AllowEdit=true;

    $gallery->AllowEdit=false; 

     

    Regards,

     

    Ken 

View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems