Author Topic: Anti Rechtsklickscript entfernen?  (Read 3856 times)

0 Members and 1 Guest are viewing this topic.

Offline m2k1

  • Pre-Newbie
  • Posts: 9
    • View Profile
Anti Rechtsklickscript entfernen?
« on: February 09, 2003, 01:30:28 PM »
Hallo,
kann mir einer sagen wie ich dieses nervige Script entfernen kann?
Wär vielleicht auch ne Anregung für ne neue Version, dass man das auf Wunsch aktivieren oder deaktivieren kann ;)

gruß
m2k1

Offline caimin

  • Pre-Newbie
  • Posts: 3
    • View Profile
Anti Rechtsklickscript entfernen?
« Reply #1 on: February 09, 2003, 07:09:00 PM »
Open the header.html file in the templates/default directory and delete exactly this:

Code: [Select]
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;


When you don't delete more, or less it should work. It works with my version (1.7)

Greetz,
Caimin

Offline m2k1

  • Pre-Newbie
  • Posts: 9
    • View Profile
Anti Rechtsklickscript entfernen?
« Reply #2 on: February 09, 2003, 09:11:55 PM »
Thanks for your quick help.
It worked fine with me (also v1.7) :)

Anyway I would like to say that this is a feature request from me that you can switch it off via the Control Panel ;)

greets
m2k1

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Anti Rechtsklickscript entfernen?
« Reply #3 on: February 09, 2003, 09:40:30 PM »
if u ready modify your 4images DB and do about 10 steps of modifying code....;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)