is there Script to disable right Klick works with topics and vistiors only
3 posters
Page 1 of 1
is there Script to disable right Klick works with topics and vistiors only
is there Script to disable right Klick works with topics and vistiors only
i know it might be hard to do that but if it possible to make the script some thing like my goal is to keep the script a way from contact us Page
the code i`m useing it right now
its used on Widget but if that not possible then i need a good script for contact us page that`s works like HTML page or any thing so it wont bother my Visitors
thanks
i know it might be hard to do that but if it possible to make the script some thing like my goal is to keep the script a way from contact us Page
the code i`m useing it right now
- Code:
<script language="JavaScript1.2"> function ejs_nodroit() { alert('عزرا تم منع الزوار من استخدام زر الفأرة الايمن Sorry Vistors are not allowed to use right Click'); return(false); } document.oncontextmenu = ejs_nodroit; </script>
its used on Widget but if that not possible then i need a good script for contact us page that`s works like HTML page or any thing so it wont bother my Visitors
thanks
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: is there Script to disable right Klick works with topics and vistiors only
Hi
Try using this as reference: Here
Try to see if you can work around it to be incorporated in a widget.
Regards,
Pizza Boi
Try using this as reference: Here
Try to see if you can work around it to be incorporated in a widget.
Regards,
Pizza Boi
Pizza Boi- Hyperactive
- Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!
Re: is there Script to disable right Klick works with topics and vistiors only
still working on contact page
my only problem is i want this the only Page that the code must not work on it i think i will try to make out site page for contact us
thanks for the help
my only problem is i want this the only Page that the code must not work on it i think i will try to make out site page for contact us
thanks for the help
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: is there Script to disable right Klick works with topics and vistiors only
Hello Michael_vx,
You can try this :
Administration panel > modules > javascript codes management > create a new script
Title : what you wish
Placement : in all the pages
paste the code below and save :
Make sure to remove your old codes. This one should work only for users who are logged out; it should not work on the contact page.
You can try this :
Administration panel > modules > javascript codes management > create a new script
Title : what you wish
Placement : in all the pages
paste the code below and save :
- Code:
$(document).ready(function() {
if (location.pathname == '/contact') return;
if (!document.getElementById('logout')) {
$(document).bind('contextmenu',function(){
alert('message');
return false;
});
}
});
Make sure to remove your old codes. This one should work only for users who are logged out; it should not work on the contact page.
Re: is there Script to disable right Klick works with topics and vistiors only
wow you ar reall genius
true Supernatural intelligence
but i want the code work with this message
looks like code only works with english only but thanks
if you can make the code works with both English and Arabic
the topic is 200% solved
really i like the Help here
true Supernatural intelligence
but i want the code work with this message
when i changed word message to the message in the quote the code was disabledعزرا تم منع الزوار من استخدام زر الفأرة الايمن Sorry Vistors are not allowed to use right Click
looks like code only works with english only but thanks
if you can make the code works with both English and Arabic
the topic is 200% solved
really i like the Help here
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: is there Script to disable right Klick works with topics and vistiors only
one more thing
can i disable
ctrl + V for Vistiors or copy for Visitors too
can i disable
ctrl + V for Vistiors or copy for Visitors too
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: is there Script to disable right Klick works with topics and vistiors only
Michael_vx wrote:wow you ar reall genius
true Supernatural intelligence
but i want the code work with this messagewhen i changed word message to the message in the quote the code was disabledعزرا تم منع الزوار من استخدام زر الفأرة الايمن Sorry Vistors are not allowed to use right Click
looks like code only works with english only but thanks
if you can make the code works with both English and Arabic
the topic is 200% solved
really i like the Help here
i wander if some one did read thatMichael_vx wrote:one more thing
can i disable
ctrl + V for Vistiors or copy for Visitors too
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: is there Script to disable right Klick works with topics and vistiors only
Hi,
Please try not to double / triple post. Your posts must be separated by at least 24h before bumping. Remember that you can edityour posts to add more information too.
Replace the old script by :
Please try not to double / triple post. Your posts must be separated by at least 24h before bumping. Remember that you can edityour posts to add more information too.
Replace the old script by :
- Code:
$(document).ready(function() {
var msg = 'عزرا تم منع الزوار من استخدام زر الفأرة الايمن Sorry Vistors are not allowed to use right Click';
if (location.pathname == '/contact') return;
if (!document.getElementById('logout')) {
$(document).bind('contextmenu',function(){
alert(msg);
return false;
});
$(document).on('keydown',function(e) {
if (e.ctrlKey && e.keyCode == 67 ||
e.ctrlKey && e.keyCode == 86) {
alert(msg);
return false;
}
});
}
});
Re: is there Script to disable right Klick works with topics and vistiors only
sorry i wont event double just forget about editAnge Tuteur wrote:Hi,
Please try not to double / triple post. Your posts must be separated by at least 24h before bumping. Remember that you can edityour posts to add more information too.
Replace the old script by :
- Code:
$(document).ready(function() {
var msg = 'عزرا تم منع الزوار من استخدام زر الفأرة الايمن Sorry Vistors are not allowed to use right Click';
if (location.pathname == '/contact') return;
if (!document.getElementById('logout')) {
$(document).bind('contextmenu',function(){
alert(msg);
return false;
});
$(document).on('keydown',function(e) {
if (e.ctrlKey && e.keyCode == 67 ||
e.ctrlKey && e.keyCode == 86) {
alert(msg);
return false;
}
});
}
});
about the alert msg at the ctirl + V can it be changed or it can not be and it will be the same as the right Click
but thsnks for the code
Solved
thanks for true Supernatural intelligence
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: is there Script to disable right Klick works with topics and vistiors only
Of course, it can be changed. Try this :
- Code:
$(document).ready(function() {
if (location.pathname == '/contact') return;
if (!document.getElementById('logout')) {
$(document).bind('contextmenu',function(){
alert('عزرا تم منع الزوار من استخدام زر الفأرة الايمن Sorry Vistors are not allowed to use right Click');
return false;
});
$(document).on('keydown',function(e) {
if (e.ctrlKey && e.keyCode == 67 ||
e.ctrlKey && e.keyCode == 86) {
alert('Sorry visitors are not allowed to copy');
return false;
}
});
}
});
Re: is there Script to disable right Klick works with topics and vistiors only
how can i thank you really
true Supernatural intelligence
the Topic is
1000% solved
true Supernatural intelligence
the Topic is
1000% solved
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: is there Script to disable right Klick works with topics and vistiors only
You're welcome
Topic solved and archived
Topic solved and archived
Similar topics
» Hide some topics via script?
» A script for all closed topics
» Hide effect for similar topics script
» How to put this script for some topics
» the Script Warning for Locked Topics is not working for some reason
» A script for all closed topics
» Hide effect for similar topics script
» How to put this script for some topics
» the Script Warning for Locked Topics is not working for some reason
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum