Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ChristianKnorr

Pages: [1]
1
FAQ, Tips / Re: Remove the right-click disabler
« on: May 12, 2007, 11:18:50 AM »
My fotoalbum.html
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--
START SCRIPT
-->
<script language="javascript" type="text/javascript">
  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>
<!--
END SCRIPT
-->


<link rel="icon" href="image/favicon.ico" type="image/ico">

<title>Christian's Fotoalbum</title>

<meta content="Christian's Fotoalbum" name="description"/>
<meta content="" name="keywords"/>
<meta content="" name="author"/>
<meta content="ChristianKnorr@gmx.de" name="email"/>
<meta content="Christian Knorr" name="copyright"/>
<link type="text/css" rel="stylesheet" href="style.css"/>
</head>
<frameset border="0" frameborder="NO" framespacing="0" cols="*" rows="*">
 <frame noresize="" scrolling="auto" name="tocframe" src="http://chrisk.homeftp.net/4images/">
</frameset>
<noframes/>
</html>
has no effect.

2
FAQ, Tips / Re: Remove the right-click disabler
« on: May 12, 2007, 11:12:20 AM »
When I connect to the dyndns adress i have the same problem. The fotoalbum.html is only at this case, you can't see the my real dyndns adress easy.
And, when I type my ip adress (which found in router webinterface) in the webbrowser, this is same effect.
When i go to the <ip-adress>/4images - same effect.
Only the http://<ip-adress>/4images/templates/ChristianKnorr/header.html bring the right function. At this case I can't make a right click.

3
FAQ, Tips / Re: Remove the right-click disabler
« on: May 12, 2007, 10:50:26 AM »
Ok, now I see what you did with the template.
Did you try adding that code to your template to see if that will work?

Yes, i have insert your code. but nothing is changed.
My headers.html now:
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{direction}">
<head>
<title>{site_name}</title>
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<link rel="stylesheet" href="{template_url}/style.css" />
<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>
{if has_rss}
<link rel="alternate" type="application/rss+xml" title="{rss_title}" href="{rss_url}" />
{endif has_rss}
</head>
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
<br />
I had an suspicion with the copyright symbol witch is not shown in my editor. I have remove them three - no effect.
Any ideas where i can find any error logs?
4images runs at my own server, connected over dyndns to the internet.

4
FAQ, Tips / Re: Remove the right-click disabler
« on: May 12, 2007, 10:25:28 AM »
No. :wink:
Normally the right click is disabled, correct?
But, in my case, you can make a right click and download the images (you can check it here)

But i don't have make an change at the header.html

5
FAQ, Tips / Re: Remove the right-click disabler
« on: May 12, 2007, 09:58:20 AM »
--------------------
--- Deutsch ---
--------------------

Hallo zusammen,
ich wünschte ich hätte den Rechts-Klick disabled. Ich kann aber rechtsklicken.
Standard 1.7.4 Installation mit eigenem Template. Aber auch mit 'default' Template
Eine Idee wie ich den Rechts-Klick disabled bekomme?

---------------------------------
--- English (i try ;-)) ---
---------------------------------

Hi Allz,
I would love to have it disabled. But i can make a right-click and download images.
I have a standard 1.7.4 installation. A few hours later i have made an own template, of basic from default.
But i can make a right-click with both templates.

Does anyone know how I can do this?

Here my header.html (witch found in templates/default/ and template/ChristianKnorr/):
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{direction}">
<head>
<title>{site_name}</title>
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<link rel="stylesheet" href="{template_url}/style.css" />
<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>
{if has_rss}
<link rel="alternate" type="application/rss+xml" title="{rss_title}" href="{rss_url}" />
{endif has_rss}
</head>
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
<br />

Pages: [1]