Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 9. Nov 2024, 03:55

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: no right click option?
PostPosted: 11. Jan 2009, 22:57 
Offline
User avatar

Joined: 10. Jan 2009, 04:32
Posts: 11
Location: Massachusetts
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">


Top
 Profile  
 
 Post subject:
PostPosted: 11. Jan 2009, 23:14 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
$disable_right_click

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

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 11. Jan 2009, 23:37 
Offline
User avatar

Joined: 10. Jan 2009, 04:32
Posts: 11
Location: Massachusetts
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:

_________________
/Chris


Top
 Profile  
 
 Post subject:
PostPosted: 11. Jan 2009, 23:44 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Much harder to change a domain, a name, get popular again ...

But the installation is still tiny ;).

- Michael


Top
 Profile  
 
PostPosted: 16. Nov 2019, 06:01 
Offline

Joined: 16. Nov 2019, 05:12
Posts: 2
I put $disable_right_click=true; it is working exept on the slideshow. How can i fixe it?


Top
 Profile  
 
PostPosted: 16. Nov 2019, 22:54 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
PostPosted: 18. Nov 2019, 20:04 
Offline

Joined: 16. Nov 2019, 05:12
Posts: 2
:) 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?


Top
 Profile  
 
PostPosted: 18. Nov 2019, 20:41 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
It is easy. You will get a license file you place on your server.

Best Michael


Top
 Profile  
 
PostPosted: 8. Dec 2019, 21:40 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
In TWG?

Best, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy