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

0 Members and 1 Guest are viewing this topic.

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Remove the right-click disabler
« Reply #30 on: April 21, 2008, 06:19:59 PM »
I am using version 1.7.6

is the fix the same to remove the rightclick?

thanks!

Hi mannzlady,

yes.... :wink:


KurtW

Offline mannzlady

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Remove the right-click disabler
« Reply #31 on: April 21, 2008, 06:53:50 PM »
thank you so much for the speedy reply!! :D

Offline EdwinK

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Remove the right-click disabler / or remove only for Members
« Reply #32 on: September 02, 2008, 10:41:22 PM »
And it works like a charm ;)

Thanks.

Offline RatedRWHC

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Remove the right-click disabler / or remove only for Members
« Reply #33 on: September 03, 2008, 03:52:55 PM »
is it possible to have right click for everyone accept the admins

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
Re: Remove the right-click disabler / or remove only for Members
« Reply #34 on: September 04, 2008, 02:06:57 AM »
Yes, you can use these template tags:
{ifno is_admin}
....
this will be displayed only for non-admin visitors
....

{endifno is_admin}
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)

Offline axlrose

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • A free classified ads online
Re: Remove the right-click disabler / or remove only for Members
« Reply #35 on: September 04, 2008, 07:00:48 AM »
Can a regular user do this things or just only for a member with license?

Offline andu

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: Remove the right-click disabler / or remove only for Members
« Reply #36 on: October 07, 2008, 12:55:21 AM »
Hi!
Im trying to disable the middle button.. How could i do this?

i've tried to add the code event.button == 4 and event.button == 1 but i keep using the middle button.. What am i doing wrong?

Many thanks!!

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
Re: Remove the right-click disabler / or remove only for Members
« Reply #37 on: October 07, 2008, 02:25:31 AM »
Hello and welcome to 4images forum.

The purpose in blocking right mouse button is to disallow menu to popup that "helps" stealing images...
What is the point disabling middle button?

P.S.
If I may I'd suggest you ask this question on forums discussing javascript programming, I'm sure there are more people with better understanding javascript and you probably would get faster response.

http://forums.devshed.com/ (awesome forum for a lot of programming and script languages)
http://codingforums.com/
http://www.webdeveloper.com/forum

Good luck.
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)

Offline andu

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: Remove the right-click disabler / or remove only for Members
« Reply #38 on: October 07, 2008, 09:55:02 AM »
you'r right. Actually anybody that wants to keep the images shown in the webpage just needs to drag the picture and drop it on the desktop.
No. Actually i need to disable the middle button because i've got the gallery that is shown in an iframe inside my webpage.
I'd like to avoid the user opening the gallery on its own, i'd like to keep it inside my main webpage.

I've tried the javascrit to avoid the user to open new tabs inside the gallery. But the code doesn't seem to react. Is there eny mod that allow to do this? Or Which code should i write down?

Regards!

PD: I beg your pardon if my english is so bad that hurt your senses.. Actually i'm trying to improbe...

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
Re: Remove the right-click disabler / or remove only for Members
« Reply #39 on: October 07, 2008, 02:13:32 PM »
Actually, you might want to see how it's done on this site:
http://mess.be
they are using frames and if you try open a page directly it redirects you to the main page.
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)

Offline andu

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: Remove the right-click disabler / or remove only for Members
« Reply #40 on: October 07, 2008, 03:07:17 PM »
Yes! that could be what i'm looking for.. but i can't  see the script that check that...
Might anybody help me?

Thanks!

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
Re: Remove the right-click disabler / or remove only for Members
« Reply #41 on: October 07, 2008, 03:27:20 PM »
Code: [Select]
<SCRIPT LANGUAGE="JavaScript">
<!--
if (top.frames.length == 0) {
    ver = parseInt(navigator.appVersion, 10);
    if ( ((navigator.appName == "Netscape") && (ver >= 3)) ||
         ((navigator.appName == "Microsoft Internet Explorer") && (ver >= 4)) )
      location.replace("http://www.yourdomain.com");
    else
      location = "http://www.yourdomain.com";
    };
//-->
</SCRIPT>
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)

Offline andu

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: Remove the right-click disabler / or remove only for Members
« Reply #42 on: October 08, 2008, 01:33:48 PM »
Ok, i've tried but the middle butto keeps opening the link on a new window:
templates/default/header.htm
Quote
function right(e) {
   
    if (top.frames.length == 0) {
           ver = parseInt(navigator.appVersion, 10);
                if ( ((navigator.appName == "Netscape") && (ver >= 3)) ||((navigator.appName == "Microsoft Internet Explorer") && (ver >= 4)) )
                               location.replace("http://mydomain.com");
                else
                                location = "http://mydomain.com";
   }

    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3 || e.which == 1 || e.which == 4)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (event.button == 2 || event.button == 3 || event.button == 1 || event.button == 4) {
      alert("© Copyright by {site_name}");
      return false;
    }
  return true;
  }

Actually i don't know what i'm doing worng...  :roll:

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
Re: Remove the right-click disabler / or remove only for Members
« Reply #43 on: October 08, 2008, 02:04:04 PM »
Just add that code between <head></head> tags, not inside a function.
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)

Offline andu

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: Remove the right-click disabler / or remove only for Members
« Reply #44 on: October 08, 2008, 02:24:48 PM »
Many thanks!!!

Now it does work perfectly!

Thank you! :D