Hi,
i want to block the right clic when i open the images in a gallery.
look here :http://sict-packaging.com/site/boxes.html it's when i open the image, i don't now if it's possible
block right clic in the plugins
- yatoula
- Phoca Member
- Posts: 14
- Joined: 26 Aug 2008, 02:05
- Location: Metz (Moselle)
- Contact:
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: block right clic in the plugins
Hi, no as this protection doesn't make any sense (everybody can easily disable javascript), this is not added as default, so this needs to be customized in the code
Jan
Jan
If you find Phoca extensions useful, please support the project
- yatoula
- Phoca Member
- Posts: 14
- Joined: 26 Aug 2008, 02:05
- Location: Metz (Moselle)
- Contact:
Re: block right clic in the plugins
ok, i understand, but it's not possible. You don't have a idea ? for change the code, because my client want to block..
Thanks
I create this code in my index.php (for template) but not work with popup.
Thanks
I create this code in my index.php (for template) but not work with popup.
Code: Select all
<script language="JavaScript1.2">
function ejs_nodroit()
{
alert('Clic droit interdit');
return(false);
}
document.oncontextmenu = ejs_nodroit;
</script>
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: block right clic in the plugins
Hi, I really don't have any idea as I didn't do such changes but maybe try to search this forum, I think some users gave here some guide about this issue
Jan
Jan
If you find Phoca extensions useful, please support the project
- yatoula
- Phoca Member
- Posts: 14
- Joined: 26 Aug 2008, 02:05
- Location: Metz (Moselle)
- Contact:
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: block right clic in the plugins
Hi, but be aware, javascript is no solution to prevent from stealing images. Javascript can be disabled in one second in browser, so there javascript protection is not really protection (it is a fake protection), If you search for really protection, try to add e.g. watermarks to your images.
Jan
Jan
If you find Phoca extensions useful, please support the project