Where is right click enabled/disable script?edit button

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Where is right click enabled/disable script?edit button
psinh22a
CZ Super Newbie
psinh22a has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 11, 2004
0.01 posts per day
Posts: 38
Points: 2,381
   
K i got the 7.4 nuke version patched from here and was wondering where is the right click function at, i need to disable it, or where the script is located at?Also my edit button is gone on the forums it says you can edit posts but i see no button?

Thanks icon_mrgreen.gif



Back to top Reply with quote
#2   Re: Where is right click enabled/disable script?edit button
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   


Originally posted by psinh22a @ Tue Feb 15, 2005 8:50 pm:

K i got the 7.4 nuke version patched from here and was wondering where is the right click function at, i need to disable it, or where the script is located at?Also my edit button is gone on the forums it says you can edit posts but i see no button?

Thanks icon_mrgreen.gif


Add this script right after the opening ?> in the includes/my_header.php file.

<sc ript language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</sc ript>


I put a space in the words script in order to post the code. Be sure to remove the spaces when you apply the code. For the problem of not seeing an edit button I'm not sure what you mean.


Back to top Reply with quote
#3   re: Where is right click enabled/disable script?edit button
psinh22a
CZ Super Newbie
psinh22a has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 11, 2004
0.01 posts per day
Posts: 38
Points: 2,381
   
K thanks that done the trick

As for the edit button,you know you can edit your post on a forum,well there is no edit button? it disappeared.At the bottem it says i can edit my post but there is no edit button to select?



Back to top Reply with quote
#4   re: Where is right click enabled/disable script?edit button
psinh22a
CZ Super Newbie
psinh22a has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 11, 2004
0.01 posts per day
Posts: 38
Points: 2,381
   
K i found out what the edit botton problem is, the actual button is showing the reply button,so where do i edit the code at to have it going to the right button location?




edit.jpg
 Description:
N/A
 Filesize:  22.07 KB
 Viewed:  13350 Time(s)

edit.jpg




Back to top Reply with quote
#5   re: Where is right click enabled/disable script?edit button
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
Look in: Themes/YOURTHEME/forums/viewtopic_body.tpl



Back to top Reply with quote
#6   re: Where is right click enabled/disable script?edit button
psinh22a
CZ Super Newbie
psinh22a has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 11, 2004
0.01 posts per day
Posts: 38
Points: 2,381
   
thanks bud all fixed icon_mrgreen.gif



Back to top Reply with quote
#7   re: Where is right click enabled/disable script?edit button
lofty3109
CZ Newbie
lofty3109 has been a member for over 19 year's 19 Year Member
sweden.gif
Occupation: Have
Gender: Male
Website:
Status: Offline
Joined: Mar 09, 2005
0.00 posts per day
Posts: 12
Points: 1,361
   
Hi there,
I've disabled the right click on my site using the coding in this thread, but one of my members says he has a "workaround" for viewing the source. Does anyone know how I can stop this from happening?



Back to top Reply with quote
#8   re: Where is right click enabled/disable script?edit button
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
Unfortunately one can only do so much...there is always a "workaround". There is no 100% way of stopping it, all you can do is throw up some roadblocks to prevent the average users from stealing images, etc.



Back to top Reply with quote
#9   re: Where is right click enabled/disable script?edit button
lofty3109
CZ Newbie
lofty3109 has been a member for over 19 year's 19 Year Member
sweden.gif
Occupation: Have
Gender: Male
Website:
Status: Offline
Joined: Mar 09, 2005
0.00 posts per day
Posts: 12
Points: 1,361
   
Ok, thanks for the quick reply.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum