X3 Photo Gallery Support Forums
Unfortunately, that is impossible.kungphoto wrote:How can i don't let others download photos from my website?
Ok, I have figured out a quick way to disable right-click on images-only. Go to your panel > custom/javascript/, and paste the following into the page:kungphoto wrote:then how to add a right-click prevention function???
<script>
function x3_load(){
$('body').on('contextmenu', 'img', function(e){ return false; });
}
</script>
<script>
function x3_load(){
$('body').on('contextmenu', 'img', function(e){
alert('context menu disabled for images.');
return false;
});
}
</script>
Currently no, because of the following:andreamarucci wrote:About that issue, there's a watermark function embedded in IV?
Sure, see the code my previous post.localhost wrote:Right click is a good protection for those who don't know how to open and don't understand the source code. It protects your text contents as well for copying. I'd like to see an easier way to add a javascript code on the panel similar to adding a custom CSS..
This is another feature of course, which we hope to add relatively soon.localhost wrote:The other way to protect an image is to put password protection on the gallery. I have mentioned this to Karl already... not sure what's the standing of this request.
<script>
function x3_load(){
$('body').on('contextmenu', 'img', function(e){ return false; });
}
</script>
It works here http://www.kungchan.com/engagement/wall/ ... I can't right click anything. It could be you were viewing a cached verson? Can someone please try the link above? I admit I did not try it on windows, but it certainly works on mac, and it "should" work in windows also.kungphoto wrote:i've already added the script, but..................
still can download ny right click
I have added the code exactly where you said but it is not working and the website is not cached....maybe I am doing something else wrong?mjau-mjau wrote:Where did you add the script? I specifically said to add it to panel > custom/javascript/
None of you have added the script there ...
if you see my screenshot I'm on page javascritmjau-mjau wrote:Where did you add the script? I specifically said to add it to panel > custom/javascript/
None of you have added the script there ...