block right clic in the plugins

Phoca Gallery plugins - plugins for Phoca Gallery extension
User avatar
yatoula
Phoca Member
Phoca Member
Posts: 14
Joined: 26 Aug 2008, 02:05
Location: Metz (Moselle)
Contact:

block right clic in the plugins

Post by yatoula »

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 :idea:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: block right clic in the plugins

Post by Jan »

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
If you find Phoca extensions useful, please support the project
User avatar
yatoula
Phoca Member
Phoca Member
Posts: 14
Joined: 26 Aug 2008, 02:05
Location: Metz (Moselle)
Contact:

Re: block right clic in the plugins

Post by yatoula »

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 :x

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>
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: block right clic in the plugins

Post by Jan »

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
If you find Phoca extensions useful, please support the project
User avatar
yatoula
Phoca Member
Phoca Member
Posts: 14
Joined: 26 Aug 2008, 02:05
Location: Metz (Moselle)
Contact:

Re: block right clic in the plugins

Post by yatoula »

Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: block right clic in the plugins

Post by Jan »

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
If you find Phoca extensions useful, please support the project
Post Reply