Author |
Message |
Virgin_Steel
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/5048588241ec59f135b81.jpg)
Joined: Sep 30, 2004
Posts: 108
Location: Sf
|
Posted:
Sun Mar 20, 2005 3:33 pm |
|
Ok,i got script 'context_menu' that doesn't allow right click saving pictures,view properties etc...only workin` in IE, you can see it here www.novavalna.org.I put the script in my_header.php ..how could i make when i am admin this to dont work? I saw once script that disable right click and it was made to don't affect the admin.BUt i cant find it to see how it was made.So pls help if you can.
P.S.Sorry for my terrible english. |
|
|
![ICQ Number ICQ Number](themes/RavenIce/forums/images/lang_english/icon_icq_add.gif) |
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
Spouse Contemplates Divorce
![](modules/Forums/images/avatars/d1ecfa674c890aee2698b.jpg)
Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Sun Mar 20, 2005 6:31 pm |
|
if(!is_admin($admin)){
Your Code or include here
} |
_________________ [b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Nukeum66
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/438e821747faeb6553037.gif)
Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA
|
Posted:
Sun Mar 20, 2005 10:16 pm |
|
if (is_admin($admin)) {
echo "";
} else {
echo "NO CLICK CODE HERE";
}
Or go to my site and download a no right click no select text hack
http://nukeum66.us/modules.php?name=Downloads&cid=3
Hack name : nosteal
works in most browsers |
_________________ Scott Johnson MIS Ubuntu/Linux 11.10 |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Virgin_Steel
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 21, 2005 12:45 am |
|
Nukeum66, 10x man, i use your code and it works Cool!
sixonetonoffun, thanks to you too. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nb1
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/0cdd311a44513690aeca6.gif)
Joined: Mar 03, 2005
Posts: 94
Location: OZ
|
Posted:
Sat Apr 29, 2006 5:18 pm |
|
Disable right click and select all open Notepad and add these two lines Code:<body onselectstart="return false">
<BODY onContextMenu="return false">
| save it as whatever you like php in my case it's called nocopy.php Upload to root add this to header.php right after <?
include("nocopy.php"); and save |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Sat Apr 29, 2006 11:06 pm |
|
If you're doing changes to the BODY tag, you should place them in where the theme.php generates the tag |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nb1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Apr 30, 2006 12:12 am |
|
Yes and do that that for every theme.? this way it doesn't matter what theme.
is being used you can also insert that in the HTML . <head></body>Section To get same results |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sun Apr 30, 2006 8:49 am |
|
The problem is the BODY tag should not be defined twice. This will break on the more compliant browsers and most certainly will affect your W3C compliance. Evaders is right, you need to do this where it is being defined, which is in the themes. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nb1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Apr 30, 2006 4:53 pm |
|
Thank you montego and evaders99 for showing me the correct way it was just too lines of code That I used in HTML quite often that may help someone from having their images stolen but as we all know this is pretty much impossible if they really want the image it's on their hard drive Iam new at this php stuff thank you very much for your suggestions and comments |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Nukeum66
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon May 01, 2006 6:31 pm |
|
This will disable IE Image toolbar
Add this to your meta.php
Code:$metastring .= "<META HTTP-EQUIV=\"imagetoolbar\" CONTENT=\"no\">\n";
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|