Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Virgin_Steel
Worker
Worker


Joined: Sep 30, 2004
Posts: 108
Location: Sf

PostPosted: Sun Mar 20, 2005 3:33 pm Reply with quote

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 Only registered users can see links on this board! Get registered or login! 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.
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2496

PostPosted: Sun Mar 20, 2005 6:31 pm Reply with quote

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 
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sun Mar 20, 2005 10:16 pm Reply with quote

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 Only registered users can see links on this board! Get registered or login!

Hack name : nosteal
works in most browsers

_________________
Scott Johnson MIS Ubuntu/Linux 11.10 
View user's profile Send private message Visit poster's website
Virgin_Steel
PostPosted: Mon Mar 21, 2005 12:45 am Reply with quote

Nukeum66, 10x man, i use your code and it works Cool!
sixonetonoffun, thanks to you too.
 
nb1
Regular
Regular


Joined: Mar 03, 2005
Posts: 94
Location: OZ

PostPosted: Sat Apr 29, 2006 5:18 pm Reply with quote

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
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sat Apr 29, 2006 11:06 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website
nb1
PostPosted: Sun Apr 30, 2006 12:12 am Reply with quote

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
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9453
Location: Arizona

PostPosted: Sun Apr 30, 2006 8:49 am Reply with quote

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! 
View user's profile Send private message Visit poster's website
nb1
PostPosted: Sun Apr 30, 2006 4:53 pm Reply with quote

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 Exclamation Iam new at this php stuff thank you very much for your suggestions and comments
 
Nukeum66
PostPosted: Mon May 01, 2006 6:31 pm Reply with quote

This will disable IE Image toolbar

Add this to your meta.php
Code:
$metastring .= "<META HTTP-EQUIV=\"imagetoolbar\" CONTENT=\"no\">\n";
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©