Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

no right click option?
https://www.tinywebgallery.com/forum/viewtopic.php?f=3&t=1803
Page 1 of 1

Author:  chowland [ 11. Jan 2009, 22:57 ]
Post subject:  no right click option?

How about adding a no right click option. If there is already somewhere and I missed it, then I apologize.

I did add this code to my custom header which works with IE and Firefox:

Code:
<script type="text/javascript">

function md(e)
{
  try { if (event.button==2||event.button==3) return false; } 
  catch (e) { if (e.which == 3) return false; }
}
document.oncontextmenu = function() { return false; }
document.ondragstart   = function() { return false; }
document.onmousedown   = md;

</script>


It works pretty good and no nagging error message saying you can't right-click.

I also added this to take care of the IE image toolbar:
Code:
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

Author:  TinyWebGallery [ 11. Jan 2009, 23:14 ]
Post subject: 

$disable_right_click

Is the parameter you where looking for. But you always can make screenshots ;).

- Michael

Author:  chowland [ 11. Jan 2009, 23:37 ]
Post subject: 

ya I know, or you can save the page.

But thanks, it's yet another option I overlooked.
How can you call yourself "Tiny" with all these options?? :wink:

Author:  TinyWebGallery [ 11. Jan 2009, 23:44 ]
Post subject: 

Much harder to change a domain, a name, get popular again ...

But the installation is still tiny ;).

- Michael

Author:  normand cloutier [ 16. Nov 2019, 06:01 ]
Post subject:  The right click option do not work on slideshow?

I put $disable_right_click=true; it is working exept on the slideshow. How can i fixe it?

Author:  TinyWebGallery [ 16. Nov 2019, 22:54 ]
Post subject:  Re: no right click option?

Please use a watermark. right click only protects your images for very inexperienced users. Getting the url directly is very easy with any browser. press F12. select the image. copy the url...

Best, Michael

Author:  normand cloutier [ 18. Nov 2019, 20:04 ]
Post subject:  Re: no right click option?

:) I am experimenting whit your CMS site and i use a whatermark. I will buy the license soon is it complicated to upgrade to a proffessional version?

Author:  TinyWebGallery [ 18. Nov 2019, 20:41 ]
Post subject:  Re: no right click option?

It is easy. You will get a license file you place on your server.

Best Michael

Author:  TinyWebGallery [ 8. Dec 2019, 21:40 ]
Post subject:  Re: no right click option?

In TWG?

Best, Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/