Author Topic: Remove the right-click disabler / or remove only for Members  (Read 159002 times)

0 Members and 1 Guest are viewing this topic.

Offline Patric81

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Remove the right-click disabler / or remove only for Members
« Reply #45 on: January 16, 2022, 10:10:28 AM »
I did the upgrade these days on 1.9 and there is the right click pop up. "Copyright by 4images ... I tried to use everything what you've posted here but nothing seems to work. The pop up still comes even when I remove the function lines in the header html.

What can I do ?

This is the header line

Quote
<script language="javascript" type="text/javascript">
<!--

  var captcha_reload_count = 0;
   var captcha_image_url = "{url_captcha_image}";
  function new_captcha_image() {
    if (captcha_image_url.indexOf('?') == -1) {
        document.getElementById('captcha_image').src= captcha_image_url+'?c='+captcha_reload_count;
      } else {
        document.getElementById('captcha_image').src= captcha_image_url+'&c='+captcha_reload_count;
      }

    document.getElementById('captcha_input').value="";
    document.getElementById('captcha_input').focus();
    captcha_reload_count++;
  }

   function opendetailwindow() {
    window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
  }
 
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert(" Copyright by {site_name}");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert(" Copyright by {site_name}");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

   document.oncontextmenu = new Function("alert(' Copyright by {site_name}');return false");

// -->
</script>
« Last Edit: January 16, 2022, 01:31:03 PM by Patric81 »

Offline qBass17

  • Addicted member
  • ******
  • Posts: 1.800
  • I ♥ 4I
    • View Profile
Re: Remove the right-click disabler / or remove only for Members
« Reply #46 on: January 19, 2022, 01:38:01 PM »
Replace to

Code: [Select]
<script language="javascript" type="text/javascript">
<!--

  var captcha_reload_count = 0;
   var captcha_image_url = "{url_captcha_image}";
  function new_captcha_image() {
    if (captcha_image_url.indexOf('?') == -1) {
        document.getElementById('captcha_image').src= captcha_image_url+'?c='+captcha_reload_count;
      } else {
        document.getElementById('captcha_image').src= captcha_image_url+'&c='+captcha_reload_count;
      }

    document.getElementById('captcha_input').value="";
    document.getElementById('captcha_input').focus();
    captcha_reload_count++;
  }

   function opendetailwindow() {
    window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
  }

// -->
</script>

Offline Patric81

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Remove the right-click disabler / or remove only for Members
« Reply #47 on: January 19, 2022, 06:58:50 PM »
I replaced it but still doesn't work

 

Post your comments here