4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Schmidti on April 06, 2005, 03:55:24 PM
-
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
-
check that: Pic security (http://www.4homepages.de/forum/index.php?topic=6997.0)
-
Open header.html and wrap the javascript with the if user_loggedout tags
{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