Author Topic: Search for Script, that unauthorized people couldn't download pictures  (Read 3413 times)

0 Members and 1 Guest are viewing this topic.

Offline Schmidti

  • Newbie
  • *
  • Posts: 32
    • View Profile
Hi...

I search for a script addon, that you couldnt downlaod the pictures with "right-mouse-click" on the picture and "save to". They should download the pictures when they are logged in!
There is a script on the complete programm, but with much browser, you can download it.
Is there any new script to disable that browser function with that script?

thanks

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
check that: Pic security
MAяTRIX


Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Open header.html and wrap the javascript with the if user_loggedout tags
Code: [Select]
{if user_loggedout}
<script language="javascript" type="text/javascript">
<!--
  function opendetailwindow() {
    window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
  }
 
  function right(e) {
    if (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button==2 || event.button == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    return true;
  }
  document.onmousedown=right;
  if (document.layers) window.captureEvents(Event.MOUSEDOWN);
  window.onmousedown=right;
// -->
</script>
{endif user_loggedout}
Now the right-click disabler only works for guests